Pol  Revision:cb584c9
Pol::Core::SpellTask Class Reference

#include <spells.h>

+ Inheritance diagram for Pol::Core::SpellTask:

Public Member Functions

 SpellTask (OneShotTask **handle, polclock_t run_when, Mobile::Character *caster, USpell *spell, bool dummy)
 
virtual void on_run () POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Core::OneShotTask
 OneShotTask (OneShotTask **handle, polclock_t run_when)
 
virtual void cancel (void) POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Core::ScheduledTask
 ScheduledTask (polclock_t next_run_clock)
 
virtual ~ScheduledTask ()
 
polclock_t clocksleft (polclock_t now)
 
bool late (polclock_t now)
 
polclock_t next_run_clock () const
 
bool ready (polclock_t now)
 
polticks_t ticks_late (polclock_t now)
 
polticks_t ticks_left (polclock_t now) const
 

Private Attributes

CharacterRef caster_
 
USpellspell_
 

Additional Inherited Members

- Protected Member Functions inherited from Pol::Core::OneShotTask
virtual ~OneShotTask ()
 
virtual void execute (polclock_t now) POL_OVERRIDE
 
- Protected Attributes inherited from Pol::Core::ScheduledTask
bool cancelled
 
polclock_t last_run_clock_
 
polclock_t next_run_clock_
 

Detailed Description

Definition at line 154 of file spells.h.

Constructor & Destructor Documentation

Pol::Core::SpellTask::SpellTask ( OneShotTask **  handle,
polclock_t  run_when,
Mobile::Character caster,
USpell spell,
bool  dummy 
)

Definition at line 259 of file spells.cpp.

Member Function Documentation

void Pol::Core::SpellTask::on_run ( )
virtual

Member Data Documentation

CharacterRef Pol::Core::SpellTask::caster_
private

Definition at line 162 of file spells.h.

Referenced by on_run().

USpell* Pol::Core::SpellTask::spell_
private

Definition at line 163 of file spells.h.

Referenced by on_run().


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