Egg Class Reference

#include <Egg.h>

Inheritance diagram for Egg:

Item Object TeleportEgg List of all members.

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

Detailed Description

Definition at line 26 of file Egg.h.


Constructor & Destructor Documentation

Egg::Egg (  ) 

Definition at line 31 of file Egg.cpp.

Egg::~Egg (  )  [virtual]

Definition at line 37 of file Egg.cpp.


Member Function Documentation

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

Reimplemented from Item.

Reimplemented in TeleportEgg.

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]

Definition at line 38 of file Egg.h.

References Item::npcnum.

void Egg::setYRange ( int  r  )  [inline]

Definition at line 39 of file Egg.h.

References Item::npcnum.


Friends And Related Function Documentation

friend class ItemFactory [friend]

Reimplemented from Item.

Reimplemented in TeleportEgg.

Definition at line 28 of file Egg.h.


Member Data Documentation

bool Egg::hatched [protected]

Definition at line 64 of file Egg.h.

Referenced by dumpInfo(), hatch(), loadData(), reset(), and saveData().


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