C# 클래스 Descent.Model.Event.Attack

An instance of an attack, with all the data necessary
파일 보기 프로젝트 열기: nezbo/Descent 1 사용 예제들

공개 메소드들

메소드 설명
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