Emergency 20 Dokumentation  4.2.0
MoveActivityStep.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 virtual em5::ActivityStep methods ]
36  //[-------------------------------------------------------]
37  public:
38  virtual bool loadFromBoostPTree(const boost::property_tree::ptree& rootPTree) override;
39  virtual Result::Type execute(const Parameters& parameters, Result& result) override;
40 
41 
42  //[-------------------------------------------------------]
43  //[ Protected methods ]
44  //[-------------------------------------------------------]
45  protected:
46  qsf::Entity* findTargetEntity(qsf::Entity& callerEntity) const;
47 
48 
49  //[-------------------------------------------------------]
50  //[ Protected data ]
51  //[-------------------------------------------------------]
52  protected:
53  std::string mTargetTag;
54  bool mRunMode;
55  bool mFreeMode;
56  boost::optional<float> mMaximumDistance;
57 
58 
59  //[-------------------------------------------------------]
60  //[ CAMP reflection system ]
61  //[-------------------------------------------------------]
62  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
63 
64 
65  };
66 
67 
68 //[-------------------------------------------------------]
69 //[ Namespace ]
70 //[-------------------------------------------------------]
71 } // em5
72 
73 
74 //[-------------------------------------------------------]
75 //[ CAMP reflection system ]
76 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
boost::optional< float > mMaximumDistance
Definition: MoveActivityStep.h:56
Entity class.
Definition: Entity.h:46
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: ActivityStep.h:62
Move activity step class.
Definition: MoveActivityStep.h:30
#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: DensityCalculator.h:29
bool mFreeMode
Definition: MoveActivityStep.h:55
Activity step base class.
Definition: ActivityStep.h:44
bool mRunMode
Definition: MoveActivityStep.h:54
Definition: ActivityStep.h:52
std::string mTargetTag
Definition: MoveActivityStep.h:53
Type
Definition: GameModeType.h:21