Planeshift
|
Buffables. More...
#include <buffable.h>
Public Member Functions | |
T | Base () const |
void | Buff (const ActiveSpell *owner, T x) |
Buffable () | |
Buffable (T x) | |
virtual void | Cancel (const ActiveSpell *owner) |
T | Current () const |
void | SetBase (T x) |
virtual | ~Buffable () |
Protected Member Functions | |
virtual void | OnChange () |
Called whenever the value changes; implemented in derived classes. | |
Protected Attributes | |
T | base |
csArray< csTuple2< const ActiveSpell *, T > > | buffs |
T | cached |
Buffables.
Buffables provide a consistent interface for numerical stats that can be temporarily buffed by magic. These are additive in nature.
Definition at line 150 of file buffable.h.
Definition at line 153 of file buffable.h.
Definition at line 157 of file buffable.h.
Definition at line 161 of file buffable.h.
T Buffable< T >::Base | ( | ) | const [inline] |
Definition at line 167 of file buffable.h.
void Buffable< T >::Buff | ( | const ActiveSpell * | owner, |
T | x | ||
) | [inline] |
Definition at line 183 of file buffable.h.
virtual void Buffable< T >::Cancel | ( | const ActiveSpell * | owner | ) | [inline, virtual] |
Implements iSpellModifier.
Definition at line 191 of file buffable.h.
T Buffable< T >::Current | ( | ) | const [inline] |
Definition at line 163 of file buffable.h.
virtual void Buffable< T >::OnChange | ( | ) | [inline, protected, virtual] |
Called whenever the value changes; implemented in derived classes.
Reimplemented in SkillStatBuffable, VitalBuffable, MuteBuffable, and FrozenBuffable.
Definition at line 212 of file buffable.h.
void Buffable< T >::SetBase | ( | T | x | ) | [inline] |
Reimplemented in CharStat.
Definition at line 172 of file buffable.h.
Definition at line 216 of file buffable.h.
csArray< csTuple2<const ActiveSpell*, T> > Buffable< T >::buffs [protected] |
Definition at line 218 of file buffable.h.
Definition at line 217 of file buffable.h.