Emergency 20 Dokumentation  4.2.0
em5::FreeplayEventFactoryManager Class Reference

EMERGENCY 5 freeplay event factory manager. More...

#include <FreeplayEventFactoryManager.h>

Inheritance diagram for em5::FreeplayEventFactoryManager:
qsf::Manager

Public Member Functions

 FreeplayEventFactoryManager ()
 Default constructor. More...
 
virtual ~FreeplayEventFactoryManager ()
 Destructor. More...
 
FreeplayEventFactorygetRandomEventFactory (bool onlyMarkedAsStart) const
 Return a randomly chosen event factory. More...
 
FreeplayEventFactorygetEventFactoryById (uint32 id) const
 Return an event factory with the given ID. More...
 
FreeplayEventFactorygetEventFactoryByIndex (uint32 index) const
 
const FactoryArray & getEventFactories () const
 

Friends

class FreeplaySystem
 
class FreeplayEventPoolManager
 

Additional Inherited Members

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

Detailed Description

EMERGENCY 5 freeplay event factory manager.

Constructor & Destructor Documentation

em5::FreeplayEventFactoryManager::FreeplayEventFactoryManager ( )

Default constructor.

virtual em5::FreeplayEventFactoryManager::~FreeplayEventFactoryManager ( )
virtual

Destructor.

Member Function Documentation

const FactoryArray& em5::FreeplayEventFactoryManager::getEventFactories ( ) const
inline
FreeplayEventFactory* em5::FreeplayEventFactoryManager::getEventFactoryById ( uint32  id) const

Return an event factory with the given ID.

FreeplayEventFactory* em5::FreeplayEventFactoryManager::getEventFactoryByIndex ( uint32  index) const
FreeplayEventFactory* em5::FreeplayEventFactoryManager::getRandomEventFactory ( bool  onlyMarkedAsStart) const

Return a randomly chosen event factory.

Parameters
[in]onlyMarkedAsStartIf true then only events marked as start events are selected
Returns
The chosen event factory, or a null pointer in case there is none available or the random selection failed
Remarks
Takes into account "enabled"-state and trigger chance factor of the factories.

Friends And Related Function Documentation

friend class FreeplayEventPoolManager
friend
friend class FreeplaySystem
friend

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