C# Class Descent.Model.Event.Attack

An instance of an attack, with all the data necessary
Afficher le fichier Open project: nezbo/Descent Class Usage Examples

Méthodes publiques

Méthode Description
Attack ( Figure attackingFigure, Point targetSquare ) : System.Collections.Generic

Initializes a new instance of the Attack class.

RollDice ( ) : void

Rolls all dice, and determines whether the attack is missed

SetDiceSides ( int diceSides ) : void

Sets all dice to the side of the array given

ToString ( ) : string

Gets the attack instance as a string

Private Methods

Méthode Description
CalculateStats ( ) : void

Calculates the current values of range, damage, surges and pierce

ObjectInvariant ( ) : void

Method Details

Attack() public méthode

Initializes a new instance of the Attack class.
public Attack ( Figure attackingFigure, Point targetSquare ) : System.Collections.Generic
attackingFigure Descent.Model.Player.Figure.Figure /// The attacking Figure. ///
targetSquare Microsoft.Xna.Framework.Point /// The square that is attacked ///
Résultat System.Collections.Generic

RollDice() public méthode

Rolls all dice, and determines whether the attack is missed
public RollDice ( ) : void
Résultat void

SetDiceSides() public méthode

Sets all dice to the side of the array given
public SetDiceSides ( int diceSides ) : void
diceSides int /// An array indicating the values of the dice face ///
Résultat void

ToString() public méthode

Gets the attack instance as a string
public ToString ( ) : string
Résultat string