Drag[en]gine Game Engine  1.21
deWorld Class Reference

Renderable World Class. More...

#include <deWorld.h>

Inheritance diagram for deWorld:
deResource deObject

Public Types

typedef deTObjectReference< deWorldRef
 Type holding strong reference. More...
 
- Public Types inherited from deResource
typedef deTObjectReference< deResourceRef
 Type holding strong reference. More...
 
- Public Types inherited from deObject
typedef deTObjectReference< deObjectRef
 Type holding strong reference. More...
 

Public Member Functions

Management
void Clear ()
 Removes all objects from the world. More...
 
deHeightTerrainGetHeightTerrain () const
 Assigned height terrain or NULL. More...
 
void SetHeightTerrain (deHeightTerrain *heightTerrain)
 Set assigned height terrain or NULL to remove it. More...
 
const decDVectorGetSize () const
 Size of the world. More...
 
void SetSize (const decDVector &size)
 Set size of the world. More...
 
const decVectorGetGravity () const
 World gravity vector. More...
 
void SetGravity (const decVector &gravity)
 Set world gravity vector. More...
 
bool GetDisableLights () const
 Determines if all lights are disables. More...
 
void SetDisableLights (bool disable)
 Sets if all lights are disabled. More...
 
const decColorGetAmbientLight () const
 Ambient light color. More...
 
void SetAmbientLight (const decColor &color)
 Set ambient light color. More...
 
const decMatrixGetLightColorMatrix () const
 Light color matrix. More...
 
void SetLightColorMatrix (const decMatrix &matrix)
 Set light color matrix. More...
 
float GetSpeakerGain () const
 Gain to multiply all speakers with. More...
 
void SetSpeakerGain (float gain)
 Set gain to multiply all speakers with. More...
 
void Update (float elapsed)
 Update dynamic world parts. More...
 
void ProcessPhysics (float elapsed)
 Process physics simulation using the physics module. More...
 
Skies
int GetSkyCount () const
 Count of skies. More...
 
deSkyInstanceGetRootSky () const
 Root sky or NULL if there are none. More...
 
void AddSky (deSkyInstance *sky)
 Add sky. More...
 
void RemoveSky (deSkyInstance *sky)
 Remove sky. More...
 
void RemoveAllSkies ()
 Remove all skies. More...
 
Billboards
int GetBillboardCount () const
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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
 Count 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...
 
Sound level meters
int GetSoundLevelMeterCount () const
 Count of sound level meters. More...
 
deSoundLevelMeterGetRootSoundLevelMeter () const
 Root sound level meter or NULL if there are none. More...
 
void AddSoundLevelMeter (deSoundLevelMeter *soundLevelMeter)
 Add sound level meter. More...
 
void RemoveSoundLevelMeter (deSoundLevelMeter *soundLevelMeter)
 Remove sound level meter. More...
 
void RemoveAllSoundLevelMeters ()
 Remove all sound level meters. More...
 
Touch sensors
int GetTouchSensorCount () const
 Count 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
 Count 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 PointHits (const decDVector &point, deBaseScriptingCollider *listener, const decCollisionFilter &collisionFilter)
 Test a point for collision with colliders. More...
 
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...
 
- 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)
 Create new world object with the given resource manager. More...
 
virtual ~deWorld ()
 Clean up world. More...
 

System Peers

deBaseGraphicWorldGetPeerGraphic () const
 Graphic system peer object. More...
 
void SetPeerGraphic (deBaseGraphicWorld *peer)
 Set graphic system peer object. More...
 
deBasePhysicsWorldGetPeerPhysics () const
 Physics system peer object. More...
 
void SetPeerPhysics (deBasePhysicsWorld *peer)
 Set physics system peer object. More...
 
deBaseAudioWorldGetPeerAudio () const
 Audio system peer object. More...
 
void SetPeerAudio (deBaseAudioWorld *peer)
 Set audio system peer object. More...
 
deBaseNetworkWorldGetPeerNetwork () const
 Network system peer object. More...
 
void SetPeerNetwork (deBaseNetworkWorld *peer)
 Set network system peer object. More...
 
deBaseAIWorldGetPeerAI () const
 Ai system peer object. More...
 
void SetPeerAI (deBaseAIWorld *peer)
 Set ai system peer object. 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.

Member Typedef Documentation

◆ Ref

Type holding strong reference.

Constructor & Destructor Documentation

◆ deWorld()

deWorld::deWorld ( deWorldManager manager)

Create 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.

◆ AddCamera()

void deWorld::AddCamera ( deCamera camera)

Add camera.

Exceptions
deeInvalidParamcamera is NULL.
deeInvalidParamcamera has a parent world.

◆ AddCollider()

void deWorld::AddCollider ( deCollider collider)

Add collider.

Exceptions
deeInvalidParamcollider is NULL.
deeInvalidParamcollider has a parent world.

◆ AddComponent()

void deWorld::AddComponent ( deComponent component)

Add component.

Exceptions
deeInvalidParamcomponent is NULL.
deeInvalidParamcomponent has a parent world.

◆ AddDebugDrawer()

void deWorld::AddDebugDrawer ( deDebugDrawer debugDrawer)

Add debugDrawer.

Exceptions
deeInvalidParamdebugDrawer is NULL.
deeInvalidParamdebugDrawer has a parent world.

◆ AddEnvMapProbe()

void deWorld::AddEnvMapProbe ( deEnvMapProbe envMapProbe)

Add environment map probe.

Exceptions
deeInvalidParamenvMapProbe is NULL.
deeInvalidParamenvMapProbe has a parent world.

◆ AddForceField()

void deWorld::AddForceField ( deForceField forceField)

Add force field.

Exceptions
deeInvalidParamforceField is NULL.
deeInvalidParamforceField has a parent world.

◆ AddLight()

void deWorld::AddLight ( deLight light)

Add light.

Exceptions
deeInvalidParamlight is NULL.
deeInvalidParamlight has a parent world.

◆ AddLumimeter()

void deWorld::AddLumimeter ( deLumimeter lumimeter)

Add lumimeter.

Exceptions
deeInvalidParamlumimeter is NULL.
deeInvalidParamlumimeter has a parent world.

◆ AddMicrophone()

void deWorld::AddMicrophone ( deMicrophone microphone)

Add microphone.

Exceptions
deeInvalidParammicrophone is NULL.
deeInvalidParammicrophone has a parent world.

◆ AddNavigationBlocker()

void deWorld::AddNavigationBlocker ( deNavigationBlocker navigationBlocker)

Add navigation blocker.

Exceptions
deeInvalidParamnavigationBlocker is NULL.
deeInvalidParamnavigationBlocker has a parent world.

◆ AddNavigationSpace()

void deWorld::AddNavigationSpace ( deNavigationSpace navigationSpace)

Add navigation space.

Exceptions
deeInvalidParamnavigationSpace is NULL.
deeInvalidParamnavigationSpace has a parent world.

◆ AddNavigator()

void deWorld::AddNavigator ( deNavigator navigator)

Add navigator.

Exceptions
deeInvalidParamnavigator is NULL.
deeInvalidParamnavigator has a parent world.

◆ AddNetworkState()

void deWorld::AddNetworkState ( deNetworkState networkState)

Add network state.

Exceptions
deeInvalidParamnetworkState is NULL.
deeInvalidParamnetworkState has a parent world.

◆ AddParticleEmitter()

void deWorld::AddParticleEmitter ( deParticleEmitterInstance particleEmitter)

Add particle emitter.

Exceptions
deeInvalidParamparticleEmitter is NULL.
deeInvalidParamparticleEmitter has a parent world.

◆ AddPropField()

void deWorld::AddPropField ( dePropField propField)

Add prop field.

Exceptions
deeInvalidParampropField is NULL.
deeInvalidParampropField has a parent world.

◆ AddSky()

void deWorld::AddSky ( deSkyInstance sky)

Add sky.

Exceptions
deeInvalidParamsky is NULL.
deeInvalidParamsky has a parent world.

◆ AddSmokeEmitter()

void deWorld::AddSmokeEmitter ( deSmokeEmitter smokeEmitter)

Add smoke emitter.

Exceptions
deeInvalidParamsmokeEmitter is NULL.
deeInvalidParamsmokeEmitter has a parent world.

◆ AddSoundLevelMeter()

void deWorld::AddSoundLevelMeter ( deSoundLevelMeter soundLevelMeter)

Add sound level meter.

Exceptions
deeInvalidParamsoundLevelMeter is NULL.
deeInvalidParamsoundLevelMeter has a parent world.

◆ AddSpeaker()

void deWorld::AddSpeaker ( deSpeaker speaker)

Add speaker.

Exceptions
deeInvalidParamspeaker is NULL.
deeInvalidParamspeaker has a parent world.

◆ AddTouchSensor()

void deWorld::AddTouchSensor ( deTouchSensor touchSensor)

Add touch sensor.

Exceptions
deeInvalidParamtouchSensor is NULL.
deeInvalidParamtouchSensor has a parent world.

◆ 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.

◆ 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.

◆ 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.

◆ 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.

◆ GetAmbientLight()

const decColor& deWorld::GetAmbientLight ( ) const
inline

Ambient light color.

◆ GetBillboardCount()

int deWorld::GetBillboardCount ( ) const
inline

Count of billboards.

◆ GetCameraCount()

int deWorld::GetCameraCount ( ) const
inline

Count of cameras.

◆ GetColliderCount()

int deWorld::GetColliderCount ( ) const
inline

Count of colliders.

◆ GetComponentCount()

int deWorld::GetComponentCount ( ) const
inline

Count of components.

◆ GetDebugDrawerCount()

int deWorld::GetDebugDrawerCount ( ) const
inline

Count of debug drawers.

◆ GetDisableLights()

bool deWorld::GetDisableLights ( ) const
inline

Determines if all lights are disables.

◆ GetEnvMapProbeCount()

int deWorld::GetEnvMapProbeCount ( ) const
inline

Count of environment map probes.

◆ GetForceFieldCount()

int deWorld::GetForceFieldCount ( ) const
inline

Count of force fields.

◆ GetGravity()

const decVector& deWorld::GetGravity ( ) const
inline

World gravity vector.

◆ GetHeightTerrain()

deHeightTerrain* deWorld::GetHeightTerrain ( ) const
inline

Assigned height terrain or NULL.

◆ GetLightColorMatrix()

const decMatrix& deWorld::GetLightColorMatrix ( ) const
inline

Light color matrix.

◆ GetLightCount()

int deWorld::GetLightCount ( ) const
inline

Count of lights.

◆ GetLumimeterCount()

int deWorld::GetLumimeterCount ( ) const
inline

Count of lumimeters.

◆ GetMicrophoneCount()

int deWorld::GetMicrophoneCount ( ) const
inline

Count of microphones.

◆ GetNavigationBlockerCount()

int deWorld::GetNavigationBlockerCount ( ) const
inline

Count of navigation blockers.

◆ GetNavigationSpaceCount()

int deWorld::GetNavigationSpaceCount ( ) const
inline

Count of navigation spaces.

◆ GetNavigatorCount()

int deWorld::GetNavigatorCount ( ) const
inline

Count of navigators.

◆ GetNetworkStateCount()

int deWorld::GetNetworkStateCount ( ) const
inline

Count of network states.

◆ GetParticleEmitterCount()

int deWorld::GetParticleEmitterCount ( ) const
inline

Count of particle emitters.

◆ GetPeerAI()

deBaseAIWorld* deWorld::GetPeerAI ( ) const
inline

Ai system peer object.

◆ GetPeerAudio()

deBaseAudioWorld* deWorld::GetPeerAudio ( ) const
inline

Audio system peer object.

◆ GetPeerGraphic()

deBaseGraphicWorld* deWorld::GetPeerGraphic ( ) const
inline

Graphic system peer object.

◆ GetPeerNetwork()

deBaseNetworkWorld* deWorld::GetPeerNetwork ( ) const
inline

Network system peer object.

◆ GetPeerPhysics()

deBasePhysicsWorld* deWorld::GetPeerPhysics ( ) const
inline

Physics system peer object.

◆ GetPropFieldCount()

int deWorld::GetPropFieldCount ( ) const
inline

Count of prop fields.

◆ GetRootBillboard()

deBillboard* deWorld::GetRootBillboard ( ) const
inline

Root billboard or NULL if there are none.

◆ GetRootCamera()

deCamera* deWorld::GetRootCamera ( ) const
inline

Root camera or NULL if there are none.

◆ GetRootCollider()

deCollider* deWorld::GetRootCollider ( ) const
inline

Root collider or NULL if there are none.

◆ GetRootComponent()

deComponent* deWorld::GetRootComponent ( ) const
inline

Root component or NULL if there are none.

◆ GetRootDebugDrawer()

deDebugDrawer* deWorld::GetRootDebugDrawer ( ) const
inline

Root debug drawer or NULL if there are none.

◆ GetRootEnvMapProbe()

deEnvMapProbe* deWorld::GetRootEnvMapProbe ( ) const
inline

Root environment map probe or NULL if there are none.

◆ GetRootForceField()

deForceField* deWorld::GetRootForceField ( ) const
inline

Root force field or NULL if there are none.

◆ GetRootLight()

deLight* deWorld::GetRootLight ( ) const
inline

Root light or NULL if there are none.

◆ GetRootLumimeter()

deLumimeter* deWorld::GetRootLumimeter ( ) const
inline

Root lumimeter or NULL if there are none.

◆ GetRootMicrophone()

deMicrophone* deWorld::GetRootMicrophone ( ) const
inline

Root microphone or NULL if there are none.

◆ GetRootNavigationBlocker()

deNavigationBlocker* deWorld::GetRootNavigationBlocker ( ) const
inline

Root navigation blocker or NULL if there are none.

◆ GetRootNavigationSpace()

deNavigationSpace* deWorld::GetRootNavigationSpace ( ) const
inline

Root navigation space or NULL if there are none.

◆ GetRootNavigator()

deNavigator* deWorld::GetRootNavigator ( ) const
inline

Root navigator or NULL if there are none.

◆ GetRootNetworkState()

deNetworkState* deWorld::GetRootNetworkState ( ) const
inline

Root network state or NULL if there are none.

◆ GetRootParticleEmitter()

deParticleEmitterInstance* deWorld::GetRootParticleEmitter ( ) const
inline

Root particle emitter or NULL if there are none.

◆ GetRootPropField()

dePropField* deWorld::GetRootPropField ( ) const
inline

Root prop field or NULL if there are none.

◆ GetRootSky()

deSkyInstance* deWorld::GetRootSky ( ) const
inline

Root sky or NULL if there are none.

◆ GetRootSmokeEmitter()

deSmokeEmitter* deWorld::GetRootSmokeEmitter ( ) const
inline

Root smoke emitter or NULL if there are none.

◆ GetRootSoundLevelMeter()

deSoundLevelMeter* deWorld::GetRootSoundLevelMeter ( ) const
inline

Root sound level meter or NULL if there are none.

◆ GetRootSpeaker()

deSpeaker* deWorld::GetRootSpeaker ( ) const
inline

Root speaker or NULL if there are none.

◆ GetRootTouchSensor()

deTouchSensor* deWorld::GetRootTouchSensor ( ) const
inline

Root touch sensor or NULL if there are none.

◆ GetSize()

const decDVector& deWorld::GetSize ( ) const
inline

Size of the world.

◆ GetSkyCount()

int deWorld::GetSkyCount ( ) const
inline

Count of skies.

◆ GetSmokeEmitterCount()

int deWorld::GetSmokeEmitterCount ( ) const
inline

Count of smoke emitters.

◆ GetSoundLevelMeterCount()

int deWorld::GetSoundLevelMeterCount ( ) const
inline

Count of sound level meters.

◆ GetSpeakerCount()

int deWorld::GetSpeakerCount ( ) const
inline

Count of speakers.

◆ GetSpeakerGain()

float deWorld::GetSpeakerGain ( ) const
inline

Gain to multiply all speakers with.

Version
1.16

◆ GetTouchSensorCount()

int deWorld::GetTouchSensorCount ( ) const
inline

Count of touch sensors.

◆ PointHits()

void deWorld::PointHits ( const decDVector point,
deBaseScriptingCollider listener,
const decCollisionFilter collisionFilter 
)

Test a point for collision with colliders.

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

◆ 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.

◆ 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.

◆ RemoveAllBillboards()

void deWorld::RemoveAllBillboards ( )

Remove all billboards.

◆ RemoveAllCameras()

void deWorld::RemoveAllCameras ( )

Remove all cameras.

◆ RemoveAllColliders()

void deWorld::RemoveAllColliders ( )

Remove all colliders.

◆ RemoveAllComponents()

void deWorld::RemoveAllComponents ( )

Remove all components.

◆ RemoveAllDebugDrawers()

void deWorld::RemoveAllDebugDrawers ( )

Remove all debug drawers.

◆ RemoveAllEnvMapProbes()

void deWorld::RemoveAllEnvMapProbes ( )

Remove all environment map probes.

◆ RemoveAllForceFields()

void deWorld::RemoveAllForceFields ( )

Remove all force fields.

◆ RemoveAllLights()

void deWorld::RemoveAllLights ( )

Remove all lights.

◆ RemoveAllLumimeters()

void deWorld::RemoveAllLumimeters ( )

Remove all lumimeters.

◆ RemoveAllMicrophones()

void deWorld::RemoveAllMicrophones ( )

Remove all microphones.

◆ RemoveAllNavigationBlockers()

void deWorld::RemoveAllNavigationBlockers ( )

Remove all navigation blockers.

◆ RemoveAllNavigationSpaces()

void deWorld::RemoveAllNavigationSpaces ( )

Remove all navigation spaces.

◆ RemoveAllNavigators()

void deWorld::RemoveAllNavigators ( )

Remove all navigators.

◆ RemoveAllNetworkStates()

void deWorld::RemoveAllNetworkStates ( )

Remove all network states.

◆ RemoveAllParticleEmitters()

void deWorld::RemoveAllParticleEmitters ( )

Remove all particle emitters.

◆ RemoveAllPropFields()

void deWorld::RemoveAllPropFields ( )

Remove all prop fields.

◆ RemoveAllSkies()

void deWorld::RemoveAllSkies ( )

Remove all skies.

◆ RemoveAllSmokeEmitters()

void deWorld::RemoveAllSmokeEmitters ( )

Remove all smoke emitters.

◆ RemoveAllSoundLevelMeters()

void deWorld::RemoveAllSoundLevelMeters ( )

Remove all sound level meters.

◆ RemoveAllSpeakers()

void deWorld::RemoveAllSpeakers ( )

Remove all speakers.

◆ RemoveAllTouchSensors()

void deWorld::RemoveAllTouchSensors ( )

Remove all touch sensors.

◆ RemoveBillboard()

void deWorld::RemoveBillboard ( deBillboard billboard)

Remove billboard.

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

◆ RemoveCamera()

void deWorld::RemoveCamera ( deCamera camera)

Remove camera.

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

◆ RemoveCollider()

void deWorld::RemoveCollider ( deCollider collider)

Remove collider.

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

◆ RemoveComponent()

void deWorld::RemoveComponent ( deComponent component)

Remove component.

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

◆ RemoveDebugDrawer()

void deWorld::RemoveDebugDrawer ( deDebugDrawer debugDrawer)

Remove debugDrawer.

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

◆ RemoveEnvMapProbe()

void deWorld::RemoveEnvMapProbe ( deEnvMapProbe envMapProbe)

Remove environment map probe.

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

◆ RemoveForceField()

void deWorld::RemoveForceField ( deForceField forceField)

Remove force field.

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

◆ RemoveLight()

void deWorld::RemoveLight ( deLight light)

Remove light.

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

◆ RemoveLumimeter()

void deWorld::RemoveLumimeter ( deLumimeter lumimeter)

Remove lumimeter.

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

◆ RemoveMicrophone()

void deWorld::RemoveMicrophone ( deMicrophone microphone)

Remove microphone.

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

◆ RemoveNavigationBlocker()

void deWorld::RemoveNavigationBlocker ( deNavigationBlocker navigationBlocker)

Remove navigation blocker.

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

◆ RemoveNavigationSpace()

void deWorld::RemoveNavigationSpace ( deNavigationSpace navigationSpace)

Remove navigation space.

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

◆ RemoveNavigator()

void deWorld::RemoveNavigator ( deNavigator navigator)

Remove navigator.

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

◆ RemoveNetworkState()

void deWorld::RemoveNetworkState ( deNetworkState networkState)

Remove network state.

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

◆ RemoveParticleEmitter()

void deWorld::RemoveParticleEmitter ( deParticleEmitterInstance particleEmitter)

Remove particle emitter.

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

◆ RemovePropField()

void deWorld::RemovePropField ( dePropField propField)

Remove prop field.

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

◆ RemoveSky()

void deWorld::RemoveSky ( deSkyInstance sky)

Remove sky.

Exceptions
deeInvalidParamsky is NULL.
deeInvalidParamParent world of sky is not this world.

◆ RemoveSmokeEmitter()

void deWorld::RemoveSmokeEmitter ( deSmokeEmitter smokeEmitter)

Remove smoke emitter.

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

◆ RemoveSoundLevelMeter()

void deWorld::RemoveSoundLevelMeter ( deSoundLevelMeter soundLevelMeter)

Remove sound level meter.

Exceptions
deeInvalidParamsoundLevelMeter is NULL.
deeInvalidParamParent world of soundLevelMeter is not this world.

◆ RemoveSpeaker()

void deWorld::RemoveSpeaker ( deSpeaker speaker)

Remove speaker.

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

◆ RemoveTouchSensor()

void deWorld::RemoveTouchSensor ( deTouchSensor touchSensor)

Remove touch sensor.

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

◆ SetAmbientLight()

void deWorld::SetAmbientLight ( const decColor color)

Set ambient light color.

◆ SetDisableLights()

void deWorld::SetDisableLights ( bool  disable)

Sets if all lights are disabled.

◆ SetGravity()

void deWorld::SetGravity ( const decVector gravity)

Set world gravity vector.

◆ SetHeightTerrain()

void deWorld::SetHeightTerrain ( deHeightTerrain heightTerrain)

Set assigned height terrain or NULL to remove it.

◆ SetLightColorMatrix()

void deWorld::SetLightColorMatrix ( const decMatrix matrix)

Set light color matrix.

◆ SetPeerAI()

void deWorld::SetPeerAI ( deBaseAIWorld peer)

Set ai system peer object.

◆ SetPeerAudio()

void deWorld::SetPeerAudio ( deBaseAudioWorld peer)

Set audio system peer object.

◆ SetPeerGraphic()

void deWorld::SetPeerGraphic ( deBaseGraphicWorld peer)

Set graphic system peer object.

◆ SetPeerNetwork()

void deWorld::SetPeerNetwork ( deBaseNetworkWorld peer)

Set network system peer object.

◆ SetPeerPhysics()

void deWorld::SetPeerPhysics ( deBasePhysicsWorld peer)

Set physics system peer object.

◆ SetSize()

void deWorld::SetSize ( const decDVector size)

Set size of the world.

◆ SetSpeakerGain()

void deWorld::SetSpeakerGain ( float  gain)

Set gain to multiply all speakers with.

Version
1.16

◆ Update()

void deWorld::Update ( float  elapsed)

Update 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

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