C# 클래스 personal_training_martial_arts.Core.GameCore

파일 보기 프로젝트 열기: joseruizjimenez/personal-training-martial-arts

공개 프로퍼티들

프로퍼티 타입 설명
gameScreen GameScreen

Private Properties

프로퍼티 타입 설명
chDificultyLevel void
initializeGameButtons void
initializeMenuButtons void
initializePauseButtons void
initializeScoreButtons void
shufflePostures void
updateButtonsState void
updateCurrentGamePosture System.Boolean

공개 메소드들

메소드 설명
GameCore ( GraphicsDevice graphicsDevice ) : System
draw ( Microsoft.Xna.Framework.Graphics.Texture2D kinectRGBVideo, String connectedStatus ) : void

Pinta el resultado de la lógica por pantalla.

isTimedOut ( Stopwatch sw, int secondsToTimeOut ) : System.Boolean

Comprueba si se ha cumplido un timeout.

loadContentHandler ( ContentHandler ch ) : void
loadKinectSensor ( Microsoft.Kinect.KinectSensor sensor ) : void
update ( ) : System.Boolean

Lógica del programa.

updatePlayerSkeleton ( Microsoft.Kinect.Skeleton playerSkeleton ) : void

Actualiza la postura actual del jugador.

비공개 메소드들

메소드 설명
chDificultyLevel ( int level ) : void
initializeGameButtons ( Button buttons ) : void
initializeMenuButtons ( Button buttons ) : void
initializePauseButtons ( Button buttons ) : void
initializeScoreButtons ( Button buttons ) : void
shufflePostures ( PostureInformation postures ) : void

Mezcla un array de Posture.

updateButtonsState ( Button buttons ) : void
updateCurrentGamePosture ( ) : System.Boolean

Actualiza la postura actual. Si no hay posturas, las carga. False si no hay mas posturas que actualizar

메소드 상세

GameCore() 공개 메소드

public GameCore ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
리턴 System

draw() 공개 메소드

Pinta el resultado de la lógica por pantalla.
public draw ( Microsoft.Xna.Framework.Graphics.Texture2D kinectRGBVideo, String connectedStatus ) : void
kinectRGBVideo Microsoft.Xna.Framework.Graphics.Texture2D
connectedStatus String
리턴 void

isTimedOut() 공개 정적인 메소드

Comprueba si se ha cumplido un timeout.
public static isTimedOut ( Stopwatch sw, int secondsToTimeOut ) : System.Boolean
sw Stopwatch
secondsToTimeOut int Segundos para timeout
리턴 System.Boolean

loadContentHandler() 공개 메소드

public loadContentHandler ( ContentHandler ch ) : void
ch ContentHandler
리턴 void

loadKinectSensor() 공개 메소드

public loadKinectSensor ( Microsoft.Kinect.KinectSensor sensor ) : void
sensor Microsoft.Kinect.KinectSensor
리턴 void

update() 공개 메소드

Lógica del programa.
public update ( ) : System.Boolean
리턴 System.Boolean

updatePlayerSkeleton() 공개 메소드

Actualiza la postura actual del jugador.
public updatePlayerSkeleton ( Microsoft.Kinect.Skeleton playerSkeleton ) : void
playerSkeleton Microsoft.Kinect.Skeleton Postura con la que actualizar
리턴 void

프로퍼티 상세

gameScreen 공개적으로 프로퍼티

public GameScreen gameScreen
리턴 GameScreen