Emergency 20 Dokumentation  4.2.0
em5::UnitPoolHelper Class Reference

EMERGENCY 5 static unit pool helper class. More...

#include <UnitPoolHelper.h>

Public Member Functions

 UnitPoolHelper ()
 
 ~UnitPoolHelper ()
 

Static Public Member Functions

static void setUnitPoolForLocalPlayer (const std::string &unitPoolName)
 
static void setUnitPoolToStartup ()
 
static void setUnitPoolToFixedAmount (int amount=20)
 
static void unblockAllBlockedUnits ()
 Make all blocked units available. More...
 
static bool isUnitAvailable (const std::string &unitName)
 
static bool isFireFighterDECONPAvailable ()
 
static void getUnitsInUseFromCurrentUnitPool (std::vector< uint64 > &playerUnitsInUse)
 Extract the units that are currently in use. More...
 
static void addUintsInUseToCurrentUnitPool (const std::vector< uint64 > &playerUnitsInUse)
 Add a list of player unit ids on the map and add them as "inUse" chapter to the current unit pool. More...
 

Detailed Description

EMERGENCY 5 static unit pool helper class.

Constructor & Destructor Documentation

em5::UnitPoolHelper::UnitPoolHelper ( )
em5::UnitPoolHelper::~UnitPoolHelper ( )

Member Function Documentation

static void em5::UnitPoolHelper::addUintsInUseToCurrentUnitPool ( const std::vector< uint64 > &  playerUnitsInUse)
static

Add a list of player unit ids on the map and add them as "inUse" chapter to the current unit pool.

static void em5::UnitPoolHelper::getUnitsInUseFromCurrentUnitPool ( std::vector< uint64 > &  playerUnitsInUse)
static

Extract the units that are currently in use.

static bool em5::UnitPoolHelper::isFireFighterDECONPAvailable ( )
static
static bool em5::UnitPoolHelper::isUnitAvailable ( const std::string &  unitName)
static
static void em5::UnitPoolHelper::setUnitPoolForLocalPlayer ( const std::string &  unitPoolName)
static
static void em5::UnitPoolHelper::setUnitPoolToFixedAmount ( int  amount = 20)
static
static void em5::UnitPoolHelper::setUnitPoolToStartup ( )
static
static void em5::UnitPoolHelper::unblockAllBlockedUnits ( )
static

Make all blocked units available.


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