#include <TeleportEgg.h>
Inheritance diagram for TeleportEgg:
Public Member Functions | |
TeleportEgg () | |
virtual | ~TeleportEgg () |
ENABLE_RUNTIME_CLASSTYPE () | |
bool | isTeleporter () const |
int | getTeleportId () const |
bool | loadData (IDataSource *ids, uint32 version) |
virtual uint16 | hatch () |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Friends | |
class | ItemFactory |
Definition at line 24 of file TeleportEgg.h.
TeleportEgg::TeleportEgg | ( | ) |
Definition at line 31 of file TeleportEgg.cpp.
TeleportEgg::~TeleportEgg | ( | ) | [virtual] |
Definition at line 37 of file TeleportEgg.cpp.
TeleportEgg::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Egg.
int TeleportEgg::getTeleportId | ( | ) | const [inline] |
uint16 TeleportEgg::hatch | ( | ) | [virtual] |
hatch the egg
Reimplemented from Egg.
Definition at line 42 of file TeleportEgg.cpp.
References getMainActor(), getTeleportId(), isTeleporter(), Item::mapnum, perr, and MainActor::teleport().
bool TeleportEgg::isTeleporter | ( | ) | const [inline] |
Definition at line 33 of file TeleportEgg.h.
References Item::frame.
Referenced by hatch(), and EggHatcherProcess::run().
bool TeleportEgg::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
void TeleportEgg::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Item data
Reimplemented from Egg.
Definition at line 55 of file TeleportEgg.cpp.
References Egg::saveData().
friend class ItemFactory [friend] |