C# Class Descent.Model.Event.Attack

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

Public Methods

Method 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

Method Description
CalculateStats ( ) : void

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

ObjectInvariant ( ) : void

Method Details

Attack() public method

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 ///
return System.Collections.Generic

RollDice() public method

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

SetDiceSides() public method

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 ///
return void

ToString() public method

Gets the attack instance as a string
public ToString ( ) : string
return string