Property | Type | Description | |
---|---|---|---|
level | int |
Property | Type | Description | |
---|---|---|---|
_game | |||
_gameState | |||
attackSpeedFactor | double | ||
camera | |||
effects | Effect | ||
graphics | GraphicsDeviceManager | ||
movementSpeedFactor | float | ||
name | string | ||
previousTick | TimeSpan | ||
texture | Texture2D |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
moveTo ( float possibleX, float possibleZ ) : void |
Moves to given position if possible.
|
|
moveTowards ( float x, float z, GameTime gameTime ) : void |
Moves towards given position.
|
Method | Description | |
---|---|---|
isValidPositionToMoveTo ( float x, float z ) : bool |
Checks if the given position is possible to move into.
|
public Creature ( |
||
game | ||
gameState | ||
position | Vector3 | |
return | System |
public Draw ( |
||
gameTime | ||
return | void |
protected moveTo ( float possibleX, float possibleZ ) : void | ||
possibleX | float | x coordinate |
possibleZ | float | z coordinate |
return | void |
protected moveTowards ( float x, float z, GameTime gameTime ) : void | ||
x | float | x coordinate |
z | float | z coordinate |
gameTime | GameTime | |
return | void |