Emergency 20 Dokumentation  4.2.0
FireEventCandidateSearchHelper.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 //[ Forward declarations ]
18 //[-------------------------------------------------------]
19 namespace qsf
20 {
21  namespace game
22  {
23  class EventTagComponent;
24  class EventTagManagerComponent;
25  }
26 }
27 
28 
29 //[-------------------------------------------------------]
30 //[ Namespace ]
31 //[-------------------------------------------------------]
32 namespace em5
33 {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Classes ]
38  //[-------------------------------------------------------]
44  {
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public definitions ]
49  //[-------------------------------------------------------]
50  public:
51  typedef std::vector<std::string> EventTagStringArray; // Array of string event tags
52  typedef const std::vector<qsf::game::EventTagComponent*>* EventTagComponentArray; // Array of string hashed event tags
53  typedef std::vector<EventTagComponentArray> EventTagComponentArrayArray;// Array of arrays of ..
54 
55 
56  //[-------------------------------------------------------]
57  //[ Public methods ]
58  //[-------------------------------------------------------]
59  public:
65 
71 
72 
73  //[-------------------------------------------------------]
74  //[ Public methods ]
75  //[-------------------------------------------------------]
76  public:
77  void setDifficultyTagsByString(const std::string& eventTags);
78 
83  bool hasDifficultyTag(const qsf::game::EventTagComponent& eventTagComponent) const;
84  bool hasDifficultyTag(const qsf::Entity& entity) const;
85 
90  qsf::game::EventTagManagerComponent& getEventTagManager();
91 
96  qsf::game::EventTagComponent* getRandomEventTagComonent() const;
97 
98 
99  //[-------------------------------------------------------]
100  //[ Private data ]
101  //[-------------------------------------------------------]
102  private:
103  EventTagStringArray mEventTagStrings;
104  EventTagComponentArrayArray mEventTagComponents;
105  uint32 mNumberOfEventTagComponents;
106  qsf::game::EventTagManagerComponent* mEventTagManager;
107 
108 
109  };
110 
111 
112 //[-------------------------------------------------------]
113 //[ Namespace ]
114 //[-------------------------------------------------------]
115 } // em5
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
QSF game event tag component class.
Definition: EventTagComponent.h:37
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
std::vector< EventTagComponentArray > EventTagComponentArrayArray
Definition: FireEventCandidateSearchHelper.h:53
QSF game event tag manager component class.
Definition: EventTagManagerComponent.h:46
const std::vector< qsf::game::EventTagComponent * > * EventTagComponentArray
Definition: FireEventCandidateSearchHelper.h:52
Definition: PickupPersonByParamedicAction.h:21
std::vector< std::string > EventTagStringArray
Definition: FireEventCandidateSearchHelper.h:51
EMERGENCY 5 fire event candidate search helper.
Definition: FireEventCandidateSearchHelper.h:43