Emergency 20 Dokumentation  4.2.0
RescueDogLocateVictimAction.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/audio/AudioProxy.h"
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace qsf
22 {
23  class MeshAnimationChannel;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public definitions ]
47  //[-------------------------------------------------------]
48  public:
50 
51  enum State
52  {
56  STATE_LOOPACTION
57  };
58 
59 
60  //[-------------------------------------------------------]
61  //[ Public methods ]
62  //[-------------------------------------------------------]
63  public:
69 
74  virtual ~RescueDogLocateVictimAction();
75 
76  void init(qsf::Entity& targetEntity, qsf::Entity& rescueDogLeaderEntity);
77 
78 
79  //[-------------------------------------------------------]
80  //[ Public virtual qsf::Actions methods ]
81  //[-------------------------------------------------------]
82  public:
83  virtual void serialize(qsf::BinarySerializer& serializer) override;
84 
85 
86  //[-------------------------------------------------------]
87  //[ Protected virtual qsf::Action methods ]
88  //[-------------------------------------------------------]
89  protected:
90  virtual bool onStartup() override;
91  virtual void onShutdown() override;
92  virtual qsf::action::Result updateAction(const qsf::Clock& clock) override;
93 
94 
95  //[-------------------------------------------------------]
96  //[ Protected methods ]
97  //[-------------------------------------------------------]
98  protected:
104 
105 
106  //[-------------------------------------------------------]
107  //[ Protected virtual em5::RescueDogLocateVictimAction methods ]
108  //[-------------------------------------------------------]
109  protected:
110  virtual uint32 getFoundMessageId() const;
111 
112 
113  //[-------------------------------------------------------]
114  //[ Private methods ]
115  //[-------------------------------------------------------]
116  private:
117  void dogReturnToLeader() const;
118 
119 
120  //[-------------------------------------------------------]
121  //[ Protected data ]
122  //[-------------------------------------------------------]
123  protected:
129 
132 
133 
134  //[-------------------------------------------------------]
135  //[ CAMP reflection system ]
136  //[-------------------------------------------------------]
137  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
138 
139 
140  };
141 
142 
143 //[-------------------------------------------------------]
144 //[ Namespace ]
145 //[-------------------------------------------------------]
146 } // em5
147 
148 
149 //[-------------------------------------------------------]
150 //[ CAMP reflection system ]
151 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
EMERGENCY 5 rescue dog locate victim action.
Definition: RescueDogLocateVictimAction.h:41
State mState
Definition: RescueDogLocateVictimAction.h:130
Entity class.
Definition: Entity.h:46
Definition: RescueDogLocateVictimAction.h:55
unsigned int uint32
Definition: PlatformTypes.h:181
State
Definition: RescueDogLocateVictimAction.h:51
Clock class.
Definition: Clock.h:33
#define EM5_API_EXPORT
Definition: Export.h:28
qsf::WeakPtr< qsf::Entity > mRescueDogLeaderEntity
Definition: RescueDogLocateVictimAction.h:125
qsf::Time mTimeForAutoAbort
Definition: RescueDogLocateVictimAction.h:127
Definition: RescueDogLocateVictimAction.h:54
void serialize(BinarySerializer &serializer, BitFlagSet< STORAGE, ENUM > &bitFlagSet)
Definition: BitFlagSet.h:359
qsf::WeakPtr< qsf::MeshAnimationChannel > mMeshAnimationChannel
Definition: RescueDogLocateVictimAction.h:128
Definition: PickupPersonByParamedicAction.h:21
#define QSF_CAMP_RTTI()
Only adds the virtual method "campClassId()", nothing more.
Definition: CampClass.h:75
static const qsf::NamedIdentifier ACTION_ID
"em5::RescueDogLocateVictim" unique action identifier
Definition: RescueDogLocateVictimAction.h:49
Extended audio proxy for easier multiplay usage.
Definition: AudioProxy.h:47
#define QSF_CAMP_TYPE_NONCOPYABLE(type)
See "CAMP_TYPE_NONCOPYABLE" for details.
Definition: CampClass.h:112
Definition: RescueDogLocateVictimAction.h:53
Abstract action base class.
Definition: Action.h:59
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
AudioProxy mAudioProxy
Definition: RescueDogLocateVictimAction.h:131
Binary serializer class.
Definition: BinarySerializer.h:35
Result
Definition: ActionResult.h:20
bool mTurnToTarget
Definition: RescueDogLocateVictimAction.h:126
qsf::WeakPtr< qsf::Entity > mTargetEntity
Definition: RescueDogLocateVictimAction.h:124
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32