#include <EggHatcherProcess.h>
Inheritance diagram for EggHatcherProcess:
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< uint16 > | eggs |
Definition at line 28 of file EggHatcherProcess.h.
EggHatcherProcess::EggHatcherProcess | ( | ) |
Definition at line 32 of file EggHatcherProcess.cpp.
EggHatcherProcess::~EggHatcherProcess | ( | ) | [virtual] |
Definition at line 38 of file EggHatcherProcess.cpp.
void EggHatcherProcess::addEgg | ( | uint16 | egg | ) |
void EggHatcherProcess::addEgg | ( | Egg * | egg | ) |
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().
std::vector<uint16> EggHatcherProcess::eggs [private] |