Emergency 20 Dokumentation  4.2.0
em5::CleanupManager Class Reference

Manager for cleanups. More...

#include <CleanupManager.h>

Inheritance diagram for em5::CleanupManager:
qsf::Manager

Public Types

typedef std::vector< Cleanup * > CleanupArray
 
typedef std::pair< qsf::TransformComponent *, bool > BoxInformation
 

Public Member Functions

 CleanupManager ()
 Default constructor. More...
 
virtual ~CleanupManager ()
 Destructor. More...
 
void cleanupCompleteMap ()
 Call cleanup method of all registered observers. More...
 
void startup ()
 Startup of the manager. More...
 
void shutdown ()
 Startup of the manager. More...
 
void setCleanupUpdatesActive (bool active)
 Enable or disable all regular cleanup updates. More...
 
void removeAllCivilians ()
 Removes all civilians(cars/persons) from the map. More...
 
void removeAllGangster ()
 Removes all gangster (with gangsterflag) from the map. More...
 
void removeAllBarrierTapes ()
 Removes all barrier tapes from the map. More...
 
void cleanupFreeplayEntities (std::vector< qsf::Entity * > &cleanupEntities)
 

Friends

class Cleanup
 

Additional Inherited Members

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

Detailed Description

Manager for cleanups.

Remarks
Cleans all the damaged buildings and vehicles or injured persons

Member Typedef Documentation

Constructor & Destructor Documentation

em5::CleanupManager::CleanupManager ( )

Default constructor.

virtual em5::CleanupManager::~CleanupManager ( )
virtual

Destructor.

Member Function Documentation

void em5::CleanupManager::cleanupCompleteMap ( )

Call cleanup method of all registered observers.

void em5::CleanupManager::cleanupFreeplayEntities ( std::vector< qsf::Entity * > &  cleanupEntities)
void em5::CleanupManager::removeAllBarrierTapes ( )

Removes all barrier tapes from the map.

void em5::CleanupManager::removeAllCivilians ( )

Removes all civilians(cars/persons) from the map.

Note
Only civilians with an MoveToDespawnComponent gets removed
void em5::CleanupManager::removeAllGangster ( )

Removes all gangster (with gangsterflag) from the map.

void em5::CleanupManager::setCleanupUpdatesActive ( bool  active)

Enable or disable all regular cleanup updates.

void em5::CleanupManager::shutdown ( )

Startup of the manager.

void em5::CleanupManager::startup ( )

Startup of the manager.

Friends And Related Function Documentation

friend class Cleanup
friend

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