Emergency 20 Dokumentation  4.2.0
EActor.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 EActor : public qsf::ai::EActor, public EActorBase
33  {
34 
35 
36  //[-------------------------------------------------------]
37  //[ Public methods ]
38  //[-------------------------------------------------------]
39  public:
40  virtual qsf::Entity& getQsfEntity() override { return mEntity; }
41  virtual bool hasTag(const qsf::StringHash& tag) const override;
42  virtual float GetBoundingRadius() override { return 0.0f; } // TODO(co) Implement me
43  virtual float GetBoundingRadiusXZ() const override { return 0.0f; } // TODO(co) Implement me
44  virtual float GetBoundingRadiusHeight() const override { return 0.0f; }
45  virtual glm::vec3 GetBBMidPoint() const override { return glm::vec3(); } // TODO(co) Implement me
46 
47  virtual void initOwnerPlayer() override { mOwnerPlayer = EActorBase::initOwnerPlayer(); }
48 
49 
50  //[-------------------------------------------------------]
51  //[ Protected methods ]
52  //[-------------------------------------------------------]
53  protected:
54  EActor(qsf::ai::EActorType actorType, qsf::Entity& entity);
55  virtual ~EActor();
56 
57 
58  };
59 
60 
61 //[-------------------------------------------------------]
62 //[ Namespace ]
63 //[-------------------------------------------------------]
64 } // em5
Definition: ActionPriority.h:13
virtual float GetBoundingRadiusHeight() const override
Definition: EActor.h:44
Entity class.
Definition: Entity.h:46
EActor wrapper base class.
Definition: EActorBase.h:39
virtual float GetBoundingRadius() override
Definition: EActor.h:42
virtual ~EActor()
virtual qsf::Entity & getQsfEntity() override
Definition: EActor.h:40
virtual glm::vec3 GetBBMidPoint() const override
Definition: EActor.h:45
qsf::Entity & mEntity
Definition: EActorBase.h:62
int mOwnerPlayer
Definition: EActor.h:225
EActor(qsf::ai::EActorType actorType, qsf::Entity &entity)
virtual void initOwnerPlayer() override
Definition: EActor.h:47
virtual float GetBoundingRadiusXZ() const override
Definition: EActor.h:43
EActorType
Definition: EActor.h:47
EActor wrapper class for a QSF entity.
Definition: EActor.h:141
Compile time string hash class.
Definition: StringHash.h:59
Emergency 5 implementation of EActor wrapper class for a QSF entity.
Definition: EActor.h:32
virtual bool hasTag(const qsf::StringHash &tag) const override