Planeshift
VitalBuffable Class Reference

Buffables for vitals, which automatically update the dirty flag as necessary. More...

#include <servervitals.h>

Public Member Functions

void Initialize (unsigned int *sDirty, int dirtyF)
 
virtual ~VitalBuffable ()
 
- Public Member Functions inherited from Buffable< float >
float Base () const
 
void Buff (const ActiveSpell *owner, floatx)
 
 Buffable ()
 
 Buffable (floatx)
 
virtual void Cancel (const ActiveSpell *owner)
 
float Current () const
 
void SetBase (floatx)
 
virtual ~Buffable ()
 
- Public Member Functions inherited from iSpellModifier
virtual ~iSpellModifier ()
 

Protected Member Functions

virtual void OnChange ()
 Called whenever the value changes; implemented in derived classes. More...
 

Protected Attributes

int dirtyFlag
 The bit value we should set when this becomes dirty. More...
 
unsigned intstatsDirty
 Pointer to the psServerVitals dirty bitfield. More...
 
- Protected Attributes inherited from Buffable< float >
float base
 
csArray< csTuple2< const ActiveSpell *, float > > buffs
 
float cached
 

Detailed Description

Buffables for vitals, which automatically update the dirty flag as necessary.

Definition at line 43 of file servervitals.h.

Constructor & Destructor Documentation

virtual VitalBuffable::~VitalBuffable ( )
inlinevirtual

Definition at line 46 of file servervitals.h.

Member Function Documentation

void VitalBuffable::Initialize ( unsigned int sDirty,
int  dirtyF 
)
inline

Definition at line 48 of file servervitals.h.

virtual void VitalBuffable::OnChange ( )
inlineprotectedvirtual

Called whenever the value changes; implemented in derived classes.

Reimplemented from Buffable< float >.

Definition at line 55 of file servervitals.h.

Member Data Documentation

int VitalBuffable::dirtyFlag
protected

The bit value we should set when this becomes dirty.

Definition at line 60 of file servervitals.h.

unsigned int* VitalBuffable::statsDirty
protected

Pointer to the psServerVitals dirty bitfield.

Definition at line 61 of file servervitals.h.


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