Свойство | Тип | Описание | |
---|---|---|---|
MCurrentTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
MIsAlive | bool | ||
MNumLives | int |
Метод | Описание | |
---|---|---|
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 | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
public Draw ( |
||
canvas | Canvas SpriteBatch | |
gametime | Current gametime | |
Результат | 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 | ||
Результат | System |
public ResetIdle ( int mTimer, GravityDirections mDirection ) : void | ||
mTimer | int | |
mDirection | GravityDirections | |
Результат | void |
public Rumble ( double time, |
||
time | double | The amount of time to rumble |
gameTime | The current gameTime | |
Результат | void |
public Update ( |
||
gametime | The current Gametime | |
Результат | void |
public Texture2D,Microsoft.Xna.Framework.Graphics MCurrentTexture | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |