Emergency 20 Dokumentation  4.2.0
EGenericObjectBase.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 
18 
19 
20 //[-------------------------------------------------------]
21 //[ Namespace ]
22 //[-------------------------------------------------------]
23 namespace em5
24 {
25 
26 
27  //[-------------------------------------------------------]
28  //[ Classes ]
29  //[-------------------------------------------------------]
35  {
36 
37 
38  //[-------------------------------------------------------]
39  //[ Protected methods ]
40  //[-------------------------------------------------------]
41  protected:
43  virtual ~EGenericObjectBase();
44 
45  const glm::vec3& GetPosition();
46  const glm::mat3x3& GetRotationMatrix();
49  void UpdatePlacement(glm::vec3& position_, glm::mat3x3& rotation_);
50  int GetCarriedPersonID() const;
51 
52 
53  //[-------------------------------------------------------]
54  //[ Private data ]
55  //[-------------------------------------------------------]
56  private:
57  qsf::WeakPtr<qsf::TransformComponent> mTransformComponent;
58  glm::mat3x3 mCachedRotationMatrix;
59 
60 
61  };
62 
63 
64 //[-------------------------------------------------------]
65 //[ Namespace ]
66 //[-------------------------------------------------------]
67 } // em5
Definition: ActionPriority.h:13
Entity class.
Definition: Entity.h:46
EActor wrapper base class.
Definition: EActorBase.h:39
const glm::vec3 & GetPosition()
int GetCarriedPersonID() const
void UpdatePlacement(glm::vec3 &position_, glm::mat3x3 &rotation_)
EGenericObjectBase wrapper base class.
Definition: EGenericObjectBase.h:34
qsf::ai::EFloorPlacement GetPlacement()
EGenericObjectBase(qsf::Entity &entity)
EFloorPlacement
Definition: EGenericObject.h:67
EObjectTerrainClass
Definition: terrain.h:51
const glm::mat3x3 & GetRotationMatrix()
qsf::ai::EObjectTerrainClass GetTerrainClass()