FireballProcess Class Reference

#include <FireballProcess.h>

Inheritance diagram for FireballProcess:

Process List of all members.

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

Detailed Description

Definition at line 27 of file FireballProcess.h.


Constructor & Destructor Documentation

FireballProcess::FireballProcess (  ) 

Definition at line 37 of file FireballProcess.cpp.

FireballProcess::FireballProcess ( Item item,
Item target 
)

Definition at line 43 of file FireballProcess.cpp.

References Object::getObjId(), Process::item_num, tail, target, and Process::type.


Member Function Documentation

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().


Member Data Documentation

uint16 FireballProcess::age [protected]

Definition at line 51 of file FireballProcess.h.

Referenced by loadData(), run(), and saveData().

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]

Definition at line 48 of file FireballProcess.h.

Referenced by loadData(), run(), and saveData().

int FireballProcess::yspeed [protected]

Definition at line 48 of file FireballProcess.h.

Referenced by loadData(), run(), and saveData().


The documentation for this class was generated from the following files:
Generated on Fri Jul 27 22:29:11 2007 for pentagram by  doxygen 1.4.7