C# Class Descent.Model.Event.Ability

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

Méthodes publiques

Méthode 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

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

Method Details

Apply() public méthode

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
Résultat void

GetAbility() public static méthode

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

ToString() public méthode

Prints an ability as a
public ToString ( ) : string
Résultat string