Emergency 20 Dokumentation  4.2.0
em5::FreeplayEventPoolManager Class Reference

EMERGENCY 5 freeplay event pool manager. More...

#include <FreeplayEventPoolManager.h>

Inheritance diagram for em5::FreeplayEventPoolManager:
qsf::Manager

Public Types

typedef std::vector< FreeplayEventFactory * > FactoryList
 
typedef std::unordered_map< std::string, FreeplayEventPoolEventPoolMap
 

Public Member Functions

 FreeplayEventPoolManager ()
 Default constructor. More...
 
virtual ~FreeplayEventPoolManager ()
 Destructor. More...
 
const EventPoolMapgetEventPoolMap () const
 Return a reference to the map of all available event pools. More...
 
bool createEventFactoriesFromPool (const std::string &eventPoolName, FactoryList &factoryList)
 Create all factories of the pool name to the factory array. More...
 
bool removeEventFactoriesFromPool (const std::string &eventPoolName, FactoryList &factoryList)
 
FreeplayEventFactorycreateEventFactoryByName (const std::string &eventPoolName, const std::string &eventName)
 Create an event factory by its events pool name and event name. More...
 
FreeplayEventFactorygetLastEventFactory ()
 Get the reference of the last used event factory. More...
 
void loadAssets ()
 Load the assets. More...
 
void startup ()
 Startup of the manager. More...
 

Friends

class FreeplaySystem
 

Additional Inherited Members

- Protected Member Functions inherited from qsf::Manager
 Manager ()
 Default constructor. More...
 
virtual ~Manager ()
 Destructor. More...
 

Detailed Description

EMERGENCY 5 freeplay event pool manager.

Member Typedef Documentation

typedef std::unordered_map<std::string, FreeplayEventPool> em5::FreeplayEventPoolManager::EventPoolMap

Constructor & Destructor Documentation

em5::FreeplayEventPoolManager::FreeplayEventPoolManager ( )

Default constructor.

virtual em5::FreeplayEventPoolManager::~FreeplayEventPoolManager ( )
virtual

Destructor.

Member Function Documentation

bool em5::FreeplayEventPoolManager::createEventFactoriesFromPool ( const std::string &  eventPoolName,
FactoryList factoryList 
)

Create all factories of the pool name to the factory array.

Parameters
[in]eventPoolNameThe name of the event pool we want to create
[out]factoryListContains all created factories
Returns
"True" when the event pool exists otherwise false
FreeplayEventFactory* em5::FreeplayEventPoolManager::createEventFactoryByName ( const std::string &  eventPoolName,
const std::string &  eventName 
)

Create an event factory by its events pool name and event name.

const EventPoolMap& em5::FreeplayEventPoolManager::getEventPoolMap ( ) const

Return a reference to the map of all available event pools.

FreeplayEventFactory* em5::FreeplayEventPoolManager::getLastEventFactory ( )

Get the reference of the last used event factory.

void em5::FreeplayEventPoolManager::loadAssets ( )

Load the assets.

bool em5::FreeplayEventPoolManager::removeEventFactoriesFromPool ( const std::string &  eventPoolName,
FactoryList factoryList 
)
void em5::FreeplayEventPoolManager::startup ( )

Startup of the manager.

Friends And Related Function Documentation

friend class FreeplaySystem
friend

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