#include <HealProcess.h>
Inheritance diagram for HealProcess:
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 |
Definition at line 25 of file HealProcess.h.
HealProcess::HealProcess | ( | ) |
Definition at line 32 of file HealProcess.cpp.
References healCounter, hungerCounter, Process::item_num, and Process::type.
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().
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().