Emergency 20 Dokumentation  4.2.0
OilRefineryExplosionEvent.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  //[-------------------------------------------------------]
34  {
35 
36 
37  //[-------------------------------------------------------]
38  //[ Public definitions ]
39  //[-------------------------------------------------------]
40  public:
41  static const uint32 FREEPLAY_EVENT_ID;
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
53 
58  virtual ~OilRefineryExplosionEvent();
59 
60 
61  //[-------------------------------------------------------]
62  //[ Public virtual em5::FreeplayEvent methods ]
63  //[-------------------------------------------------------]
64  public:
65  virtual bool onStartup() override;
66  virtual void onShutdown() override;
67  virtual void updateFreeplayEvent(const qsf::Time& timePassed) override;
68  virtual bool onFailure(EventResult& eventResult) override;
69 
70 
71  //[-------------------------------------------------------]
72  //[ Private methods ]
73  //[-------------------------------------------------------]
74  private:
75  int getNumberBurningBuildings();
76 
77 
78  //[-------------------------------------------------------]
79  //[ Private data ]
80  //[-------------------------------------------------------]
81  private:
82  int mMaxNumberBurningHouses;
83 
84 
85  //[-------------------------------------------------------]
86  //[ CAMP reflection system ]
87  //[-------------------------------------------------------]
88  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
89 
90 
91  };
92 
93 
94 //[-------------------------------------------------------]
95 //[ Namespace ]
96 //[-------------------------------------------------------]
97 } // em5
98 
99 
100 //[-------------------------------------------------------]
101 //[ CAMP reflection system ]
102 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Definition: FreeplayEvent.h:110
unsigned int uint32
Definition: PlatformTypes.h:181
#define EM5_API_EXPORT
Definition: Export.h:28
EMERGENCY 5 mini event "Explosion in oil refinery".
Definition: OilRefineryExplosionEvent.h:33
static const uint32 FREEPLAY_EVENT_ID
"em5::OilRefineryExplosionEvent" unique freeplay event ID
Definition: OilRefineryExplosionEvent.h:41
#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 "simple fire".
Definition: SimpleFireEvent.h:33
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32