Méthode | Description | |
---|---|---|
Advance ( |
||
Draw ( |
Draws the animated player.
|
|
Engarde ( ) : void | ||
Engarde ( Enumeration priority, System |
||
Guard ( |
Constructors a new player.
|
|
GuardEngarde ( ) : void | ||
GuardEngarde ( Enumeration priority, System |
||
HandleCollisionsNew ( ) : void | ||
Ready ( ) : void | ||
Ready ( Enumeration priority, System |
||
Reset ( Vector2 position, SpriteEffects spriteEffect ) : void |
Resets the player to life.
|
|
Stand ( ) : void | ||
Stand ( Enumeration priority ) : void | ||
Stand ( Enumeration priority, System |
||
Stand ( bool stoppable ) : void | ||
Update ( |
Handles input, performs physics, and animates the player sprite. We pass in all of the input states so that our game is only polling the hardware once per frame. We also pass the game's orientation because when using the accelerometer, we need to reverse our motion when the orientation is in the LandscapeRight orientation. |
Méthode | Description | |
---|---|---|
LoadContent ( ) : void |
public Advance ( |
||
position__1 | ||
flip | SpriteEffects | |
Résultat | void |
public Draw ( |
||
gameTime | ||
spriteBatch | ||
Résultat | void |
public Engarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Guard ( |
||
room | ||
position | Vector2 | |
GraphicsDevice__1 | GraphicsDevice | |
spriteEffect | SpriteEffects | |
Résultat | System |
public GuardEngarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Ready ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Reset ( Vector2 position, SpriteEffects spriteEffect ) : void | ||
position | Vector2 | The position to come to life at. |
spriteEffect | SpriteEffects | |
Résultat | void |
public Stand ( Enumeration priority ) : void | ||
priority | Enumeration | |
Résultat | void |
public Stand ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
Résultat | void |
public Update ( |
||
gameTime | ||
keyboardState | ||
gamePadState | ||
touchState | TouchCollection | |
accelState | AccelerometerState | |
orientation | DisplayOrientation | |
Résultat | void |