프로퍼티 | 타입 | 설명 | |
---|---|---|---|
level | int |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_game | |||
_gameState | |||
attackSpeedFactor | double | ||
camera | |||
effects | Effect | ||
graphics | GraphicsDeviceManager | ||
movementSpeedFactor | float | ||
name | string | ||
previousTick | TimeSpan | ||
texture | Texture2D |
메소드 | 설명 | |
---|---|---|
Creature ( |
||
Die ( ) : void |
Kills current creature, removes it from game components and monster list.
|
|
Draw ( |
||
Initialize ( ) : void |
Allows the game component to perform any initialization it needs to before starting to run. This is where it can query for any required services and load content.
|
메소드 | 설명 | |
---|---|---|
moveTo ( float possibleX, float possibleZ ) : void |
Moves to given position if possible.
|
|
moveTowards ( float x, float z, GameTime gameTime ) : void |
Moves towards given position.
|
메소드 | 설명 | |
---|---|---|
isValidPositionToMoveTo ( float x, float z ) : bool |
Checks if the given position is possible to move into.
|
public Creature ( |
||
game | ||
gameState | ||
position | Vector3 | |
리턴 | System |
public Draw ( |
||
gameTime | ||
리턴 | void |
protected moveTo ( float possibleX, float possibleZ ) : void | ||
possibleX | float | x coordinate |
possibleZ | float | z coordinate |
리턴 | void |
protected moveTowards ( float x, float z, GameTime gameTime ) : void | ||
x | float | x coordinate |
z | float | z coordinate |
gameTime | GameTime | |
리턴 | void |