Emergency 20 Dokumentation  4.2.0
BuildingCollapseEventFactory.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 em5
20 {
21  class BuildingComponent;
22 }
23 namespace qsf
24 {
25  class Entity;
26 }
27 
28 
29 //[-------------------------------------------------------]
30 //[ Namespace ]
31 //[-------------------------------------------------------]
32 namespace em5
33 {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Classes ]
38  //[-------------------------------------------------------]
44  {
45 
46 
47  //[-------------------------------------------------------]
48  //[ Public methods ]
49  //[-------------------------------------------------------]
50  public:
56 
62 
63 
64  //[-------------------------------------------------------]
65  //[ Public virtual em5::FreeplayEventFactory methods ]
66  //[-------------------------------------------------------]
67  public:
68  virtual FreeplayEvent* tryTriggerEvent() override;
69 
70 
71  //[-------------------------------------------------------]
72  //[ Private methods ]
73  //[-------------------------------------------------------]
74  private:
75  qsf::Entity* findHouseCandidate() const;
76  bool checkHouseCandidate(em5::BuildingComponent& buildingComponent) const;
77 
78 
79  //[-------------------------------------------------------]
80  //[ CAMP reflection system ]
81  //[-------------------------------------------------------]
82  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
83 
84 
85  };
86 
87 
88 //[-------------------------------------------------------]
89 //[ Namespace ]
90 //[-------------------------------------------------------]
91 } // em5
92 
93 
94 //[-------------------------------------------------------]
95 //[ CAMP reflection system ]
96 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
EMERGENCY 5 building component class.
Definition: BuildingComponent.h:56
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
EMERGENCY 5 freeplay event factory for "building collapse".
Definition: BuildingCollapseEventFactory.h:43
Definition: PickupPersonByParamedicAction.h:21
#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
Abstract EMERGENCY 5 freeplay event base class.
Definition: FreeplayEvent.h:66