EggHatcherProcess Class Reference

#include <EggHatcherProcess.h>

Inheritance diagram for EggHatcherProcess:

Process List of all members.

Public Member Functions

 EggHatcherProcess ()
virtual ~EggHatcherProcess ()
 ENABLE_RUNTIME_CLASSTYPE ()
virtual bool run (const uint32 framenum)
void addEgg (Egg *egg)
void addEgg (uint16 egg)
bool loadData (IDataSource *ids, uint32 version)

Private Member Functions

virtual void saveData (ODataSource *ods)

Private Attributes

std::vector< uint16eggs

Detailed Description

Definition at line 28 of file EggHatcherProcess.h.


Constructor & Destructor Documentation

EggHatcherProcess::EggHatcherProcess (  ) 

Definition at line 32 of file EggHatcherProcess.cpp.

EggHatcherProcess::~EggHatcherProcess (  )  [virtual]

Definition at line 38 of file EggHatcherProcess.cpp.


Member Function Documentation

void EggHatcherProcess::addEgg ( uint16  egg  ) 

Definition at line 43 of file EggHatcherProcess.cpp.

References eggs.

void EggHatcherProcess::addEgg ( Egg egg  ) 

Definition at line 48 of file EggHatcherProcess.cpp.

References eggs, and Object::getObjId().

EggHatcherProcess::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Process.

bool EggHatcherProcess::loadData ( IDataSource ids,
uint32  version 
)

load Process data

Reimplemented from Process.

Definition at line 107 of file EggHatcherProcess.cpp.

References Process::loadData().

bool EggHatcherProcess::run ( const uint32  framenum  )  [virtual]

Implements Process.

Definition at line 54 of file EggHatcherProcess.cpp.

References eggs, Item::getFootpadWorld(), Item::getLocation(), getMainActor(), getObject(), Egg::getXRange(), Egg::getYRange(), MainActor::hasJustTeleported(), Egg::hatch(), TeleportEgg::isTeleporter(), MainActor::setJustTeleported(), x, and y.

void EggHatcherProcess::saveData ( ODataSource ods  )  [private, virtual]

save the Process data

Reimplemented from Process.

Definition at line 101 of file EggHatcherProcess.cpp.

References Process::saveData().


Member Data Documentation

std::vector<uint16> EggHatcherProcess::eggs [private]

Definition at line 46 of file EggHatcherProcess.h.

Referenced by addEgg(), and run().


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