Emergency 20 Dokumentation  4.2.0
MedicalInBuildingEventFactory.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 definitions ]
36  //[-------------------------------------------------------]
37  public:
40 
41 
42  //[-------------------------------------------------------]
43  //[ Public methods ]
44  //[-------------------------------------------------------]
45  public:
51 
57 
58  QSF_DEFINE_FLAG_GETTER_AND_SETTER(PersonsAtWindow, mSearchFlags, SearchFlag::PERSONS_AT_WINDOW);
59  QSF_DEFINE_FLAG_GETTER_AND_SETTER(PersonsInside, mSearchFlags, SearchFlag::PERSONS_INSIDE);
60  QSF_DEFINE_FLAG_GETTER_AND_SETTER(IndustrialPlant, mSearchFlags, SearchFlag::INDUSTRIAL_PLANT);
61  QSF_DEFINE_FLAG_GETTER_AND_SETTER(DefectEbox, mSearchFlags, SearchFlag::DEFECTIVE_EBOX);
62 
63  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(TrappedPersonWithPlague, bool, mTrappedPersonWithPlague);
64  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(Explosion, bool, mExplosion);
65  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(DifficultyTags, const std::string&, mDifficultyTags);
66  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(EvacuateNeighborHouseChance, float, mEvacuateNeighborHouseChance)
67  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(SpawnFromConnectedSpanwpoolsChance, float, mSpawnFromConnectedSpawnpoolsChance)
68  QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(UseAmbientLayer, bool, mUseAmbientLayer)
69 
70 
71  //[-------------------------------------------------------]
72  //[ Public virtual em5::FreeplayEventFactory methods ]
73  //[-------------------------------------------------------]
74  public:
75  virtual FreeplayEvent* tryTriggerEvent() override;
76 
77 
78  //[-------------------------------------------------------]
79  //[ Private data ]
80  //[-------------------------------------------------------]
81  private:
82  SearchFlags mSearchFlags;
83  bool mTrappedPersonWithPlague;
84  bool mExplosion;
85  float mEvacuateNeighborHouseChance;
86  float mSpawnFromConnectedSpawnpoolsChance;
87  std::string mDifficultyTags;
88  bool mUseAmbientLayer;
89 
90  // Internal
91  std::string mLayerName;
92 
93 
94  //[-------------------------------------------------------]
95  //[ CAMP reflection system ]
96  //[-------------------------------------------------------]
97  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
98 
99 
100  };
101 
102 
103 //[-------------------------------------------------------]
104 //[ Namespace ]
105 //[-------------------------------------------------------]
106 } // em5
107 
108 
109 //[-------------------------------------------------------]
110 //[ CAMP reflection system ]
111 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: AreaConfiguration.h:58
BuildingFireEventFactory::SearchFlags SearchFlags
Definition: MedicalInBuildingEventFactory.h:39
EMERGENCY 5 freeplay event factory for "medical in building emergency event".
Definition: MedicalInBuildingEventFactory.h:30
#define QSF_DEFINE_FLAG_GETTER_AND_SETTER(name, variable, flag)
Definition: PropertyHelper.h:24
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
EMERGENCY 5 freeplay event factory base class.
Definition: FreeplayEventFactory.h:56
SearchFlag
Definition: BuildingFireEventFactory.h:54
BuildingFireEventFactory::SearchFlag SearchFlag
Definition: MedicalInBuildingEventFactory.h:38
#define QSF_DEFINE_SIMPLE_GETTER_AND_SETTER(name, type, variable)
Definition: PropertyHelper.h:16
Abstract EMERGENCY 5 freeplay event base class.
Definition: FreeplayEvent.h:66