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

#include <buff.h>

Inheritance diagram for Buff:
Collaboration diagram for Buff:

Public Member Functions

 Buff ()
 
virtual bool attachTo (Char *target)
 
virtual void detach ()
 
virtual bool act ()
 
virtual int icon ()
 
virtual std::string toString ()=0
 
- Public Member Functions inherited from Actor
 Actor ()
 
virtual void storeInBundle (Bundle *bundle)
 
virtual void restoreFromBundle (Bundle *bundle)
 
int Id ()
 
void next ()
 

Static Public Member Functions

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

Chartarget
 

Additional Inherited Members

- Static Public Attributes inherited from Actor
static const int TICK = 1
 
static HashSet< Actor * > all
 
- 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 ()
 

Constructor & Destructor Documentation

◆ Buff()

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

Member Function Documentation

◆ act()

virtual bool Buff::act ( )
inlinevirtual

◆ affect() [1/2]

Buff * Buff::affect ( Char * target,
const std::string & buffClass )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ affect() [2/2]

FlavourBuff * Buff::affect ( Char * target,
const std::string & buffClass,
float duration )
static
Here is the call graph for this function:

◆ append() [1/2]

Buff * Buff::append ( Char * target,
const std::string & buff )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append() [2/2]

FlavourBuff * Buff::append ( Char * target,
const std::string & buffClass,
float duration )
static
Here is the call graph for this function:

◆ attachTo()

bool Buff::attachTo ( Char * target)
virtual

◆ detach() [1/3]

void Buff::detach ( )
virtual

Reimplemented in BuffParalysis, Frost, Invisibility, Levitation, Light, MindVision, Roots, and Shadows.

Here is the caller graph for this function:

◆ detach() [2/3]

void Buff::detach ( Buff * buff)
static
Here is the call graph for this function:

◆ detach() [3/3]

void Buff::detach ( Char * target,
const std::string & cl )
static
Here is the call graph for this function:

◆ icon()

int Buff::icon ( )
virtual

◆ prolong()

FlavourBuff * Buff::prolong ( Char * target,
const std::string & buffClass,
float duration )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

Member Data Documentation

◆ target

Char* Buff::target

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