My Project
 
Loading...
Searching...
No Matches
Actor Class Referenceabstract

#include <actor.h>

Inheritance diagram for Actor:
Collaboration diagram for Actor:

Public Member Functions

 Actor ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
int Id ()
 
void next ()
 

Static Public Member Functions

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

Static Public Attributes

static const int TICK = 1
 
static HashSet< Actor * > all
 

Protected Member Functions

virtual bool act ()=0
 
virtual void spend (float time)
 
void postpone (float time)
 
float cooldown ()
 
void diactivate ()
 
virtual void onAdd ()
 
virtual void onRemove ()
 

Constructor & Destructor Documentation

◆ Actor()

Actor::Actor ( )
Here is the caller graph for this function:

Member Function Documentation

◆ act()

◆ add()

void Actor::add ( Actor * actor)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ addDelayed()

void Actor::addDelayed ( Actor * actor,
float delay )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clear()

void Actor::clear ( )
static
Here is the caller graph for this function:

◆ cooldown()

float Actor::cooldown ( )
inlineprotected
Here is the caller graph for this function:

◆ diactivate()

void Actor::diactivate ( )
inlineprotected
Here is the caller graph for this function:

◆ findById()

Actor * Actor::findById ( int id)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ findChar()

Char * Actor::findChar ( int pos)
static
Here is the caller graph for this function:

◆ fixTime()

void Actor::fixTime ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freeCell()

void Actor::freeCell ( int pos)
static
Here is the caller graph for this function:

◆ Id()

int Actor::Id ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init()

void Actor::init ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ next()

void Actor::next ( )
inline
Here is the caller graph for this function:

◆ occupyCell()

void Actor::occupyCell ( Char * ch)
static
Here is the caller graph for this function:

◆ onAdd()

virtual void Actor::onAdd ( )
inlineprotectedvirtual

Reimplemented in King::Undead.

Here is the caller graph for this function:

◆ onRemove()

virtual void Actor::onRemove ( )
inlineprotectedvirtual

Reimplemented in Char, and King::Undead.

Here is the caller graph for this function:

◆ postpone()

void Actor::postpone ( float time)
protected
Here is the caller graph for this function:

◆ process()

void Actor::process ( )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove()

void Actor::remove ( Actor * actor)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ restoreFromBundle()

void Actor::restoreFromBundle ( Bundle * bundle)
virtual

Reimplemented in Bleeding, Blob, Brute, BuffPoison, Burning, Char, Charm, Earthroot::Armor, Hunger, King, Mimic, MirrorImage, Mob, Shadows, Sungrass::Health, Swarm, Terror, Viscosity::DeferedDamage, and Wraith.

Here is the caller graph for this function:

◆ spend()

virtual void Actor::spend ( float time)
inlineprotectedvirtual

Reimplemented in Char, and Hero.

Here is the caller graph for this function:

◆ storeInBundle()

void Actor::storeInBundle ( Bundle * bundle)
virtual

Reimplemented in Bleeding, Blob, BuffPoison, Burning, Char, Charm, Earthroot::Armor, Hunger, King, Mimic, MirrorImage, Mob, Shadows, Sungrass::Health, Swarm, Terror, Viscosity::DeferedDamage, and Wraith.

Here is the caller graph for this function:

Member Data Documentation

◆ all

HashSet< Actor * > Actor::all
static

◆ TICK

const int Actor::TICK = 1
static

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