Planeshift
Public Member Functions | Protected Member Functions | Protected Attributes

Buffable< T > Class Template Reference

Buffables. More...

#include <buffable.h>

List of all members.

Public Member Functions

Base () const
void Buff (const ActiveSpell *owner, T x)
 Buffable ()
 Buffable (T x)
virtual void Cancel (const ActiveSpell *owner)
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

base
csArray< csTuple2< const
ActiveSpell *, T > > 
buffs
cached

Detailed Description

template<typename T>
class Buffable< T >

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.


Constructor & Destructor Documentation

template<typename T>
Buffable< T >::Buffable ( ) [inline]

Definition at line 153 of file buffable.h.

template<typename T>
Buffable< T >::Buffable ( x) [inline]

Definition at line 157 of file buffable.h.

template<typename T>
virtual Buffable< T >::~Buffable ( ) [inline, virtual]

Definition at line 161 of file buffable.h.


Member Function Documentation

template<typename T>
T Buffable< T >::Base ( ) const [inline]

Definition at line 167 of file buffable.h.

template<typename T>
void Buffable< T >::Buff ( const ActiveSpell owner,
x 
) [inline]

Definition at line 183 of file buffable.h.

template<typename T>
virtual void Buffable< T >::Cancel ( const ActiveSpell owner) [inline, virtual]

Implements iSpellModifier.

Definition at line 191 of file buffable.h.

template<typename T>
T Buffable< T >::Current ( ) const [inline]

Definition at line 163 of file buffable.h.

template<typename T>
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.

template<typename T>
void Buffable< T >::SetBase ( x) [inline]

Reimplemented in CharStat.

Definition at line 172 of file buffable.h.


Member Data Documentation

template<typename T>
T Buffable< T >::base [protected]

Definition at line 216 of file buffable.h.

template<typename T>
csArray< csTuple2<const ActiveSpell*, T> > Buffable< T >::buffs [protected]

Definition at line 218 of file buffable.h.

template<typename T>
T Buffable< T >::cached [protected]

Definition at line 217 of file buffable.h.


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