Emergency 20 Dokumentation  4.2.0
LoadRobotToTransporterAction.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:
39 
40  enum State
41  {
45  STATE_DONE
46  };
47 
48 
49  //[-------------------------------------------------------]
50  //[ Public methods ]
51  //[-------------------------------------------------------]
52  public:
58 
64 
69  void init(const qsf::Entity& targetEntity, qsf::ai::NavigationGoal* goal, uint32 movementModeId = qsf::getUninitialized(static_cast<uint32>(0)), qsf::ai::Path* path = nullptr);
70 
71 
72  //[-------------------------------------------------------]
73  //[ Public virtual qsf::Actions methods ]
74  //[-------------------------------------------------------]
75  public:
76  virtual void serialize(qsf::BinarySerializer& serializer) override;
77 
78 
79  //[-------------------------------------------------------]
80  //[ Protected virtual qsf::Action methods ]
81  //[-------------------------------------------------------]
82  protected:
83  virtual bool onStartup() override;
84  virtual void onShutdown() override;
85  virtual qsf::action::Result updateAction(const qsf::Clock& clock) override;
86 
87 
88  //[-------------------------------------------------------]
89  //[ Private data ]
90  //[-------------------------------------------------------]
91  private:
92  // Configuration
93  State mCurrentState;
94  uint64 mTargetEntityId;
95 
96 
97  //[-------------------------------------------------------]
98  //[ CAMP reflection system ]
99  //[-------------------------------------------------------]
100  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
101 
102 
103  };
104 
105 
106 //[-------------------------------------------------------]
107 //[ Namespace ]
108 //[-------------------------------------------------------]
109 } // em5
110 
111 
112 //[-------------------------------------------------------]
113 //[ CAMP reflection system ]
114 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
Definition: Path.h:38
Definition: LoadRobotToTransporterAction.h:44
unsigned int uint32
Definition: PlatformTypes.h:181
Clock class.
Definition: Clock.h:33
State
Definition: LoadRobotToTransporterAction.h:40
#define EM5_API_EXPORT
Definition: Export.h:28
static const qsf::NamedIdentifier ACTION_ID
"em5::LoadRobotToTransporterAction" unique action identifier
Definition: LoadRobotToTransporterAction.h:38
uint64_t uint64
Definition: PlatformTypes.h:184
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
State
Definition: ProcessState.h:20
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
T getUninitialized()
Definition: GetUninitialized.h:38
EMERGENCY 5 load sek robot To transporter action.
Definition: LoadRobotToTransporterAction.h:30
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
Definition: NavigationGoal.h:43
EMERGENCY 5 move action.
Definition: MoveAction.h:41
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
Binary serializer class.
Definition: BinarySerializer.h:35
Result
Definition: ActionResult.h:20
Definition: LoadRobotToTransporterAction.h:43
Definition: LoadRobotToTransporterAction.h:42