eMotion
 All Classes Functions Variables Enumerations
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
eDataCenter Class Reference

#include <eDataCenter.h>

Public Member Functions

unsigned int createPersonality (const ePersonalityPattern *personalityPattern)
 
ePersonalitygetPersonality (unsigned int id)
 
bool removePersonality (unsigned int id)
 
bool fireEvent (ePersonality *out_personality, eEvent *eevent)
 
const eReactiongetReaction (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
 

Detailed Description

Author
Florian Harde flori.nosp@m.anha.nosp@m.rde@y.nosp@m.ahoo.nosp@m..de

DESCRIPTION

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.

Member Function Documentation

int eDataCenter::addPattern ( ePersonalityPattern newPattern)

Adds an Pattern via its ID to the pool.

Parameters
newPatterna pointer to the new pattern, which should get created.
Returns
the ID of th epattern.
eDataCenter const * eDataCenter::getDataCenter ( void  )
static

enbaled the singelton mechanic by returning accesing the instace over this method

Returns
the datacenter instnace
ePersonalityPattern const * eDataCenter::getPattern ( int  ID) const

Gets an Pattern via its ID.

Parameters
IDthe id of the pattern, which shall get returned
Returns
a pointer to a caonst pattern, if it was found or NULL otherwise.
bool eDataCenter::initDataCenter ( eDataPool const *const  dataPool,
ePersonalityFactory factory 
)
static

Inits the data center

Parameters
dataPoolthe data pool, which gets used for logic operations
factorya factory to create a personality
Returns
true, if everything was initializied correctly

Member Data Documentation

eDataPool const* const eDataCenter::m_dataPool

a constant pointer to the constant data pool


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