Cafu Engine
Ca3DEWorldT Class Reference
Inheritance diagram for Ca3DEWorldT:

Public Member Functions

 Ca3DEWorldT (const char *FileName, ModelManagerT &ModelMan, cf::GuiSys::GuiResourcesT &GuiRes, bool InitForGraphics, WorldT::ProgressFunctionT ProgressFunction)
 
const WorldTGetWorld () const
 
Vector3fT GetAmbientLightColorFromBB (const BoundingBox3T< double > &Dimensions, const VectorT &Origin) const
 Returns a "good" ambient light color for an arbitrary object (i.e. More...
 

Protected Member Functions

void CreateNewEntityFromBasicInfo (IntrusivePtrT< cf::GameSys::EntityT > Ent, unsigned long CreationFrameNr)
 Creates a new entity that is added to the m_EngineEntities array. More...
 

Protected Attributes

const WorldTm_World
 
cf::ClipSys::ClipWorldTm_ClipWorld
 
PhysicsWorldT m_PhysicsWorld
 
cf::UniScriptStateTm_ScriptState
 
IntrusivePtrT
< cf::GameSys::WorldT
m_ScriptWorld
 The "script world" contains the entity hierarchy and their components. More...
 
ArrayT< EngineEntityT * > m_EngineEntities
 

Member Function Documentation

void Ca3DEWorldT::CreateNewEntityFromBasicInfo ( IntrusivePtrT< cf::GameSys::EntityT Ent,
unsigned long  CreationFrameNr 
)
protected

Creates a new entity that is added to the m_EngineEntities array.

  • This is called in the constructor (and thus both on the client and the server, whenever a new world has been loaded) with the parameters from the .cw world file.
  • On the server, this method is also called if the Think() code auto-detects that an entity was newly created.
  • Third, this is called by ServerWorldT::InsertHumanPlayerEntity() for creating human player entities for newly joined clients or after a world-change for the existing clients.
Vector3fT Ca3DEWorldT::GetAmbientLightColorFromBB ( const BoundingBox3T< double > &  Dimensions,
const VectorT Origin 
) const

Returns a "good" ambient light color for an arbitrary object (i.e.

a model) of size Dimensions at Origin. The return value is derived from the worlds lightmap information "close" to the Dimensions at Origin.

Member Data Documentation

IntrusivePtrT<cf::GameSys::WorldT> Ca3DEWorldT::m_ScriptWorld
protected

The "script world" contains the entity hierarchy and their components.


The documentation for this class was generated from the following files: