Emergency 20 Dokumentation  4.2.0
ConditionActivityStep.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 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Namespace ]
20 //[-------------------------------------------------------]
21 namespace em5
22 {
23 
24 
25  //[-------------------------------------------------------]
26  //[ Classes ]
27  //[-------------------------------------------------------]
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public virtual em5::ActivityStep methods ]
38  //[-------------------------------------------------------]
39  public:
40  virtual bool loadFromBoostPTree(const boost::property_tree::ptree& rootPTree) override;
41  virtual Result::Type execute(const Parameters& parameters, Result& result) override;
42 
43 
44  //[-------------------------------------------------------]
45  //[ Private definitions ]
46  //[-------------------------------------------------------]
47  private:
48  struct Condition
49  {
51  qsf::PropertyDictionary mParameters;
52  };
53  typedef std::vector<Condition> ConditionArray;
54 
55 
56  //[-------------------------------------------------------]
57  //[ Private data ]
58  //[-------------------------------------------------------]
59  private:
60  ConditionArray mConditions;
61  std::string mNextStateOnTrueCondition;
62  std::string mNextStateOnFalseCondition;
63 
64 
65  //[-------------------------------------------------------]
66  //[ CAMP reflection system ]
67  //[-------------------------------------------------------]
68  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
69 
70 
71  };
72 
73 
74 //[-------------------------------------------------------]
75 //[ Namespace ]
76 //[-------------------------------------------------------]
77 } // em5
78 
79 
80 //[-------------------------------------------------------]
81 //[ CAMP reflection system ]
82 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: ActivityStep.h:62
#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
Activity step base class.
Definition: ActivityStep.h:44
Condition activity step class.
Definition: ConditionActivityStep.h:32
Class combining strings with their hashes.
Definition: NamedIdentifier.h:34
Definition: ActivityStep.h:52
Generic key-value pair container.
Definition: PropertyDictionary.h:46
Type
Definition: GameModeType.h:21