Property | Type | Description | |
---|---|---|---|
ArmedItem | Item | ||
EquippedItems | Item>.Dictionary |
Property | Type | Description | |
---|---|---|---|
angleFacing | float | ||
currentArmor | int | ||
facing | Direction | ||
totalArmor | int | ||
velocity | Vector2 |
Method | Description | |
---|---|---|
CharacterEntity ( Vector2 location, |
The constuctor... does nothing except call the parent constructor.
|
|
Damage ( int damage ) : void |
The damage calculation will be in this function.
|
|
Draw ( |
Draw the character class... and override the default behavior... take over the entity. Let none of it survive... except all of it.
|
|
Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void |
Loads any assets the entity may or may not need.
|
|
Update ( |
Update the character class.
|
public CharacterEntity ( Vector2 location, |
||
location | Vector2 | The location of the entity relative to global space. Note that the reference point of the entity is the center of the bounding box. |
drawBox | The box to which the sprite will be drawn. Only the width and height will be used. | |
boundingBox | The bounding box of the entity relative to the upper right hand corner of the entity. | |
return | System |
public Damage ( int damage ) : void | ||
damage | int | The amount of damage that is being taken |
return | void |
public Draw ( |
||
spriteBatch | ||
return | void |
public Load ( Microsoft.Xna.Framework.Content.ContentManager contentManager ) : void | ||
contentManager | Microsoft.Xna.Framework.Content.ContentManager | The intialized content manager that will be used to load the asset information. |
return | void |
public Update ( |
||
gameTime | The game time object for letting you know how old you've gotten since starting the game. | |
gameReference | A deeper game reference to the game reference of doom. | |
return | void |