Pol
Revision:cb584c9
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
chrcast.cpp
Go to the documentation of this file.
1
8
#include <stddef.h>
9
10
#include "../../clib/passert.h"
11
#include "../polclock.h"
12
#include "../spells.h"
13
#include "
charactr.h
"
14
15
16
namespace
Pol
17
{
18
namespace
Mobile
19
{
20
bool
Character::start_spell_script
(
Bscript::EScriptProgram
* prog,
Core::USpell
* spell )
21
{
22
return
start_script
( prog,
true
,
new
Bscript::BLong
( spell->
spell_id
() ) );
23
}
24
25
void
Character::schedule_spell
(
Core::USpell
* spell )
26
{
27
passert
(
spell_task
==
nullptr
);
28
new
Core::SpellTask
( &
spell_task
,
29
// polclock() + spell->delay() * POLCLOCKS_PER_SEC / 1000,
30
Core::polclock
(),
this
, spell,
true
);
31
}
32
}
33
}
Pol::Mobile::Character::start_spell_script
bool start_spell_script(Bscript::EScriptProgram *prog, Core::USpell *spell)
Definition:
chrcast.cpp:20
Pol::Core::SpellTask
Definition:
spells.h:154
Pol::Core::polclock
polclock_t polclock()
Definition:
polclock.cpp:72
charactr.h
Pol::Bscript::EScriptProgram
Definition:
eprog.h:77
Pol::Core::USpell
Definition:
spells.h:77
Pol::Core::USpell::spell_id
unsigned short spell_id() const
Definition:
spells.h:141
passert
#define passert(exp)
Definition:
passert.h:62
Pol::Core::FilterType::Mobile
Pol::Mobile::Character::schedule_spell
void schedule_spell(Core::USpell *)
Definition:
chrcast.cpp:25
Pol::Mobile::Character::start_script
bool start_script(Bscript::EScriptProgram *prog, bool start_attached, Bscript::BObjectImp *param2=nullptr, Bscript::BObjectImp *param3=nullptr, Bscript::BObjectImp *param4=nullptr)
Definition:
chrituse.cpp:30
Pol::Bscript::BLong
Definition:
bobject.h:565
Pol::Mobile::Character::spell_task
Core::OneShotTask * spell_task
Definition:
charactr.h:868
Pol
Definition:
berror.cpp:12
pol
mobile
chrcast.cpp
Generated on Wed Oct 10 2018 02:42:08 for Pol by
1.8.11