Drag[en]gine Game Engine  1.0
deWorld Class Reference

Renderable World Class. More...

#include <deWorld.h>

Inheritance diagram for deWorld:
deResource deObject

Public Member Functions

Management
void Clear ()
 
deSkyGetSky () const
 
void SetSky (deSky *sky)
 
deHeightTerrainGetHeightTerrain () const
 
void SetHeightTerrain (deHeightTerrain *heightTerrain)
 
const decDVectorGetSize () const
 
void SetSize (const decDVector &size)
 
const decVectorGetGravity () const
 
void SetGravity (const decVector &gravity)
 
bool GetDisableLights () const
 
void SetDisableLights (bool disable)
 
const decColorGetAmbientLight () const
 
void SetAmbientLight (const decColor &color)
 
const decMatrixGetLightColorMatrix () const
 
void SetLightColorMatrix (const decMatrix &matrix)
 
void Update (float elapsed)
 
void ProcessPhysics (float elapsed)
 Process physics simulation using the physics module. More...
 
Billboards
int GetBillboardCount () const
 Number of billboards. More...
 
deBillboardGetRootBillboard () const
 Root billboard or NULL if there are none. More...
 
void AddBillboard (deBillboard *billboard)
 Add billboard. More...
 
void RemoveBillboard (deBillboard *billboard)
 Remove billboard. More...
 
void RemoveAllBillboards ()
 Remove all billboards. More...
 
Cameras
int GetCameraCount () const
 Number of cameras. More...
 
deCameraGetRootCamera () const
 Root camera or NULL if there are none. More...
 
void AddCamera (deCamera *camera)
 Add camera. More...
 
void RemoveCamera (deCamera *camera)
 Remove camera. More...
 
void RemoveAllCameras ()
 Remove all cameras. More...
 
Colliders
int GetColliderCount () const
 Number of colliders. More...
 
deColliderGetRootCollider () const
 Root collider or NULL if there are none. More...
 
void AddCollider (deCollider *collider)
 Add collider. More...
 
void RemoveCollider (deCollider *collider)
 Remove collider. More...
 
void RemoveAllColliders ()
 Remove all colliders. More...
 
Components
int GetComponentCount () const
 Number of components. More...
 
deComponentGetRootComponent () const
 Root component or NULL if there are none. More...
 
void AddComponent (deComponent *component)
 Add component. More...
 
void RemoveComponent (deComponent *component)
 Remove component. More...
 
void RemoveAllComponents ()
 Remove all components. More...
 
Debug drawers
int GetDebugDrawerCount () const
 Number of debug drawers. More...
 
deDebugDrawerGetRootDebugDrawer () const
 Root debug drawer or NULL if there are none. More...
 
void AddDebugDrawer (deDebugDrawer *debugDrawer)
 Add debugDrawer. More...
 
void RemoveDebugDrawer (deDebugDrawer *debugDrawer)
 Remove debugDrawer. More...
 
void RemoveAllDebugDrawers ()
 Remove all debug drawers. More...
 
Environment map probes.
int GetEnvMapProbeCount () const
 Number of environment map probes. More...
 
deEnvMapProbeGetRootEnvMapProbe () const
 Root environment map probe or NULL if there are none. More...
 
void AddEnvMapProbe (deEnvMapProbe *envMapProbe)
 Add environment map probe. More...
 
void RemoveEnvMapProbe (deEnvMapProbe *envMapProbe)
 Remove environment map probe. More...
 
void RemoveAllEnvMapProbes ()
 Remove all environment map probes. More...
 
Force fields
int GetForceFieldCount () const
 Number of force fields. More...
 
deForceFieldGetRootForceField () const
 Root force field or NULL if there are none. More...
 
void AddForceField (deForceField *forceField)
 Add force field. More...
 
void RemoveForceField (deForceField *forceField)
 Remove force field. More...
 
void RemoveAllForceFields ()
 Remove all force fields. More...
 
Lights
int GetLightCount () const
 Number of lights. More...
 
deLightGetRootLight () const
 Root light or NULL if there are none. More...
 
void AddLight (deLight *light)
 Add light. More...
 
void RemoveLight (deLight *light)
 Remove light. More...
 
void RemoveAllLights ()
 Remove all lights. More...
 
Lumimeters
int GetLumimeterCount () const
 Number of lumimeters. More...
 
deLumimeterGetRootLumimeter () const
 Root lumimeter or NULL if there are none. More...
 
void AddLumimeter (deLumimeter *lumimeter)
 Add lumimeter. More...
 
void RemoveLumimeter (deLumimeter *lumimeter)
 Remove lumimeter. More...
 
void RemoveAllLumimeters ()
 Remove all lumimeters. More...
 
Microphones
int GetMicrophoneCount () const
 Number of microphones. More...
 
deMicrophoneGetRootMicrophone () const
 Root microphone or NULL if there are none. More...
 
void AddMicrophone (deMicrophone *microphone)
 Add microphone. More...
 
void RemoveMicrophone (deMicrophone *microphone)
 Remove microphone. More...
 
void RemoveAllMicrophones ()
 Remove all microphones. More...
 
Navigation spaces
int GetNavigationSpaceCount () const
 Number of navigation spaces. More...
 
deNavigationSpaceGetRootNavigationSpace () const
 Root navigation space or NULL if there are none. More...
 
void AddNavigationSpace (deNavigationSpace *navigationSpace)
 Add navigation space. More...
 
void RemoveNavigationSpace (deNavigationSpace *navigationSpace)
 Remove navigation space. More...
 
void RemoveAllNavigationSpaces ()
 Remove all navigation spaces. More...
 
Navigation blockers
int GetNavigationBlockerCount () const
 Number of navigation blockers. More...
 
deNavigationBlockerGetRootNavigationBlocker () const
 Root navigation blocker or NULL if there are none. More...
 
void AddNavigationBlocker (deNavigationBlocker *navigationBlocker)
 Add navigation blocker. More...
 
void RemoveNavigationBlocker (deNavigationBlocker *navigationBlocker)
 Remove navigation blocker. More...
 
void RemoveAllNavigationBlockers ()
 Remove all navigation blockers. More...
 
Navigators
int GetNavigatorCount () const
 Number of navigators. More...
 
deNavigatorGetRootNavigator () const
 Root navigator or NULL if there are none. More...
 
void AddNavigator (deNavigator *navigator)
 Add navigator. More...
 
void RemoveNavigator (deNavigator *navigator)
 Remove navigator. More...
 
void RemoveAllNavigators ()
 Remove all navigators. More...
 
Network states
int GetNetworkStateCount () const
 Number of network states. More...
 
deNetworkStateGetRootNetworkState () const
 Root network state or NULL if there are none. More...
 
void AddNetworkState (deNetworkState *networkState)
 Add network state. More...
 
void RemoveNetworkState (deNetworkState *networkState)
 Remove network state. More...
 
void RemoveAllNetworkStates ()
 Remove all network states. More...
 
Particle emitters
int GetParticleEmitterCount () const
 Number of particle emitters. More...
 
deParticleEmitterInstanceGetRootParticleEmitter () const
 Root particle emitter or NULL if there are none. More...
 
void AddParticleEmitter (deParticleEmitterInstance *particleEmitter)
 Add particle emitter. More...
 
void RemoveParticleEmitter (deParticleEmitterInstance *particleEmitter)
 Remove particle emitter. More...
 
void RemoveAllParticleEmitters ()
 Remove all particle emitters. More...
 
Prop fields
int GetPropFieldCount () const
 Number of prop fields. More...
 
dePropFieldGetRootPropField () const
 Root prop field or NULL if there are none. More...
 
void AddPropField (dePropField *propField)
 Add prop field. More...
 
void RemovePropField (dePropField *propField)
 Remove prop field. More...
 
void RemoveAllPropFields ()
 Remove all prop fields. More...
 
Speakers
int GetSpeakerCount () const
 Number of speakers. More...
 
deSpeakerGetRootSpeaker () const
 Root speaker or NULL if there are none. More...
 
void AddSpeaker (deSpeaker *speaker)
 Add speaker. More...
 
void RemoveSpeaker (deSpeaker *speaker)
 Remove speaker. More...
 
void RemoveAllSpeakers ()
 Remove all speakers. More...
 
Touch sensors
int GetTouchSensorCount () const
 Number of touch sensors. More...
 
deTouchSensorGetRootTouchSensor () const
 Root touch sensor or NULL if there are none. More...
 
void AddTouchSensor (deTouchSensor *touchSensor)
 Add touch sensor. More...
 
void RemoveTouchSensor (deTouchSensor *touchSensor)
 Remove touch sensor. More...
 
void RemoveAllTouchSensors ()
 Remove all touch sensors. More...
 
Smoke emitters
int GetSmokeEmitterCount () const
 Number of smoke emitters. More...
 
deSmokeEmitterGetRootSmokeEmitter () const
 Root smoke emitter or NULL if there are none. More...
 
void AddSmokeEmitter (deSmokeEmitter *smokeEmitter)
 Add smoke emitter. More...
 
void RemoveSmokeEmitter (deSmokeEmitter *smokeEmitter)
 Remove smoke emitter. More...
 
void RemoveAllSmokeEmitters ()
 Remove all smoke emitters. More...
 
Collision Detection
void RayHits (const decDVector &rayOrigin, const decVector &rayDirection, deBaseScriptingCollider *listener, const decCollisionFilter &collisionFilter)
 Tests a ray for collision with the element in the world. More...
 
void ColliderHits (deCollider *collider, deBaseScriptingCollider *listener)
 Tests the collider for collision with world elements. More...
 
void ColliderMoveHits (deCollider *collider, const decVector &displacement, deBaseScriptingCollider *listener)
 Tests the moving collider for collision with world elements. More...
 
void ColliderRotateHits (deCollider *collider, const decVector &rotation, deBaseScriptingCollider *listener)
 Tests the rotating collider for collision with world elements. More...
 
void ColliderMoveRotateHits (deCollider *collider, const decVector &displacement, const decVector &rotation, deBaseScriptingCollider *listener)
 Tests the moving and rotating collider for collision with world elements. More...
 
System Peers
deBaseGraphicWorldGetPeerGraphic () const
 
void SetPeerGraphic (deBaseGraphicWorld *peer)
 
deBasePhysicsWorldGetPeerPhysics () const
 
void SetPeerPhysics (deBasePhysicsWorld *peer)
 
deBaseAudioWorldGetPeerAudio () const
 
void SetPeerAudio (deBaseAudioWorld *peer)
 
deBaseNetworkWorldGetPeerNetwork () const
 
void SetPeerNetwork (deBaseNetworkWorld *peer)
 
deBaseAIWorldGetPeerAI () const
 
void SetPeerAI (deBaseAIWorld *peer)
 
- Public Member Functions inherited from deResource
deResourceManagerGetResourceManager () const
 Resource manager or NULL if resource is leaking. More...
 
deEngineGetEngine () const
 Game engine object from resource manager. More...
 
deResourceGetLLManagerPrev () const
 Previous resource in the resource manager linked list. More...
 
void SetLLManagerPrev (deResource *resource)
 Set next resource in the resource manager linked list. More...
 
deResourceGetLLManagerNext () const
 Next resource in the resource manager linked list. More...
 
void SetLLManagerNext (deResource *resource)
 Set next resource in the resource manager linked list. More...
 
void MarkLeaking ()
 Marks the resource leaking. More...
 
 deResource (deResourceManager *resourceManager)
 Create resource. More...
 
- Public Member Functions inherited from deObject
int GetRefCount () const
 Reference count. More...
 
void AddReference ()
 Add reference increasing reference count by 1. More...
 
void FreeReference ()
 Decrease reference count by one and delete object if count reaches 0. More...
 
 deObject ()
 Create object with reference count of 1. More...
 

Constructors and Destructors

 deWorld (deWorldManager *manager)
 
virtual ~deWorld ()
 Clean up world. More...
 

Additional Inherited Members

- Protected Member Functions inherited from deResource
virtual ~deResource ()
 Clean up resource. More...
 
- Protected Member Functions inherited from deObject
virtual ~deObject ()
 Clean up object. More...
 

Detailed Description

Renderable World Class.

Worlds are the top most class for rendering 3d worldries. They bundle a set of World objects and a Sky object. Besides rendering they also are able to do collision detection and physical responses to them.

Author
Pl├╝ss Roland
Version
1.0
Date
2008

Constructor & Destructor Documentation

◆ deWorld()

deWorld::deWorld ( deWorldManager manager)

Creates a new world object with the given resource manager.

◆ ~deWorld()

virtual deWorld::~deWorld ( )
protectedvirtual

Clean up world.

Note
Subclasses should set their destructor protected too to avoid users accidently deleting a reference counted object through the object pointer. Only FreeReference() is allowed to delete the object.

Member Function Documentation

◆ AddBillboard()

void deWorld::AddBillboard ( deBillboard billboard)

Add billboard.

Exceptions
deeInvalidParambillboard is NULL.
deeInvalidParambillboard has a parent world.

Referenced by GetRootBillboard().

◆ AddCamera()

void deWorld::AddCamera ( deCamera camera)

Add camera.

Exceptions
deeInvalidParamcamera is NULL.
deeInvalidParamcamera has a parent world.

Referenced by GetRootCamera().

◆ AddCollider()

void deWorld::AddCollider ( deCollider collider)

Add collider.

Exceptions
deeInvalidParamcollider is NULL.
deeInvalidParamcollider has a parent world.

Referenced by GetRootCollider().

◆ AddComponent()

void deWorld::AddComponent ( deComponent component)

Add component.

Exceptions
deeInvalidParamcomponent is NULL.
deeInvalidParamcomponent has a parent world.

Referenced by GetRootComponent().

◆ AddDebugDrawer()

void deWorld::AddDebugDrawer ( deDebugDrawer debugDrawer)

Add debugDrawer.

Exceptions
deeInvalidParamdebugDrawer is NULL.
deeInvalidParamdebugDrawer has a parent world.

Referenced by GetRootDebugDrawer().

◆ AddEnvMapProbe()

void deWorld::AddEnvMapProbe ( deEnvMapProbe envMapProbe)

Add environment map probe.

Exceptions
deeInvalidParamenvMapProbe is NULL.
deeInvalidParamenvMapProbe has a parent world.

Referenced by GetRootEnvMapProbe().

◆ AddForceField()

void deWorld::AddForceField ( deForceField forceField)

Add force field.

Exceptions
deeInvalidParamforceField is NULL.
deeInvalidParamforceField has a parent world.

Referenced by GetRootForceField().

◆ AddLight()

void deWorld::AddLight ( deLight light)

Add light.

Exceptions
deeInvalidParamlight is NULL.
deeInvalidParamlight has a parent world.

Referenced by GetRootLight().

◆ AddLumimeter()

void deWorld::AddLumimeter ( deLumimeter lumimeter)

Add lumimeter.

Exceptions
deeInvalidParamlumimeter is NULL.
deeInvalidParamlumimeter has a parent world.

Referenced by GetRootLumimeter().

◆ AddMicrophone()

void deWorld::AddMicrophone ( deMicrophone microphone)

Add microphone.

Exceptions
deeInvalidParammicrophone is NULL.
deeInvalidParammicrophone has a parent world.

Referenced by GetRootMicrophone().

◆ AddNavigationBlocker()

void deWorld::AddNavigationBlocker ( deNavigationBlocker navigationBlocker)

Add navigation blocker.

Exceptions
deeInvalidParamnavigationBlocker is NULL.
deeInvalidParamnavigationBlocker has a parent world.

Referenced by GetRootNavigationBlocker().

◆ AddNavigationSpace()

void deWorld::AddNavigationSpace ( deNavigationSpace navigationSpace)

Add navigation space.

Exceptions
deeInvalidParamnavigationSpace is NULL.
deeInvalidParamnavigationSpace has a parent world.

Referenced by GetRootNavigationSpace().

◆ AddNavigator()

void deWorld::AddNavigator ( deNavigator navigator)

Add navigator.

Exceptions
deeInvalidParamnavigator is NULL.
deeInvalidParamnavigator has a parent world.

Referenced by GetRootNavigator().

◆ AddNetworkState()

void deWorld::AddNetworkState ( deNetworkState networkState)

Add network state.

Exceptions
deeInvalidParamnetworkState is NULL.
deeInvalidParamnetworkState has a parent world.

Referenced by GetRootNetworkState().

◆ AddParticleEmitter()

void deWorld::AddParticleEmitter ( deParticleEmitterInstance particleEmitter)

Add particle emitter.

Exceptions
deeInvalidParamparticleEmitter is NULL.
deeInvalidParamparticleEmitter has a parent world.

Referenced by GetRootParticleEmitter().

◆ AddPropField()

void deWorld::AddPropField ( dePropField propField)

Add prop field.

Exceptions
deeInvalidParampropField is NULL.
deeInvalidParampropField has a parent world.

Referenced by GetRootPropField().

◆ AddSmokeEmitter()

void deWorld::AddSmokeEmitter ( deSmokeEmitter smokeEmitter)

Add smoke emitter.

Exceptions
deeInvalidParamsmokeEmitter is NULL.
deeInvalidParamsmokeEmitter has a parent world.

Referenced by GetRootSmokeEmitter().

◆ AddSpeaker()

void deWorld::AddSpeaker ( deSpeaker speaker)

Add speaker.

Exceptions
deeInvalidParamspeaker is NULL.
deeInvalidParamspeaker has a parent world.

Referenced by GetRootSpeaker().

◆ AddTouchSensor()

void deWorld::AddTouchSensor ( deTouchSensor touchSensor)

Add touch sensor.

Exceptions
deeInvalidParamtouchSensor is NULL.
deeInvalidParamtouchSensor has a parent world.

Referenced by GetRootTouchSensor().

◆ Clear()

void deWorld::Clear ( )

Removes all objects from the world.

◆ ColliderHits()

void deWorld::ColliderHits ( deCollider collider,
deBaseScriptingCollider listener 
)

Tests the collider for collision with world elements.

For each collision the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.

Referenced by GetRootSmokeEmitter().

◆ ColliderMoveHits()

void deWorld::ColliderMoveHits ( deCollider collider,
const decVector displacement,
deBaseScriptingCollider listener 
)

Tests the moving collider for collision with world elements.

For each collision starting with the earliest the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.

Referenced by GetRootSmokeEmitter().

◆ ColliderMoveRotateHits()

void deWorld::ColliderMoveRotateHits ( deCollider collider,
const decVector displacement,
const decVector rotation,
deBaseScriptingCollider listener 
)

Tests the moving and rotating collider for collision with world elements.

For each collision starting with the earliest the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.

Referenced by GetRootSmokeEmitter().

◆ ColliderRotateHits()

void deWorld::ColliderRotateHits ( deCollider collider,
const decVector rotation,
deBaseScriptingCollider listener 
)

Tests the rotating collider for collision with world elements.

For each collision starting with the earliest the collisionResponse function of the listener is called. To stop testing set StopTesting in the provided collision information object to true.

Referenced by GetRootSmokeEmitter().

◆ GetAmbientLight()

const decColor& deWorld::GetAmbientLight ( ) const
inline

Retrieves the ambient light color.

References SetAmbientLight().

◆ GetBillboardCount()

int deWorld::GetBillboardCount ( ) const
inline

Number of billboards.

◆ GetCameraCount()

int deWorld::GetCameraCount ( ) const
inline

Number of cameras.

◆ GetColliderCount()

int deWorld::GetColliderCount ( ) const
inline

Number of colliders.

◆ GetComponentCount()

int deWorld::GetComponentCount ( ) const
inline

Number of components.

◆ GetDebugDrawerCount()

int deWorld::GetDebugDrawerCount ( ) const
inline

Number of debug drawers.

◆ GetDisableLights()

bool deWorld::GetDisableLights ( ) const
inline

Determines if all lights are disables.

References SetDisableLights().

◆ GetEnvMapProbeCount()

int deWorld::GetEnvMapProbeCount ( ) const
inline

Number of environment map probes.

◆ GetForceFieldCount()

int deWorld::GetForceFieldCount ( ) const
inline

Number of force fields.

◆ GetGravity()

const decVector& deWorld::GetGravity ( ) const
inline

Retrieves the world gravity vector.

References SetGravity().

◆ GetHeightTerrain()

deHeightTerrain* deWorld::GetHeightTerrain ( ) const
inline

Retrieves the assigned height terrain or NULL.

References SetHeightTerrain().

◆ GetLightColorMatrix()

const decMatrix& deWorld::GetLightColorMatrix ( ) const
inline

Retrieves the light color matrix.

References ProcessPhysics(), SetLightColorMatrix(), and Update().

◆ GetLightCount()

int deWorld::GetLightCount ( ) const
inline

Number of lights.

◆ GetLumimeterCount()

int deWorld::GetLumimeterCount ( ) const
inline

Number of lumimeters.

◆ GetMicrophoneCount()

int deWorld::GetMicrophoneCount ( ) const
inline

Number of microphones.

◆ GetNavigationBlockerCount()

int deWorld::GetNavigationBlockerCount ( ) const
inline

Number of navigation blockers.

◆ GetNavigationSpaceCount()

int deWorld::GetNavigationSpaceCount ( ) const
inline

Number of navigation spaces.

◆ GetNavigatorCount()

int deWorld::GetNavigatorCount ( ) const
inline

Number of navigators.

◆ GetNetworkStateCount()

int deWorld::GetNetworkStateCount ( ) const
inline

Number of network states.

◆ GetParticleEmitterCount()

int deWorld::GetParticleEmitterCount ( ) const
inline

Number of particle emitters.

◆ GetPeerAI()

deBaseAIWorld* deWorld::GetPeerAI ( ) const
inline

Retrieves the ai system peer object.

References SetPeerAI().

◆ GetPeerAudio()

deBaseAudioWorld* deWorld::GetPeerAudio ( ) const
inline

Retrieves the audio system peer object.

References SetPeerAudio().

◆ GetPeerGraphic()

deBaseGraphicWorld* deWorld::GetPeerGraphic ( ) const
inline

Retrieves the graphic system peer object.

References SetPeerGraphic().

◆ GetPeerNetwork()

deBaseNetworkWorld* deWorld::GetPeerNetwork ( ) const
inline

Retrieves the network system peer object.

References SetPeerNetwork().

◆ GetPeerPhysics()

deBasePhysicsWorld* deWorld::GetPeerPhysics ( ) const
inline

Retrieves the physics system peer object.

References SetPeerPhysics().

◆ GetPropFieldCount()

int deWorld::GetPropFieldCount ( ) const
inline

Number of prop fields.

◆ GetRootBillboard()

deBillboard* deWorld::GetRootBillboard ( ) const
inline

Root billboard or NULL if there are none.

References AddBillboard(), RemoveAllBillboards(), and RemoveBillboard().

◆ GetRootCamera()

deCamera* deWorld::GetRootCamera ( ) const
inline

Root camera or NULL if there are none.

References AddCamera(), RemoveAllCameras(), and RemoveCamera().

◆ GetRootCollider()

deCollider* deWorld::GetRootCollider ( ) const
inline

Root collider or NULL if there are none.

References AddCollider(), RemoveAllColliders(), and RemoveCollider().

◆ GetRootComponent()

deComponent* deWorld::GetRootComponent ( ) const
inline

Root component or NULL if there are none.

References AddComponent(), RemoveAllComponents(), and RemoveComponent().

◆ GetRootDebugDrawer()

deDebugDrawer* deWorld::GetRootDebugDrawer ( ) const
inline

Root debug drawer or NULL if there are none.

References AddDebugDrawer(), RemoveAllDebugDrawers(), and RemoveDebugDrawer().

◆ GetRootEnvMapProbe()

deEnvMapProbe* deWorld::GetRootEnvMapProbe ( ) const
inline

Root environment map probe or NULL if there are none.

References AddEnvMapProbe(), RemoveAllEnvMapProbes(), and RemoveEnvMapProbe().

◆ GetRootForceField()

deForceField* deWorld::GetRootForceField ( ) const
inline

Root force field or NULL if there are none.

References AddForceField(), RemoveAllForceFields(), and RemoveForceField().

◆ GetRootLight()

deLight* deWorld::GetRootLight ( ) const
inline

Root light or NULL if there are none.

References AddLight(), RemoveAllLights(), and RemoveLight().

◆ GetRootLumimeter()

deLumimeter* deWorld::GetRootLumimeter ( ) const
inline

Root lumimeter or NULL if there are none.

References AddLumimeter(), RemoveAllLumimeters(), and RemoveLumimeter().

◆ GetRootMicrophone()

deMicrophone* deWorld::GetRootMicrophone ( ) const
inline

Root microphone or NULL if there are none.

References AddMicrophone(), RemoveAllMicrophones(), and RemoveMicrophone().

◆ GetRootNavigationBlocker()

deNavigationBlocker* deWorld::GetRootNavigationBlocker ( ) const
inline

Root navigation blocker or NULL if there are none.

References AddNavigationBlocker(), RemoveAllNavigationBlockers(), and RemoveNavigationBlocker().

◆ GetRootNavigationSpace()

deNavigationSpace* deWorld::GetRootNavigationSpace ( ) const
inline

Root navigation space or NULL if there are none.

References AddNavigationSpace(), RemoveAllNavigationSpaces(), and RemoveNavigationSpace().

◆ GetRootNavigator()

deNavigator* deWorld::GetRootNavigator ( ) const
inline

Root navigator or NULL if there are none.

References AddNavigator(), RemoveAllNavigators(), and RemoveNavigator().

◆ GetRootNetworkState()

deNetworkState* deWorld::GetRootNetworkState ( ) const
inline

Root network state or NULL if there are none.

References AddNetworkState(), RemoveAllNetworkStates(), and RemoveNetworkState().

◆ GetRootParticleEmitter()

deParticleEmitterInstance* deWorld::GetRootParticleEmitter ( ) const
inline

Root particle emitter or NULL if there are none.

References AddParticleEmitter(), RemoveAllParticleEmitters(), and RemoveParticleEmitter().

◆ GetRootPropField()

dePropField* deWorld::GetRootPropField ( ) const
inline

Root prop field or NULL if there are none.

References AddPropField(), RemoveAllPropFields(), and RemovePropField().

◆ GetRootSmokeEmitter()

deSmokeEmitter* deWorld::GetRootSmokeEmitter ( ) const
inline

◆ GetRootSpeaker()

deSpeaker* deWorld::GetRootSpeaker ( ) const
inline

Root speaker or NULL if there are none.

References AddSpeaker(), RemoveAllSpeakers(), and RemoveSpeaker().

◆ GetRootTouchSensor()

deTouchSensor* deWorld::GetRootTouchSensor ( ) const
inline

Root touch sensor or NULL if there are none.

References AddTouchSensor(), RemoveAllTouchSensors(), and RemoveTouchSensor().

◆ GetSize()

const decDVector& deWorld::GetSize ( ) const
inline

Retrieves the size of the world.

References SetSize().

◆ GetSky()

deSky* deWorld::GetSky ( ) const
inline

Retrieves the assigned sky or NULL.

References SetSky().

◆ GetSmokeEmitterCount()

int deWorld::GetSmokeEmitterCount ( ) const
inline

Number of smoke emitters.

◆ GetSpeakerCount()

int deWorld::GetSpeakerCount ( ) const
inline

Number of speakers.

◆ GetTouchSensorCount()

int deWorld::GetTouchSensorCount ( ) const
inline

Number of touch sensors.

◆ ProcessPhysics()

void deWorld::ProcessPhysics ( float  elapsed)

Process physics simulation using the physics module.

Apply collision detection on moving kinematic collider, physical simulation on dynamic colliders, particle and prop field simulations as well as moving colliders attached to other colliders.

Referenced by GetLightColorMatrix().

◆ RayHits()

void deWorld::RayHits ( const decDVector rayOrigin,
const decVector rayDirection,
deBaseScriptingCollider listener,
const decCollisionFilter collisionFilter 
)

Tests a ray for collision with the element in the world.

For each collision the collisionResponse function the given listener is called. To stop testing set StopTesting in the provided collision information object to true.

Referenced by GetRootSmokeEmitter().

◆ RemoveAllBillboards()

void deWorld::RemoveAllBillboards ( )

Remove all billboards.

Referenced by GetRootBillboard().

◆ RemoveAllCameras()

void deWorld::RemoveAllCameras ( )

Remove all cameras.

Referenced by GetRootCamera().

◆ RemoveAllColliders()

void deWorld::RemoveAllColliders ( )

Remove all colliders.

Referenced by GetRootCollider().

◆ RemoveAllComponents()

void deWorld::RemoveAllComponents ( )

Remove all components.

Referenced by GetRootComponent().

◆ RemoveAllDebugDrawers()

void deWorld::RemoveAllDebugDrawers ( )

Remove all debug drawers.

Referenced by GetRootDebugDrawer().

◆ RemoveAllEnvMapProbes()

void deWorld::RemoveAllEnvMapProbes ( )

Remove all environment map probes.

Referenced by GetRootEnvMapProbe().

◆ RemoveAllForceFields()

void deWorld::RemoveAllForceFields ( )

Remove all force fields.

Referenced by GetRootForceField().

◆ RemoveAllLights()

void deWorld::RemoveAllLights ( )

Remove all lights.

Referenced by GetRootLight().

◆ RemoveAllLumimeters()

void deWorld::RemoveAllLumimeters ( )

Remove all lumimeters.

Referenced by GetRootLumimeter().

◆ RemoveAllMicrophones()

void deWorld::RemoveAllMicrophones ( )

Remove all microphones.

Referenced by GetRootMicrophone().

◆ RemoveAllNavigationBlockers()

void deWorld::RemoveAllNavigationBlockers ( )

Remove all navigation blockers.

Referenced by GetRootNavigationBlocker().

◆ RemoveAllNavigationSpaces()

void deWorld::RemoveAllNavigationSpaces ( )

Remove all navigation spaces.

Referenced by GetRootNavigationSpace().

◆ RemoveAllNavigators()

void deWorld::RemoveAllNavigators ( )

Remove all navigators.

Referenced by GetRootNavigator().

◆ RemoveAllNetworkStates()

void deWorld::RemoveAllNetworkStates ( )

Remove all network states.

Referenced by GetRootNetworkState().

◆ RemoveAllParticleEmitters()

void deWorld::RemoveAllParticleEmitters ( )

Remove all particle emitters.

Referenced by GetRootParticleEmitter().

◆ RemoveAllPropFields()

void deWorld::RemoveAllPropFields ( )

Remove all prop fields.

Referenced by GetRootPropField().

◆ RemoveAllSmokeEmitters()

void deWorld::RemoveAllSmokeEmitters ( )

Remove all smoke emitters.

Referenced by GetRootSmokeEmitter().

◆ RemoveAllSpeakers()

void deWorld::RemoveAllSpeakers ( )

Remove all speakers.

Referenced by GetRootSpeaker().

◆ RemoveAllTouchSensors()

void deWorld::RemoveAllTouchSensors ( )

Remove all touch sensors.

Referenced by GetRootTouchSensor().

◆ RemoveBillboard()

void deWorld::RemoveBillboard ( deBillboard billboard)

Remove billboard.

Exceptions
deeInvalidParambillboard is NULL.
deeInvalidParamParent world of billboard is not this world.

Referenced by GetRootBillboard().

◆ RemoveCamera()

void deWorld::RemoveCamera ( deCamera camera)

Remove camera.

Exceptions
deeInvalidParamcamera is NULL.
deeInvalidParamParent world of camera is not this world.

Referenced by GetRootCamera().

◆ RemoveCollider()

void deWorld::RemoveCollider ( deCollider collider)

Remove collider.

Exceptions
deeInvalidParamcollider is NULL.
deeInvalidParamParent world of collider is not this world.

Referenced by GetRootCollider().

◆ RemoveComponent()

void deWorld::RemoveComponent ( deComponent component)

Remove component.

Exceptions
deeInvalidParamcomponent is NULL.
deeInvalidParamParent world of component is not this world.

Referenced by GetRootComponent().

◆ RemoveDebugDrawer()

void deWorld::RemoveDebugDrawer ( deDebugDrawer debugDrawer)

Remove debugDrawer.

Exceptions
deeInvalidParamdebugDrawer is NULL.
deeInvalidParamParent world of debugDrawer is not this world.

Referenced by GetRootDebugDrawer().

◆ RemoveEnvMapProbe()

void deWorld::RemoveEnvMapProbe ( deEnvMapProbe envMapProbe)

Remove environment map probe.

Exceptions
deeInvalidParamenvMapProbe is NULL.
deeInvalidParamParent world of envMapProbe is not this world.

Referenced by GetRootEnvMapProbe().

◆ RemoveForceField()

void deWorld::RemoveForceField ( deForceField forceField)

Remove force field.

Exceptions
deeInvalidParamforceField is NULL.
deeInvalidParamParent world of forceField is not this world.

Referenced by GetRootForceField().

◆ RemoveLight()

void deWorld::RemoveLight ( deLight light)

Remove light.

Exceptions
deeInvalidParamlight is NULL.
deeInvalidParamParent world of light is not this world.

Referenced by GetRootLight().

◆ RemoveLumimeter()

void deWorld::RemoveLumimeter ( deLumimeter lumimeter)

Remove lumimeter.

Exceptions
deeInvalidParamlumimeter is NULL.
deeInvalidParamParent world of lumimeter is not this world.

Referenced by GetRootLumimeter().

◆ RemoveMicrophone()

void deWorld::RemoveMicrophone ( deMicrophone microphone)

Remove microphone.

Exceptions
deeInvalidParammicrophone is NULL.
deeInvalidParamParent world of microphone is not this world.

Referenced by GetRootMicrophone().

◆ RemoveNavigationBlocker()

void deWorld::RemoveNavigationBlocker ( deNavigationBlocker navigationBlocker)

Remove navigation blocker.

Exceptions
deeInvalidParamnavigationBlocker is NULL.
deeInvalidParamParent world of navigationBlocker is not this world.

Referenced by GetRootNavigationBlocker().

◆ RemoveNavigationSpace()

void deWorld::RemoveNavigationSpace ( deNavigationSpace navigationSpace)

Remove navigation space.

Exceptions
deeInvalidParamnavigationSpace is NULL.
deeInvalidParamParent world of navigationSpace is not this world.

Referenced by GetRootNavigationSpace().

◆ RemoveNavigator()

void deWorld::RemoveNavigator ( deNavigator navigator)

Remove navigator.

Exceptions
deeInvalidParamnavigator is NULL.
deeInvalidParamParent world of navigator is not this world.

Referenced by GetRootNavigator().

◆ RemoveNetworkState()

void deWorld::RemoveNetworkState ( deNetworkState networkState)

Remove network state.

Exceptions
deeInvalidParamnetworkState is NULL.
deeInvalidParamParent world of networkState is not this world.

Referenced by GetRootNetworkState().

◆ RemoveParticleEmitter()

void deWorld::RemoveParticleEmitter ( deParticleEmitterInstance particleEmitter)

Remove particle emitter.

Exceptions
deeInvalidParamparticleEmitter is NULL.
deeInvalidParamParent world of particleEmitter is not this world.

Referenced by GetRootParticleEmitter().

◆ RemovePropField()

void deWorld::RemovePropField ( dePropField propField)

Remove prop field.

Exceptions
deeInvalidParampropField is NULL.
deeInvalidParamParent world of propField is not this world.

Referenced by GetRootPropField().

◆ RemoveSmokeEmitter()

void deWorld::RemoveSmokeEmitter ( deSmokeEmitter smokeEmitter)

Remove smoke emitter.

Exceptions
deeInvalidParamsmokeEmitter is NULL.
deeInvalidParamParent world of smokeEmitter is not this world.

Referenced by GetRootSmokeEmitter().

◆ RemoveSpeaker()

void deWorld::RemoveSpeaker ( deSpeaker speaker)

Remove speaker.

Exceptions
deeInvalidParamspeaker is NULL.
deeInvalidParamParent world of speaker is not this world.

Referenced by GetRootSpeaker().

◆ RemoveTouchSensor()

void deWorld::RemoveTouchSensor ( deTouchSensor touchSensor)

Remove touch sensor.

Exceptions
deeInvalidParamtouchSensor is NULL.
deeInvalidParamParent world of touchSensor is not this world.

Referenced by GetRootTouchSensor().

◆ SetAmbientLight()

void deWorld::SetAmbientLight ( const decColor color)

Sets the ambient light color.

Referenced by GetAmbientLight().

◆ SetDisableLights()

void deWorld::SetDisableLights ( bool  disable)

Sets if all lights are disabled.

Referenced by GetDisableLights().

◆ SetGravity()

void deWorld::SetGravity ( const decVector gravity)

Sets the world gravity vector.

Referenced by GetGravity().

◆ SetHeightTerrain()

void deWorld::SetHeightTerrain ( deHeightTerrain heightTerrain)

Sets the assigned height terrain or NULL to remove it.

Referenced by GetHeightTerrain().

◆ SetLightColorMatrix()

void deWorld::SetLightColorMatrix ( const decMatrix matrix)

Sets the light color matrix.

Referenced by GetLightColorMatrix().

◆ SetPeerAI()

void deWorld::SetPeerAI ( deBaseAIWorld peer)

Sets the ai system peer object.

Referenced by GetPeerAI().

◆ SetPeerAudio()

void deWorld::SetPeerAudio ( deBaseAudioWorld peer)

Sets the audio system peer object.

Referenced by GetPeerAudio().

◆ SetPeerGraphic()

void deWorld::SetPeerGraphic ( deBaseGraphicWorld peer)

Sets the graphic system peer object.

Referenced by GetPeerGraphic().

◆ SetPeerNetwork()

void deWorld::SetPeerNetwork ( deBaseNetworkWorld peer)

Sets the network system peer object.

Referenced by GetPeerNetwork().

◆ SetPeerPhysics()

void deWorld::SetPeerPhysics ( deBasePhysicsWorld peer)

Sets the physics system peer object.

Referenced by GetPeerPhysics().

◆ SetSize()

void deWorld::SetSize ( const decDVector size)

Sets the size of the world.

Referenced by GetSize().

◆ SetSky()

void deWorld::SetSky ( deSky sky)

Sets the assigned sky or NULL to remove it.

Referenced by GetSky().

◆ Update()

void deWorld::Update ( float  elapsed)

Updates dynamic world parts. This includes sending a notification to the graphic system peer to update internal data structures. Objects beeing part of the world are not updated with this call. This is to avoid slowing the engine down if a huge amount of objects are in the world.

Parameters
elapsedSeconds elapsed since the last update

Referenced by GetLightColorMatrix().


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