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

Any ability, that have an effect on figures, heroes and the overlord.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Apply ( Figure figure, bool remove = false ) : void

Applys the ability to a figure

GetAbility ( string abilityString ) : Ability

Creates an ability by parsing a string

ToString ( ) : string

Prints an ability as a

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

Метод Описание
GetTrigger ( string trigger, Ability ability ) : Func
IfType ( ) : bool
IntBonus ( ) : int
QuickShot ( ) : void
WhenAttacking ( ) : bool
isTrue ( ) : bool

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

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

Applys the ability to a figure
public Apply ( Figure figure, bool remove = false ) : void
figure Descent.Model.Player.Figure.Figure /// The figure to apply the figure to ///
remove bool
Результат void

GetAbility() публичный статический Метод

Creates an ability by parsing a string
public static GetAbility ( string abilityString ) : Ability
abilityString string /// An ability as a string ///
Результат Ability

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

Prints an ability as a
public ToString ( ) : string
Результат string