MonsterEgg Class Reference

#include <MonsterEgg.h>

Inheritance diagram for MonsterEgg:

Item Object List of all members.

Public Member Functions

 MonsterEgg ()
virtual ~MonsterEgg ()
int getProb () const
int getMonsterShape () const
int getActivity () const
uint16 hatch ()
bool loadData (IDataSource *ids, uint32 version)
 INTRINSIC (I_monsterEggHatch)

Protected Member Functions

virtual void saveData (ODataSource *ods)


class ItemFactory

Detailed Description

Definition at line 25 of file MonsterEgg.h.

Constructor & Destructor Documentation

MonsterEgg::MonsterEgg (  ) 

Definition at line 35 of file MonsterEgg.cpp.

MonsterEgg::~MonsterEgg (  )  [virtual]

Definition at line 41 of file MonsterEgg.cpp.

Member Function Documentation


Reimplemented from Item.

int MonsterEgg::getActivity (  )  const [inline]

Definition at line 36 of file MonsterEgg.h.

References Item::mapnum.

Referenced by hatch().

int MonsterEgg::getMonsterShape (  )  const [inline]

Definition at line 35 of file MonsterEgg.h.

References Item::quality.

Referenced by hatch().

int MonsterEgg::getProb (  )  const [inline]

Definition at line 34 of file MonsterEgg.h.

References Item::quality.

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 

Reimplemented from Item.

Definition at line 92 of file MonsterEgg.cpp.

References Item::loadData().

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().

Friends And Related Function Documentation

friend class ItemFactory [friend]

Reimplemented from Item.

Definition at line 27 of file MonsterEgg.h.

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