22 #ifndef CAFU_BASE_ENTITY_HPP_INCLUDED
23 #define CAFU_BASE_ENTITY_HPP_INCLUDED
25 #include "../../GameEntity.hpp"
26 #include "ClipSys/ClipModel.hpp"
27 #include "GameSys/Entity.hpp"
31 #if defined(_WIN32) && _MSC_VER<1600
40 namespace cf {
namespace ClipSys {
class CollisionModelT; } }
41 namespace cf {
namespace TypeSys {
class TypeInfoManT; } }
42 namespace cf {
namespace TypeSys {
class CreateParamsT; } }
47 class EntityCreateParamsT;
78 virtual void GetBodyOrientation(
unsigned short& h,
unsigned short& p,
unsigned short& b)
const { h=0; p=0; b=0; }
113 void PostEvent(
unsigned int EventType) { m_EventsCount[EventType]++; }
123 virtual void ProcessEvent(
unsigned int EventType,
unsigned int NumEvents);
126 virtual bool GetLightSourceInfo(
unsigned long& DiffuseColor,
unsigned long& SpecularColor,
VectorT& Position,
float& Radius,
bool& CastsShadows)
const ;
127 virtual void Draw(
bool FirstPersonView,
float LodDist)
const ;
128 virtual void Interpolate(
float FrameTime) ;
129 virtual void PostDraw(
float FrameTime,
bool FirstPersonView) ;
139 static int GetName(lua_State* L);
Definition: PhysicsWorld.hpp:173
This is the interface that the client and server use to access and work with game entities...
Definition: GameEntity.hpp:40
const std::map< std::string, std::string > Properties
The properties of this entities from the map file.
Definition: BaseEntity.hpp:60
This class is used for reading data from a StateT instance (deserialization).
Definition: State.hpp:222
Definition: EntityCreateParams.hpp:37
Definition: BaseEntity.hpp:56
This class manages the type infos.
Definition: TypeSys.hpp:159
virtual const BoundingBox3dT & GetDimensions() const
Returns the dimensions of this entity.
Definition: BaseEntity.hpp:77
This class is used for writing data into a StateT instance (serialization).
Definition: State.hpp:96
A common base class for "approximators" (interpolators and extrapolators), so that approximators of d...
Definition: Interpolator.hpp:30
IntrusivePtrT< cf::GameSys::EntityT > m_Entity
The associated entity in the cf::GameSys::WorldT.
Definition: BaseEntity.hpp:62
BoundingBox3dT m_Dimensions
The bounding box of this entity (relative to the origin).
Definition: BaseEntity.hpp:155
virtual void NotifyLeaveMap()
Let the entity know that it is about to be removed from the map.
Definition: BaseEntity.hpp:76
static const cf::TypeSys::TypeInfoT TypeInfo
The type info object for (objects/instances of) this class.
Definition: BaseEntity.hpp:135
void PostEvent(unsigned int EventType)
This SERVER-SIDE function is used for posting an event of the given type.
Definition: BaseEntity.hpp:113
virtual void GetBodyOrientation(unsigned short &h, unsigned short &p, unsigned short &b) const
Returns the orientation angles of the entity itself.
Definition: BaseEntity.hpp:78
Definition: TypeSys.hpp:67
This class keeps type information (about an entity class that occurs in the game).
Definition: TypeSys.hpp:94