#include <Ability_Behavior.hpp>

Public Member Functions

 Ability_Behavior (iv::Instance *, Ability *m_ability)
 
iv::Instanceinstance () const
 

Public Attributes

iv::ClientMarker cm
 

Protected Member Functions

virtual void AbilityActivated ()=0
 
void AbilityEnable (bool)
 
Abilityability ()
 

Detailed Description

Allows implementors to make the ability either enabled or disabled, depending on outside conditions. Method AbilityActivated is called when activation of the ability is requested by the user.

Definition at line 14 of file Ability_Behavior.hpp.

Constructor & Destructor Documentation

◆ Ability_Behavior()

comp::Ability_Behavior::Ability_Behavior ( iv::Instance inst,
Ability m_ability 
)

Definition at line 6 of file Ability_Behavior.cpp.

Member Function Documentation

◆ instance()

iv::Instance * comp::Ability_Behavior::instance ( ) const

Definition at line 25 of file Ability_Behavior.cpp.

◆ AbilityActivated()

virtual void comp::Ability_Behavior::AbilityActivated ( )
protectedpure virtual

◆ AbilityEnable()

void comp::Ability_Behavior::AbilityEnable ( bool  enabled)
protected

Definition at line 35 of file Ability_Behavior.cpp.

◆ ability()

Ability * comp::Ability_Behavior::ability ( )
protected

Definition at line 30 of file Ability_Behavior.cpp.

Member Data Documentation

◆ cm

iv::ClientMarker comp::Ability_Behavior::cm

Definition at line 17 of file Ability_Behavior.hpp.


The documentation for this class was generated from the following files: