#include <Egg.h>
Inheritance diagram for Egg:
Public Member Functions | |
Egg () | |
virtual | ~Egg () |
ENABLE_RUNTIME_CLASSTYPE () | |
int | getXRange () const |
int | getYRange () const |
void | setXRange (int r) |
void | setYRange (int r) |
virtual uint16 | hatch () |
virtual void | leaveFastArea () |
void | reset () |
virtual void | dumpInfo () |
bool | loadData (IDataSource *ids, uint32 version) |
INTRINSIC (I_getEggXRange) | |
INTRINSIC (I_getEggYRange) | |
INTRINSIC (I_setEggXRange) | |
INTRINSIC (I_setEggYRange) | |
INTRINSIC (I_getEggId) | |
INTRINSIC (I_setEggId) | |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Protected Attributes | |
bool | hatched |
Friends | |
class | ItemFactory |
Definition at line 26 of file Egg.h.
void Egg::dumpInfo | ( | ) | [virtual] |
dump some info about this item to pout
Reimplemented from Item.
Definition at line 49 of file Egg.cpp.
References Item::dumpInfo(), getXRange(), getYRange(), hatched, and pout.
Referenced by MainActor::teleport().
Egg::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
int Egg::getXRange | ( | ) | const [inline] |
Definition at line 35 of file Egg.h.
References Item::npcnum.
Referenced by dumpInfo(), and EggHatcherProcess::run().
int Egg::getYRange | ( | ) | const [inline] |
Definition at line 36 of file Egg.h.
References Item::npcnum.
Referenced by dumpInfo(), and EggHatcherProcess::run().
uint16 Egg::hatch | ( | ) | [virtual] |
hatch the egg
Reimplemented in TeleportEgg.
Definition at line 42 of file Egg.cpp.
References Item::callUsecodeEvent_hatch(), and hatched.
Referenced by StartU8Process::run(), and EggHatcherProcess::run().
Egg::INTRINSIC | ( | I_setEggId | ) |
Egg::INTRINSIC | ( | I_getEggId | ) |
Egg::INTRINSIC | ( | I_setEggYRange | ) |
Egg::INTRINSIC | ( | I_setEggXRange | ) |
Egg::INTRINSIC | ( | I_getEggYRange | ) |
Egg::INTRINSIC | ( | I_getEggXRange | ) |
void Egg::leaveFastArea | ( | ) | [virtual] |
The item has left the fast area.
Reimplemented from Item.
Definition at line 56 of file Egg.cpp.
References Item::leaveFastArea(), and reset().
bool Egg::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
Reimplemented from Item.
Reimplemented in TeleportEgg.
Definition at line 70 of file Egg.cpp.
References hatched, and Item::loadData().
Referenced by TeleportEgg::loadData().
void Egg::reset | ( | ) | [inline] |
clear the 'hatched' flag
Definition at line 48 of file Egg.h.
References hatched.
Referenced by leaveFastArea(), and CurrentMap::writeback().
void Egg::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Item data
Reimplemented from Item.
Reimplemented in TeleportEgg.
Definition at line 62 of file Egg.cpp.
References hatched, Item::saveData(), and ODataSource::write1().
Referenced by TeleportEgg::saveData().
void Egg::setXRange | ( | int | r | ) | [inline] |
void Egg::setYRange | ( | int | r | ) | [inline] |
friend class ItemFactory [friend] |
bool Egg::hatched [protected] |
Definition at line 64 of file Egg.h.
Referenced by dumpInfo(), hatch(), loadData(), reset(), and saveData().