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