Property | Type | Description | |
---|---|---|---|
MCurrentTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
MIsAlive | bool | ||
MNumLives | int |
Method | Description | |
---|---|---|
CheckForIdle ( ) : Microsoft.Xna.Framework.Graphics.Texture2D |
Checks to see if the player is idle if it is, change his face
|
|
Draw ( |
Draw the player, with rotation due to gravity taken into affect
|
|
IsFaceStraight ( ) : bool |
Checks to see if the face is straight
|
|
Kill ( ) : int |
Handle players death
|
|
Player ( Microsoft.Xna.Framework.Content.ContentManager content, PhysicsEnvironment &environment, IControlScheme controlScheme, float friction, |
Construcs a player object, that can live in a physical realm
|
|
ResetIdle ( int mTimer, GravityDirections mDirection ) : void | ||
Respawn ( ) : void | ||
Rumble ( double time, |
Sets the controller to rumble for the amount of time passed
|
|
SetFaceStraight ( ) : void |
Sets the player face to straight
|
|
StartRumble ( ) : void |
Starts controller rumble
|
|
StopRumble ( ) : void |
Stop controller rumble
|
|
ToString ( ) : string |
Gets the Unique identifier for this object. Will be used for logging
|
|
Update ( |
Updates the player location and the player controls
|
public CheckForIdle ( ) : Microsoft.Xna.Framework.Graphics.Texture2D | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
public Draw ( |
||
canvas | Canvas SpriteBatch | |
gametime | Current gametime | |
return | void |
public Player ( Microsoft.Xna.Framework.Content.ContentManager content, PhysicsEnvironment &environment, IControlScheme controlScheme, float friction, |
||
content | Microsoft.Xna.Framework.Content.ContentManager | Content manager for the game |
environment | PhysicsEnvironment | |
controlScheme | IControlScheme | Controller scheme for the player(Controller or keyboard) |
friction | float | |
entity | ||
return | System |
public ResetIdle ( int mTimer, GravityDirections mDirection ) : void | ||
mTimer | int | |
mDirection | GravityDirections | |
return | void |
public Rumble ( double time, |
||
time | double | The amount of time to rumble |
gameTime | The current gameTime | |
return | void |
public Update ( |
||
gametime | The current Gametime | |
return | void |
public Texture2D,Microsoft.Xna.Framework.Graphics MCurrentTexture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |