#include <eDataCenter.h>
Public Member Functions | |
unsigned int | createPersonality (const ePersonalityPattern *personalityPattern) |
ePersonality * | getPersonality (unsigned int id) |
bool | removePersonality (unsigned int id) |
bool | fireEvent (ePersonality *out_personality, eEvent *eevent) |
const eReaction * | getReaction (ePersonality *personality) |
ePersonalityPattern const * | getPattern (int ID) const |
int | addPattern (ePersonalityPattern *newPattern) |
Static Public Member Functions | |
static bool | initDataCenter (eDataPool const *const dataPool, ePersonalityFactory *factory) |
static eDataCenter const * | getDataCenter (void) |
Public Attributes | |
eDataPool const *const | m_dataPool |
A singleton handling the data transfer in emotion. This class is responsible for creating and maintaining all kinds of objects, akteurs and so on and delegates the specific task to its members. Part of the static enviroment (read only)
Documantation optimized for doxygen.
int eDataCenter::addPattern | ( | ePersonalityPattern * | newPattern | ) |
Adds an Pattern via its ID to the pool.
newPattern | a pointer to the new pattern, which should get created. |
|
static |
enbaled the singelton mechanic by returning accesing the instace over this method
ePersonalityPattern const * eDataCenter::getPattern | ( | int | ID | ) | const |
Gets an Pattern via its ID.
ID | the id of the pattern, which shall get returned |
|
static |
Inits the data center
dataPool | the data pool, which gets used for logic operations |
factory | a factory to create a personality |
eDataPool const* const eDataCenter::m_dataPool |
a constant pointer to the constant data pool