HealProcess Class Reference

#include <HealProcess.h>

Inheritance diagram for HealProcess:

Process List of all members.

Public Member Functions

 HealProcess ()
 ENABLE_RUNTIME_CLASSTYPE ()
virtual bool run (const uint32 framenum)
 INTRINSIC (I_feedAvatar)
bool loadData (IDataSource *ids, uint32 version)

Protected Member Functions

virtual void saveData (ODataSource *ods)
void feedAvatar (uint16 food)

Protected Attributes

uint16 healCounter
uint16 hungerCounter

Detailed Description

Definition at line 25 of file HealProcess.h.


Constructor & Destructor Documentation

HealProcess::HealProcess (  ) 

Definition at line 32 of file HealProcess.cpp.

References healCounter, hungerCounter, Process::item_num, and Process::type.


Member Function Documentation

HealProcess::ENABLE_RUNTIME_CLASSTYPE (  ) 

Reimplemented from Process.

void HealProcess::feedAvatar ( uint16  food  )  [protected]

Definition at line 77 of file HealProcess.cpp.

References Actor::getHP(), getMainActor(), Actor::getMaxHP(), hungerCounter, Actor::isDead(), Actor::setHP(), and Process::terminate().

HealProcess::INTRINSIC ( I_feedAvatar   ) 

bool HealProcess::loadData ( IDataSource ids,
uint32  version 
)

load Process data

Reimplemented from Process.

Definition at line 126 of file HealProcess.cpp.

References healCounter, hungerCounter, and Process::loadData().

bool HealProcess::run ( const uint32  framenum  )  [virtual]

Implements Process.

Definition at line 40 of file HealProcess.cpp.

References Actor::getHP(), getMainActor(), Actor::getMana(), healCounter, hungerCounter, Actor::isDead(), Actor::setHP(), Actor::setMana(), and Process::terminate().

void HealProcess::saveData ( ODataSource ods  )  [protected, virtual]

save the Process data

Reimplemented from Process.

Definition at line 118 of file HealProcess.cpp.

References healCounter, hungerCounter, Process::saveData(), and ODataSource::write2().


Member Data Documentation

uint16 HealProcess::healCounter [protected]

Definition at line 43 of file HealProcess.h.

Referenced by HealProcess(), loadData(), run(), and saveData().

uint16 HealProcess::hungerCounter [protected]

Definition at line 44 of file HealProcess.h.

Referenced by feedAvatar(), HealProcess(), loadData(), run(), and saveData().


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