C# Class MyGame.Player

Inheritance: CDrawableComponent
Show file Open project: mahmoudbahaa/XNA-Game-project Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
FireShots ( GameTime gameTime ) : void

Private Methods

Method Description
DrawCrossHair ( ) : void
DrawHP ( ) : void

Method Details

Draw() public method

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

FireShots() protected method

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

Player() public method

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

RHandTransformation() public method

public RHandTransformation ( ) : Matrix
return Matrix

Update() public method

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

controlBackward() public method

public controlBackward ( ) : void
return void

controlForward() public method

public controlForward ( ) : void
return void

controlLeft() public method

public controlLeft ( ) : void
return void

controlRight() public method

public controlRight ( ) : void
return void

playerRun() public method

public playerRun ( ) : void
return void