메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
public Crouch ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
리턴 | void |
public Crouch ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
offset | Vector2 | |
리턴 | void |
public Draw ( |
||
gameTime | ||
spriteBatch | ||
리턴 | void |
public Engarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
리턴 | void |
public Engarde ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
offset | Vector2 | |
리턴 | void |
public GoDown ( Enumeration priority, Vector2 offSet ) : void | ||
priority | Enumeration | |
offSet | Vector2 | |
리턴 | void |
public Player ( |
||
room | ||
position | Vector2 | |
roomcoords | Point | |
GraphicsDevice__1 | GraphicsDevice | |
spriteEffect | SpriteEffects | |
리턴 | System |
public RJumpFall ( Enumeration priority, Enumeration reverse ) : void | ||
priority | Enumeration | |
reverse | Enumeration | |
리턴 | void |
public Reset ( SpriteEffects spriteeffect ) : void | ||
spriteeffect | SpriteEffects | |
리턴 | void |
public Reset ( Vector2 position, SpriteEffects spriteEffect ) : void | ||
position | Vector2 | The position to come to life at. |
spriteEffect | SpriteEffects | |
리턴 | void |
public Stand ( Enumeration priority, System |
||
priority | Enumeration | |
stoppable | System |
|
리턴 | void |
public Start ( Vector2 position ) : void | ||
position | Vector2 | The position to come to life at. |
리턴 | void |
public StepFall ( Enumeration priority, Vector2 offSet ) : void | ||
priority | Enumeration | |
offSet | Vector2 | |
리턴 | void |
public Stoop ( Enumeration priority, Vector2 offSet ) : void | ||
priority | Enumeration | |
offSet | Vector2 | |
리턴 | void |
public Update ( |
||
gameTime | ||
keyboardState | ||
gamePadState | ||
touchState | TouchCollection | |
accelState | AccelerometerState | |
orientation | DisplayOrientation | |
리턴 | void |