Emergency 20 Dokumentation  4.2.0
DLKUndeployAction.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 "em5/Export.h"
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace qsf
22 {
23  class GameLogicComponent;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
45  {
46 
47 
48  //[-------------------------------------------------------]
49  //[ Public definitions ]
50  //[-------------------------------------------------------]
51  public:
53 
54  enum State
55  {
59  STATE_DONE
60  };
61 
62 
63  //[-------------------------------------------------------]
64  //[ Public methods ]
65  //[-------------------------------------------------------]
66  public:
72 
77  virtual ~DLKUndeployAction();
78 
83  void init();
84 
85 
86  //[-------------------------------------------------------]
87  //[ Public virtual qsf::Actions methods ]
88  //[-------------------------------------------------------]
89  public:
90  virtual void serialize(qsf::BinarySerializer& serializer) override;
91 
92 
93  //[-------------------------------------------------------]
94  //[ Protected virtual qsf::Action methods ]
95  //[-------------------------------------------------------]
96  protected:
97  virtual bool onStartup() override;
98  virtual qsf::action::Result updateAction(const qsf::Clock& clock) override;
99 
100 
101  //[-------------------------------------------------------]
102  //[ Private methods ]
103  //[-------------------------------------------------------]
104  private:
105  void updateGameLogicComponent();
106 
107 
108  //[-------------------------------------------------------]
109  //[ Private data ]
110  //[-------------------------------------------------------]
111  private:
112  State mCurrentState;
113  qsf::GameLogicComponent* mGameLogicComponent;
114 
115 
116  //[-------------------------------------------------------]
117  //[ CAMP reflection system ]
118  //[-------------------------------------------------------]
119  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
120 
121 
122  };
123 
124 
125 //[-------------------------------------------------------]
126 //[ Namespace ]
127 //[-------------------------------------------------------]
128 } // em5
129 
130 
131 //[-------------------------------------------------------]
132 //[ CAMP reflection system ]
133 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Definition: DLKUndeployAction.h:56
Clock class.
Definition: Clock.h:33
#define EM5_API_EXPORT
Definition: Export.h:28
Game logic component class.
Definition: GameLogicComponent.h:45
State
Definition: DLKUndeployAction.h:54
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
Definition: PickupPersonByParamedicAction.h:21
State
Definition: ProcessState.h:20
Definition: DLKUndeployAction.h:58
#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
Definition: DLKUndeployAction.h:57
static const qsf::NamedIdentifier ACTION_ID
"em5::DLKUndeployAction" unique action identifier
Definition: DLKUndeployAction.h:52
Abstract action base class.
Definition: Action.h:59
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
Binary serializer class.
Definition: BinarySerializer.h:35
Result
Definition: ActionResult.h:20
EMERGENCY 5 DLK undeploy action.
Definition: DLKUndeployAction.h:44