C# Класс Descent.Model.Event.Attack

An instance of an attack, with all the data necessary
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
CalculateStats ( ) : void

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

ObjectInvariant ( ) : void

Описание методов

Attack() публичный Метод

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 ///
Результат System.Collections.Generic

RollDice() публичный Метод

Rolls all dice, and determines whether the attack is missed
public RollDice ( ) : void
Результат void

SetDiceSides() публичный Метод

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 ///
Результат void

ToString() публичный Метод

Gets the attack instance as a string
public ToString ( ) : string
Результат string