C# 클래스 MyGame.Player

상속: CDrawableComponent
파일 보기 프로젝트 열기: mahmoudbahaa/XNA-Game-project 1 사용 예제들

공개 메소드들

메소드 설명
Draw ( GameTime gameTime ) : void

This method renders the current state.

Player ( MyGame game, SkinnedModel skinnedModel, Unit unit ) : System
RHandTransformation ( ) : Matrix
Update ( GameTime gameTime ) : void

Allows the game component to update itself.

controlBackward ( ) : void
controlForward ( ) : void
controlLeft ( ) : void
controlRight ( ) : void
playerRun ( ) : void

보호된 메소드들

메소드 설명
FireShots ( GameTime gameTime ) : void

비공개 메소드들

메소드 설명
DrawCrossHair ( ) : void
DrawHP ( ) : void

메소드 상세

Draw() 공개 메소드

This method renders the current state.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The elapsed game time.
리턴 void

FireShots() 보호된 메소드

protected FireShots ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
리턴 void

Player() 공개 메소드

public Player ( MyGame game, SkinnedModel skinnedModel, Unit unit ) : System
game MyGame
skinnedModel XNAnimation.SkinnedModel
unit Unit
리턴 System

RHandTransformation() 공개 메소드

public RHandTransformation ( ) : Matrix
리턴 Matrix

Update() 공개 메소드

Allows the game component to update itself.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
리턴 void

controlBackward() 공개 메소드

public controlBackward ( ) : void
리턴 void

controlForward() 공개 메소드

public controlForward ( ) : void
리턴 void

controlLeft() 공개 메소드

public controlLeft ( ) : void
리턴 void

controlRight() 공개 메소드

public controlRight ( ) : void
리턴 void

playerRun() 공개 메소드

public playerRun ( ) : void
리턴 void