7 #ifndef CAFU_COMPONENT_GAME_ENTITY_HPP_INCLUDED
8 #define CAFU_COMPONENT_GAME_ENTITY_HPP_INCLUDED
10 #include "GameSys/CompBase.hpp"
11 #include "GameSys/Entity.hpp"
36 const StaticEntityDataT* GetStaticEntityData()
const {
return m_StaticEntityData; }
41 const char*
GetName()
const {
return "GameEntity"; }
50 void DoServerFrame(
float t)
override;
51 void UpdateClipModel();
54 const bool m_DeleteSED;
This class implements smart (reference-counted) pointers.
Definition: Pointer.hpp:43
A clip model represents an object in the world against which clipping queries can be performed...
Definition: ClipModel.hpp:31
~CompGameEntityT()
The destructor.
Definition: CompGameEntity.cpp:52
const cf::ClipSys::ClipModelT * GetClipModel() override
This method returns the clip model of this component, if any.
Definition: CompGameEntity.hpp:44
This class represents game entities, which are the basic elements of a world.
Definition: Entity.hpp:53
IntrusivePtrT< ComponentBaseT > GetApp()
Returns the application component of this entity.
Definition: Entity.hpp:128
CompGameEntityT * Clone() const
The virtual copy constructor.
Definition: CompGameEntity.cpp:62
This class is used for reading data from a StateT instance (deserialization).
Definition: State.hpp:207
const char * GetName() const
Returns the name of this component.
Definition: CompGameEntity.hpp:41
CompGameEntityT(StaticEntityDataT *SED=NULL)
The constructor.
Definition: CompGameEntity.cpp:26
void UpdateDependencies(cf::GameSys::EntityT *Entity)
This method is called whenever something "external" to this component has changed: ...
Definition: CompGameEntity.cpp:68
This component houses the "engine-specific" parts of its entity.
Definition: CompGameEntity.hpp:22
BoundingBox3fT GetCullingBB() const
This method returns a bounding-box that encloses the visual representation of this component...
Definition: CompGameEntity.cpp:82
This class represents an axis-aligned bounding-box ("AABB") in 3-dimensional space.
Definition: BoundingBox.hpp:23
This is the base class for the components that an entity is composed/aggregated of.
Definition: CompBase.hpp:54