Свойство | Type | Description | |
---|---|---|---|
abilities | List |
||
armor | int | ||
attacksLeft | int | ||
diceForAttacks | List |
||
effects | List |
||
health | int | ||
maxHealth | int | ||
movementLeft | int | ||
name | string | ||
speed | int | ||
surgeAbilities | List |
||
texture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
uniqueID | int |
Méthode | Description | |
---|---|---|
AddAbility ( |
Adds an ability to the list of abilities for this figure
|
|
AddAttack ( ) : void |
Add one attack.
|
|
AddHealth ( int amount ) : void |
Adds a number of health to the health total, up to the max health
|
|
AddMovement ( int amount ) : void |
Adds speed to the speed total
|
|
Figure ( int id, string name, |
Initializes a new instance of the Figure class.
|
|
GetAttack ( |
Gets an attack instance with the attacking figure, different bonuses, and the dice attacking
|
|
Initialize ( ) : void |
Call when the game is about to start, so the figure gets life
|
|
RemoveAttack ( ) : void |
Remove one attack.
|
|
RemoveHealth ( int amount ) : void |
Removes a number of health to the health total, down to 0
|
|
RemoveMovement ( int amount ) : void |
Removes speed to the speed total, down to 0
|
|
SetAttacks ( int amount ) : void |
Sets how many attacks the hero has (without bonus). Used at the start of the hero's turn.
|
|
SetMovement ( int amount ) : void |
Sets the movement left equal to the amount.
|
Méthode | Description | |
---|---|---|
ObjectInvariant ( ) : void |
public AddAbility ( |
||
ability | /// The ability to be added /// | |
Résultat | void |
public AddHealth ( int amount ) : void | ||
amount | int | /// The amount to be added /// |
Résultat | void |
public AddMovement ( int amount ) : void | ||
amount | int | /// The amount to be added /// |
Résultat | void |
public Figure ( int id, string name, |
||
id | int | /// The id of the figure /// |
name | string | /// The name of the figure /// |
size | /// The size of the figure /// | |
Résultat | System.Collections.Generic |
public GetAttack ( |
||
targetSquare | /// The target point where the figure is attacking /// | |
Résultat |
public RemoveHealth ( int amount ) : void | ||
amount | int | /// The amount to be removed /// |
Résultat | void |
public RemoveMovement ( int amount ) : void | ||
amount | int | /// The amount to be removed /// |
Résultat | void |
public SetAttacks ( int amount ) : void | ||
amount | int | /// The amount of attacks /// |
Résultat | void |
public SetMovement ( int amount ) : void | ||
amount | int | /// The amount of movement /// |
Résultat | void |
protected Texture2D,Microsoft.Xna.Framework.Graphics texture | ||
Résultat | Microsoft.Xna.Framework.Graphics.Texture2D |