Mana
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | List of all members
EffectManager Class Reference

#include <effectmanager.h>

Classes

struct  EffectDescription
 

Public Member Functions

 EffectManager ()
 
 ~EffectManager ()
 
bool trigger (int id, Being *being, int rotation=0)
 Triggers a effect with the id, at the specified being, and with the given rotation in degree: 0° = Down, 90° = left, ...
 
bool trigger (int id, int x, int y, int rotation=0)
 Triggers a effect with the id, at the specified x and y coordinate, and with the given rotation in degree: 0° = Down, 90° = left, ...
 

Private Attributes

std::map< int, EffectDescriptionmEffects
 

Detailed Description

Definition at line 30 of file effectmanager.h.

Constructor & Destructor Documentation

◆ EffectManager()

EffectManager::EffectManager ( )

Definition at line 31 of file effectmanager.cpp.

◆ ~EffectManager()

EffectManager::~EffectManager ( )
default

Member Function Documentation

◆ trigger() [1/2]

bool EffectManager::trigger ( int  id,
Being being,
int  rotation = 0 
)

Triggers a effect with the id, at the specified being, and with the given rotation in degree: 0° = Down, 90° = left, ...

Definition at line 65 of file effectmanager.cpp.

◆ trigger() [2/2]

bool EffectManager::trigger ( int  id,
int  x,
int  y,
int  rotation = 0 
)

Triggers a effect with the id, at the specified x and y coordinate, and with the given rotation in degree: 0° = Down, 90° = left, ...

Definition at line 88 of file effectmanager.cpp.

Member Data Documentation

◆ mEffects

std::map<int, EffectDescription> EffectManager::mEffects
private

Definition at line 59 of file effectmanager.h.


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