Emergency 20 Dokumentation  4.2.0
Activity-inl.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Namespace ]
6 //[-------------------------------------------------------]
7 namespace em5
8 {
9 
10 
11  //[-------------------------------------------------------]
12  //[ Public methods ]
13  //[-------------------------------------------------------]
15  mId(id),
16  mLoadVersion(0)
17  {
18  // Nothing here
19  }
20 
22  {
23  clear();
24  }
25 
26  inline uint32 Activity::getId() const
27  {
28  return mId;
29  }
30 
32  {
33  return mSourceAssetProxy;
34  }
35 
37  {
38  return mInitialState.getHash();
39  }
40 
42  {
43  StateMap::const_iterator iterator = mStates.find(id);
44  return (iterator != mStates.end()) ? &iterator->second : nullptr;
45  }
46 
48  {
49  return mLoadVersion;
50  }
51 
52 
53 //[-------------------------------------------------------]
54 //[ Namespace ]
55 //[-------------------------------------------------------]
56 } // em5
Definition: ActionPriority.h:13
uint32 getInitialStateId() const
Definition: Activity-inl.h:36
Definition: Activity.h:47
const qsf::AssetProxy & getSourceAssetProxy() const
Definition: Activity-inl.h:31
unsigned int uint32
Definition: PlatformTypes.h:181
const State * getStateById(uint32 id) const
Definition: Activity-inl.h:41
Activity(uint32 id)
Constructor.
Definition: Activity-inl.h:14
Asset proxy class.
Definition: AssetProxy.h:57
uint32 getLoadVersion() const
Definition: Activity-inl.h:47
uint32 getId() const
Definition: Activity-inl.h:26
~Activity()
Destructor.
Definition: Activity-inl.h:21
uint32 getHash() const
Return the generated hash value.
Definition: NamedIdentifier-inl.h:56