Emergency 20 Dokumentation  4.2.0
UnitPoolHelper.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
14 
15 
16 //[-------------------------------------------------------]
17 //[ Namespace ]
18 //[-------------------------------------------------------]
19 namespace em5
20 {
21 
22 
23  //[-------------------------------------------------------]
24  //[ Classes ]
25  //[-------------------------------------------------------]
31  {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Public methods ]
36  //[-------------------------------------------------------]
37  public:
39  ~UnitPoolHelper();
40 
41 
42  //[-------------------------------------------------------]
43  //[ Public static methods ]
44  //[-------------------------------------------------------]
45  public:
46  static void setUnitPoolForLocalPlayer(const std::string& unitPoolName);
47 
48  static void setUnitPoolToStartup();
49  static void setUnitPoolToFixedAmount(int amount = 20);
50 
55  static void unblockAllBlockedUnits();
56 
57  static bool isUnitAvailable(const std::string& unitName);
58 
59  static bool isFireFighterDECONPAvailable();
60 
65  static void getUnitsInUseFromCurrentUnitPool(std::vector<uint64>& playerUnitsInUse);
66 
71  static void addUintsInUseToCurrentUnitPool(const std::vector<uint64>& playerUnitsInUse);
72 
73 
74  };
75 
76 
77 //[-------------------------------------------------------]
78 //[ Namespace ]
79 //[-------------------------------------------------------]
80 } // em5
Definition: ActionPriority.h:13
#define EM5_API_EXPORT
Definition: Export.h:28
EMERGENCY 5 static unit pool helper class.
Definition: UnitPoolHelper.h:30