Emergency 20 Dokumentation  4.2.0
PlayAnimationActivityStep.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 #include <qsf/asset/AssetProxy.h>
16 
17 #include <boost/optional.hpp>
18 
19 
20 //[-------------------------------------------------------]
21 //[ Namespace ]
22 //[-------------------------------------------------------]
23 namespace em5
24 {
25 
26 
27  //[-------------------------------------------------------]
28  //[ Classes ]
29  //[-------------------------------------------------------]
35  {
36 
37 
38  //[-------------------------------------------------------]
39  //[ Public virtual em5::ActivityStep methods ]
40  //[-------------------------------------------------------]
41  public:
42  virtual bool loadFromBoostPTree(const boost::property_tree::ptree& rootPTree) override;
43  virtual Result::Type execute(const Parameters& parameters, Result& result) override;
44 
45 
46  //[-------------------------------------------------------]
47  //[ Private data ]
48  //[-------------------------------------------------------]
49  private:
50  qsf::AssetProxy mAnimation;
51  qsf::AssetProxy mMaskAnimation;
52  std::string mBoneMask;
53  bool mLoop;
54  qsf::Time mBlendTime;
55  boost::optional<qsf::Time> mDuration;
56 
57 
58  //[-------------------------------------------------------]
59  //[ CAMP reflection system ]
60  //[-------------------------------------------------------]
61  QSF_CAMP_RTTI() // Only adds the virtual method "campClassId()", nothing more
62 
63 
64  };
65 
66 
67 //[-------------------------------------------------------]
68 //[ Namespace ]
69 //[-------------------------------------------------------]
70 } // em5
71 
72 
73 //[-------------------------------------------------------]
74 //[ CAMP reflection system ]
75 //[-------------------------------------------------------]
Definition: ActionPriority.h:13
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: ActivityStep.h:62
Asset proxy class.
Definition: AssetProxy.h:57
#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
Play animation activity step class.
Definition: PlayAnimationActivityStep.h:34
Definition: ActivityStep.h:52
Type
Definition: GameModeType.h:21
Data type for encapsulating time information. It might represents points in time and time spans...
Definition: Time.h:32