#include <MonsterEgg.h>
Inheritance diagram for MonsterEgg:
Public Member Functions | |
MonsterEgg () | |
virtual | ~MonsterEgg () |
ENABLE_RUNTIME_CLASSTYPE () | |
int | getProb () const |
int | getMonsterShape () const |
int | getActivity () const |
uint16 | hatch () |
bool | loadData (IDataSource *ids, uint32 version) |
INTRINSIC (I_monsterEggHatch) | |
INTRINSIC (I_getMonId) | |
Protected Member Functions | |
virtual void | saveData (ODataSource *ods) |
Friends | |
class | ItemFactory |
Definition at line 25 of file MonsterEgg.h.
MonsterEgg::MonsterEgg | ( | ) |
Definition at line 35 of file MonsterEgg.cpp.
MonsterEgg::~MonsterEgg | ( | ) | [virtual] |
Definition at line 41 of file MonsterEgg.cpp.
MonsterEgg::ENABLE_RUNTIME_CLASSTYPE | ( | ) |
Reimplemented from Item.
int MonsterEgg::getActivity | ( | ) | const [inline] |
int MonsterEgg::getMonsterShape | ( | ) | const [inline] |
int MonsterEgg::getProb | ( | ) | const [inline] |
uint16 MonsterEgg::hatch | ( | ) |
Definition at line 46 of file MonsterEgg.cpp.
References Item::canExistAt(), ItemFactory::createActor(), Actor::cSetActivity(), Container::destroy(), Item::FLG_DISPOSABLE, Item::FLG_FAST_ONLY, Item::FLG_IN_NPC_LIST, getActivity(), Item::getMapNum(), getMonsterShape(), Object::getObjId(), Actor::loadMonsterStats(), Item::move(), perr, Item::setMapNum(), Item::setNpcNum(), Item::shape, Item::x, Item::y, and Item::z.
MonsterEgg::INTRINSIC | ( | I_getMonId | ) |
MonsterEgg::INTRINSIC | ( | I_monsterEggHatch | ) |
bool MonsterEgg::loadData | ( | IDataSource * | ids, | |
uint32 | version | |||
) |
void MonsterEgg::saveData | ( | ODataSource * | ods | ) | [protected, virtual] |
save the actual Item data
Reimplemented from Item.
Definition at line 87 of file MonsterEgg.cpp.
References Item::saveData().
friend class ItemFactory [friend] |