18 #ifndef ACTIVESPELL_HEADER 19 #define ACTIVESPELL_HEADER 24 #include <csutil/parray.h> 118 return registrationTime;
120 void SetImage(csString imageName);
130 bool HasExpired()
const;
135 csString Persist()
const;
const csString & Name() const
void SetCancelOnDeath(bool x)
SPELL_TYPE type
Spell type - buff, debuff, etc.
const csString & Image() const
csTicks duration
How long this spell lasts.
bool cancelOnDeath
Whether or not this spell should be cancelled on death.
csString image
The icon representing the spell.
csString script
the contents of an <apply> node which recreates this effect
Any semi-autonomous object, either a player or an NPC.
csPDelArray< iCancelAction > actions
Actions to take when cancelling (i.e. unattaching scripts).
csArray< iSpellModifier * > modifiers
The iSpellModifiers this ActiveSpell altered, for cancelling.
csTicks registrationTime
Timestamp when the spell was registered, for comparison with csGetTicks().
csString name
The name of the spell.
csTicks RegistrationTime() const
gemActor * target
Who this spell is registered with.
bool damagesHP
Whether or not this spell damages HP (for cancel on duel defeat)