Emergency 20 Dokumentation  4.2.0
MainEvent01KerosinePuddle.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 //[-------------------------------------------------------]
13 #include <qsf/job/JobProxy.h>
15 
16 
17 //[-------------------------------------------------------]
18 //[ Forward declarations ]
19 //[-------------------------------------------------------]
20 namespace qsf
21 {
22  class JobArguments;
23 }
24 
25 
26 //[-------------------------------------------------------]
27 //[ Namespace ]
28 //[-------------------------------------------------------]
29 namespace em5
30 {
31 
32 
33  //[-------------------------------------------------------]
34  //[ Classes ]
35  //[-------------------------------------------------------]
41  {
42 
43 
44  //[-------------------------------------------------------]
45  //[ Public methods ]
46  //[-------------------------------------------------------]
47  public:
53 
59 
64  void reset();
65 
73  void startGrowing(const qsf::Time& timeToGrow);
74 
75 
76  //[-------------------------------------------------------]
77  //[ Private methods ]
78  //[-------------------------------------------------------]
79  private:
80  void updatePuddle(const qsf::JobArguments& jobArguments);
81 
82 
83  //[-------------------------------------------------------]
84  //[ Private data ]
85  //[-------------------------------------------------------]
86  private:
87  qsf::GlobalAssetId mKerosinId;
88  qsf::JobProxy mUpdateJobProxy;
89  qsf::Time mTimePassed;
90  qsf::Time mTimeToGrow;
91 
92 
93  };
94 
95 
96 //[-------------------------------------------------------]
97 //[ Namespace ]
98 //[-------------------------------------------------------]
99 } // em5
Definition: ActionPriority.h:13
Job proxy class.
Definition: JobProxy.h:51
EMERGENCY 5 main event 01 growing kerosine puddle.
Definition: MainEvent01KerosinePuddle.h:40
void startGrowing(const qsf::Time &timeToGrow)
Start to grow the puddle.
Job arguments class: holds data to be passed to the called job method by the job manager.
Definition: JobArguments.h:40
Definition: PickupPersonByParamedicAction.h:21
void reset()
Reset the puddle to the start value.
uint64 GlobalAssetId
Definition: AssetSystemTypes.h:28
MainEvent01KerosinePuddle()
Default constructor.
virtual ~MainEvent01KerosinePuddle()
Destructor.
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32