C# Class Descent.Model.Event.Ability

Any ability, that have an effect on figures, heroes and the overlord.
Mostra file Open project: nezbo/Descent Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
GetTrigger ( string trigger, Ability ability ) : Func
IfType ( ) : bool
IntBonus ( ) : int
QuickShot ( ) : void
WhenAttacking ( ) : bool
isTrue ( ) : bool

Method Details

Apply() public method

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

GetAbility() public static method

Creates an ability by parsing a string
public static GetAbility ( string abilityString ) : Ability
abilityString string /// An ability as a string ///
return Ability

ToString() public method

Prints an ability as a
public ToString ( ) : string
return string