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

#include <blob.h>

Inheritance diagram for Blob:
Collaboration diagram for Blob:

Public Member Functions

virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
virtual bool act ()
 
virtual void use (BlobEmitter *emitter)
 
void seed (int cell, int amount)
 
void clear (int cell)
 
virtual std::string tileDesc ()
 
- Public Member Functions inherited from Actor
 Actor ()
 
int Id ()
 
void next ()
 

Static Public Member Functions

static Blobseed (int cell, int amount, const std::string &type)
 
- 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

int volume
 
std::vector< int > cur
 
BlobEmitteremitter
 

Static Public Attributes

static const int WIDTH = Level::WIDTH
 
static const int HEIGHT = Level::HEIGHT
 
static const int LENGTH = Level::LENGTH
 
- Static Public Attributes inherited from Actor
static const int TICK = 1
 
static HashSet< Actor * > all
 

Protected Member Functions

 Blob ()
 
virtual void evolve ()
 
- 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 ()
 

Protected Attributes

std::vector< int > off
 

Constructor & Destructor Documentation

◆ Blob()

Blob::Blob ( )
protected
Here is the caller graph for this function:

Member Function Documentation

◆ act()

bool Blob::act ( )
virtual

Implements Actor.

Here is the call graph for this function:

◆ clear()

void Blob::clear ( int cell)
Here is the caller graph for this function:

◆ evolve()

void Blob::evolve ( )
protectedvirtual

Reimplemented in BlobFire, ConfusionGas, ParalyticGas, and ToxicGas.

Here is the caller graph for this function:

◆ restoreFromBundle()

void Blob::restoreFromBundle ( Bundle * bundle)
virtual

Reimplemented from Actor.

Here is the call graph for this function:

◆ seed() [1/2]

void Blob::seed ( int cell,
int amount )
Here is the caller graph for this function:

◆ seed() [2/2]

Blob * Blob::seed ( int cell,
int amount,
const std::string & type )
static
Here is the call graph for this function:

◆ storeInBundle()

void Blob::storeInBundle ( Bundle * bundle)
virtual

Reimplemented from Actor.

Here is the call graph for this function:

◆ tileDesc()

virtual std::string Blob::tileDesc ( )
inlinevirtual

Reimplemented in BlobFire, ConfusionGas, ParalyticGas, and ToxicGas.

Here is the caller graph for this function:

◆ use()

virtual void Blob::use ( BlobEmitter * emitter)
inlinevirtual

Reimplemented in BlobFire, ConfusionGas, ParalyticGas, and ToxicGas.

Here is the caller graph for this function:

Member Data Documentation

◆ cur

std::vector<int> Blob::cur

◆ emitter

BlobEmitter* Blob::emitter

◆ HEIGHT

const int Blob::HEIGHT = Level::HEIGHT
static

◆ LENGTH

const int Blob::LENGTH = Level::LENGTH
static

◆ off

std::vector<int> Blob::off
protected

◆ volume

int Blob::volume

◆ WIDTH

const int Blob::WIDTH = Level::WIDTH
static

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