Method | Description | |
---|---|---|
Advance ( ) : void | ||
Bump ( ) : void | ||
Bump ( Enumeration priority ) : void | ||
Bump ( Enumeration priority, Enumeration reverse ) : void | ||
Burned ( Enumeration priority ) : void | ||
CheckItemOnFloor ( ) : void | ||
ClimbDown ( ) : void | ||
ClimbFail ( ) : void | ||
ClimbUp ( ) : void | ||
Crawl ( ) : void | ||
Crouch ( ) : void | ||
Crouch ( Enumeration priority ) : void | ||
Crouch ( Enumeration priority, System |
||
Crouch ( Enumeration priority, System |
||
Crouch ( System |
||
Draw ( |
Draws the animated player.
|
|
DrinkPotion ( ) : void | ||
DrinkPotionBig ( ) : void | ||
Engarde ( ) : void | ||
Engarde ( Enumeration priority, System |
||
Engarde ( Enumeration priority, System |
||
Engarde ( System |
||
GoDown ( ) : void | ||
GoDown ( Enumeration priority ) : void | ||
GoDown ( Enumeration priority, Vector2 offSet ) : void | ||
GoDown ( Vector2 offSet ) : void | ||
HandleCollisionsNew ( ) : void | ||
Hang ( ) : void | ||
HangDrop ( ) : void | ||
HighJump ( ) : void | ||
Impale ( ) : void | ||
Impale ( Enumeration priority ) : void | ||
JumpHangLong ( ) : void | ||
JumpHangMed ( ) : void | ||
OnReachedExit ( ) : void |
Called when this player reaches the level's exit.
|
|
ParseInput ( Enumeration input ) : void | ||
PickupSword ( ) : void | ||
Player ( |
Constructors a new player.
|
|
Question ( ) : void | ||
RJumpFall ( ) : void | ||
RJumpFall ( Enumeration priority ) : void | ||
RJumpFall ( Enumeration priority, Enumeration reverse ) : void | ||
Reset ( SpriteEffects spriteeffect ) : void | ||
Reset ( Vector2 position, SpriteEffects spriteEffect ) : void |
Resets the player to life.
|
|
Retreat ( ) : void | ||
RunJump ( ) : void | ||
RunStop ( ) : void | ||
RunStop ( Enumeration priority ) : void | ||
RunTurn ( ) : void | ||
Stand ( ) : void | ||
Stand ( Enumeration priority ) : void | ||
Stand ( Enumeration priority, System |
||
Stand ( bool stoppable ) : void | ||
StandJump ( ) : void | ||
StandJump ( Enumeration priority ) : void | ||
StandUp ( ) : void | ||
StandUp ( Enumeration priority ) : void | ||
Start ( Vector2 position ) : void |
Start position the player to life.
|
|
StartLevel ( |
||
StartRunning ( ) : void | ||
StepFall ( ) : void | ||
StepFall ( Enumeration priority ) : void | ||
StepFall ( Enumeration priority, Vector2 offSet ) : void | ||
StepForward ( ) : void | ||
Stoop ( ) : void | ||
Stoop ( Enumeration priority ) : void | ||
Stoop ( Enumeration priority, Vector2 offSet ) : void | ||
Stoop ( Vector2 offSet ) : void | ||
Strike ( ) : void | ||
Strike ( Enumeration priority ) : void | ||
Turn ( ) : 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. |
Method | Description | |
---|---|---|
GetInput ( |
Gets player horizontal movement and jump commands from input.
|
|
IsDownOfBlock ( bool isForClimbDown ) : System.Nullable |
||
IsFrontOfBlock ( bool isForHang ) : System.Nullable |
||
LoadContent ( ) : void |
Loads the player sprite sheet and sounds.
|
|
isBehind ( |
||
isClimbable ( ) : Enumeration.State |
Remnber: for example the top gate is x=3 y=1 first row bottom = 2 the top row = 0..
|
|
isClimbableDown ( ) : bool | ||
isLoosable ( ) : bool |
public Bump ( Enumeration priority, Enumeration reverse ) : void | ||
priority | Enumeration | |
reverse | Enumeration | |
return | void |
public Burned ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public Crouch ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public Crouch ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
return | void |
public Crouch ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
offset | Vector2 | |
return | void |
public Draw ( |
||
gameTime | ||
spriteBatch | ||
return | void |
public Engarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
return | void |
public Engarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
offset | Vector2 | |
return | void |
public GoDown ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public GoDown ( Enumeration priority, Vector2 offSet ) : void | ||
priority | Enumeration | |
offSet | Vector2 | |
return | void |
public Impale ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public ParseInput ( Enumeration input ) : void | ||
input | Enumeration | |
return | void |
public Player ( |
||
room | ||
position | Vector2 | |
roomcoords | Point | |
GraphicsDevice__1 | GraphicsDevice | |
spriteEffect | SpriteEffects | |
return | System |
public RJumpFall ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public RJumpFall ( Enumeration priority, Enumeration reverse ) : void | ||
priority | Enumeration | |
reverse | Enumeration | |
return | void |
public Reset ( SpriteEffects spriteeffect ) : void | ||
spriteeffect | SpriteEffects | |
return | void |
public Reset ( Vector2 position, SpriteEffects spriteEffect ) : void | ||
position | Vector2 | The position to come to life at. |
spriteEffect | SpriteEffects | |
return | void |
public RunStop ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public Stand ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
return | void |
public StandJump ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public StandUp ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public Start ( Vector2 position ) : void | ||
position | Vector2 | The position to come to life at. |
return | void |
public StepFall ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public StepFall ( Enumeration priority, Vector2 offSet ) : void | ||
priority | Enumeration | |
offSet | Vector2 | |
return | void |
public Stoop ( Enumeration priority, Vector2 offSet ) : void | ||
priority | Enumeration | |
offSet | Vector2 | |
return | void |
public Strike ( Enumeration priority ) : void | ||
priority | Enumeration | |
return | void |
public Update ( |
||
gameTime | ||
keyboardState | ||
gamePadState | ||
touchState | TouchCollection | |
accelState | AccelerometerState | |
orientation | DisplayOrientation | |
return | void |