My Project
 
Loading...
Searching...
No Matches
Hunger Class Reference

#include <buff.h>

Inheritance diagram for Hunger:
Collaboration diagram for Hunger:

Public Member Functions

 CLASSOBJECT (Hunger)
 
 CLASSNAME (Hunger)
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual boolean act ()
 
void satisfy (float energy)
 
boolean isStarving ()
 
virtual int icon ()
 
virtual String toString ()
 
virtual void onDeath ()
 
- Public Member Functions inherited from Buff
 Buff ()
 
virtual bool attachTo (Char *target)
 
virtual void detach ()
 
- Public Member Functions inherited from Actor
 Actor ()
 
int Id ()
 
void next ()
 
- Public Member Functions inherited from Object
virtual std::string getObject ()=0
 

Static Public Attributes

static const float HUNGRY = 260.0f
 
static const float STARVING = 360.0f
 
- Static Public Attributes inherited from Actor
static const int TICK = 1
 
static HashSet< Actor * > all
 

Additional Inherited Members

- Static Public Member Functions inherited from Buff
static Buffappend (Char *target, const std::string &buff)
 
static FlavourBuffappend (Char *target, const std::string &buffClass, float duration)
 
static Buffaffect (Char *target, const std::string &buffClass)
 
static FlavourBuffaffect (Char *target, const std::string &buffClass, float duration)
 
static FlavourBuffprolong (Char *target, const std::string &buffClass, float duration)
 
static void detach (Buff *buff)
 
static void detach (Char *target, const std::string &cl)
 
- Static Public Member Functions inherited from Actor
static void fixTime ()
 
static void clear ()
 
static CharfindChar (int pos)
 
static ActorfindById (int id)
 
static void init ()
 
static void addDelayed (Actor *actor, float delay)
 
static void remove (Actor *actor)
 
static void add (Actor *actor)
 
static void occupyCell (Char *ch)
 
static void freeCell (int pos)
 
static void process ()
 
- Public Attributes inherited from Buff
Chartarget
 
- Protected Member Functions inherited from Actor
virtual void spend (float time)
 
void postpone (float time)
 
float cooldown ()
 
void diactivate ()
 
virtual void onAdd ()
 
virtual void onRemove ()
 

Member Function Documentation

◆ act()

boolean Hunger::act ( )
virtual

Reimplemented from Buff.

Here is the call graph for this function:

◆ CLASSNAME()

Hunger::CLASSNAME ( Hunger )

◆ CLASSOBJECT()

Hunger::CLASSOBJECT ( Hunger )

◆ icon()

int Hunger::icon ( )
virtual

Reimplemented from Buff.

◆ isStarving()

boolean Hunger::isStarving ( )
inline
Here is the caller graph for this function:

◆ onDeath()

void Hunger::onDeath ( )
virtual

Implements HeroDoom.

Here is the call graph for this function:

◆ restoreFromBundle()

void Hunger::restoreFromBundle ( Bundle * bundle)
virtual

Reimplemented from Actor.

Here is the call graph for this function:

◆ satisfy()

void Hunger::satisfy ( float energy)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ storeInBundle()

void Hunger::storeInBundle ( Bundle * bundle)
virtual

Reimplemented from Actor.

Here is the call graph for this function:

◆ toString()

virtual String Hunger::toString ( )
inlinevirtual

Implements Buff.

Here is the call graph for this function:

Member Data Documentation

◆ HUNGRY

const float Hunger::HUNGRY = 260.0f
static

◆ STARVING

const float Hunger::STARVING = 360.0f
static

The documentation for this class was generated from the following files: