#include <FireballProcess.h>
Inheritance diagram for FireballProcess:
Public Member Functions | |
FireballProcess () | |
FireballProcess (Item *item, Item *target) | |
ENABLE_RUNTIME_CLASSTYPE () | |
virtual bool | run (const uint32 framenum) |
virtual void | terminate () |
INTRINSIC (I_TonysBalls) | |
bool | loadData (IDataSource *ids, uint32 version) |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
void | explode () |
Protected Attributes | |
int | xspeed |
int | yspeed |
ObjId | tail [3] |
ObjId | target |
uint16 | age |
Definition at line 27 of file FireballProcess.h.
FireballProcess::FireballProcess | ( | ) |
Definition at line 37 of file FireballProcess.cpp.
Definition at line 43 of file FireballProcess.cpp.
References Object::getObjId(), Process::item_num, tail, target, and Process::type.
FireballProcess::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Process.
void FireballProcess::explode | ( | ) | [protected] |
Definition at line 166 of file FireballProcess.cpp.
References Item::destroy(), getItem(), Process::item_num, and tail.
Referenced by terminate().
FireballProcess::INTRINSIC | ( | I_TonysBalls | ) |
bool FireballProcess::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
load Process data
Reimplemented from Process.
Definition at line 220 of file FireballProcess.cpp.
References age, Process::loadData(), tail, target, xspeed, and yspeed.
bool FireballProcess::run | ( | const uint32 | framenum | ) | [virtual] |
Implements Process.
Definition at line 60 of file FireballProcess.cpp.
References age, Item::collideMove(), ItemFactory::createItem(), WeaponInfo::DMG_FIRE, Item::EXT_SPRITE, Item::FLG_DISPOSABLE, Get_WorldDirection(), getActor(), Item::getDirToItemCentre(), getItem(), Item::getLocation(), Item::getLocationAbsolute(), Object::getObjId(), Process::item_num, Item::move(), Actor::receiveHit(), Item::setFrame(), tail, target, terminate(), x, x_fact, xspeed, y, y_fact, and yspeed.
void FireballProcess::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the Process data
Reimplemented from Process.
Definition at line 207 of file FireballProcess.cpp.
References age, Process::saveData(), tail, target, ODataSource::write2(), ODataSource::write4(), xspeed, and yspeed.
void FireballProcess::terminate | ( | ) | [virtual] |
terminate the process. This wakes up all processes waiting for it.
Reimplemented from Process.
Definition at line 158 of file FireballProcess.cpp.
References explode(), and Process::terminate().
Referenced by run().
uint16 FireballProcess::age [protected] |
ObjId FireballProcess::tail[3] [protected] |
Definition at line 49 of file FireballProcess.h.
Referenced by explode(), FireballProcess(), loadData(), run(), and saveData().
ObjId FireballProcess::target [protected] |
Definition at line 50 of file FireballProcess.h.
Referenced by FireballProcess(), loadData(), run(), and saveData().
int FireballProcess::xspeed [protected] |
int FireballProcess::yspeed [protected] |