Emergency 20 Dokumentation  4.2.0
EHouse.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  //[-------------------------------------------------------]
32  class EHouse : public qsf::ai::EHouse, public EGenericObjectBase
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public methods ]
38  //[-------------------------------------------------------]
39  public:
40  EHouse(qsf::Entity& entity);
41  virtual ~EHouse();
42 
43  // ::EActor
44  virtual qsf::Entity& getQsfEntity() override { return mEntity; }
45  virtual bool hasTag(const qsf::StringHash& tag) const override;
46  virtual void initOwnerPlayer() override { mOwnerPlayer = EActorBase::initOwnerPlayer(); }
47 
48  // ::EGenericObject
49  virtual const glm::vec3& GetPosition() override { return EGenericObjectBase::GetPosition(); }
50  virtual const glm::mat3x3& GetRotationMatrix() override { return EGenericObjectBase::GetRotationMatrix(); }
51  virtual bool IsWalkable() override { return EActorBase::IsWalkable(); }
53  virtual qsf::ai::ETerrain* GetTerrain(int index) override { return EGenericObjectBase::GetTerrain(index); }
56  virtual void UpdatePlacement(glm::vec3& position_, glm::mat3x3& rotation_) override { EGenericObjectBase::UpdatePlacement(position_, rotation_); }
57  virtual int GetCarriedPersonID() const override { return EGenericObjectBase::GetCarriedPersonID(); }
58 
59 
60  };
61 
62 
63 //[-------------------------------------------------------]
64 //[ Namespace ]
65 //[-------------------------------------------------------]
66 } // em5
Definition: ActionPriority.h:13
virtual bool hasTag(const qsf::StringHash &tag) const override
Entity class.
Definition: Entity.h:46
virtual ~EHouse()
const glm::vec3 & GetPosition()
EHouse wrapper class for a QSF entity.
Definition: EHouse.h:32
Emergency 5 implementation of EHouse wrapper class for a QSF entity.
Definition: EHouse.h:32
virtual const glm::vec3 & GetPosition() override
Definition: EHouse.h:49
qsf::Entity & mEntity
Definition: EActorBase.h:62
virtual void UpdatePlacement(glm::vec3 &position_, glm::mat3x3 &rotation_) override
Definition: EHouse.h:56
virtual qsf::ai::EObjectTerrainClass GetTerrainClass() override
Definition: terrain.h:79
EHouse()
Definition: EHouse.h:40
virtual bool IsWalkable() override
Definition: EHouse.h:51
int GetCarriedPersonID() const
virtual qsf::ai::EFloorPlacement GetPlacement() override
Definition: EHouse.h:55
int mOwnerPlayer
Definition: EActor.h:225
void UpdatePlacement(glm::vec3 &position_, glm::mat3x3 &rotation_)
EGenericObjectBase wrapper base class.
Definition: EGenericObjectBase.h:34
qsf::ai::EFloorPlacement GetPlacement()
qsf::ai::ETerrain * GetTerrain()
virtual qsf::ai::ETerrain * GetTerrain(int index) override
Definition: EHouse.h:53
virtual qsf::Entity & getQsfEntity() override
Definition: EHouse.h:44
virtual qsf::ai::ETerrain * GetTerrain() override
Definition: EHouse.h:52
EFloorPlacement
Definition: EGenericObject.h:67
virtual void initOwnerPlayer() override
Definition: EHouse.h:46
EObjectTerrainClass
Definition: terrain.h:51
const glm::mat3x3 & GetRotationMatrix()
Compile time string hash class.
Definition: StringHash.h:59
virtual int GetCarriedPersonID() const override
Definition: EHouse.h:57
virtual const glm::mat3x3 & GetRotationMatrix() override
Definition: EHouse.h:50