Drag[en]gine Game Engine
1.21
|
Prop Field. More...
#include <dePropField.h>
Public Types | |
typedef deTObjectReference< dePropField > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
const decDVector & | GetPosition () const |
Position. More... | |
void | SetPosition (const decDVector &position) |
Set position. More... | |
int | GetTypeCount () const |
Number of types. More... | |
dePropFieldType * | GetTypeAt (int index) const |
Type at the given index. More... | |
int | IndexOfType (dePropFieldType *type) const |
Index of the given type of -1 if not found. More... | |
void | AddType (dePropFieldType *type) |
Adds a type. More... | |
void | RemoveType (dePropFieldType *type) |
Removes the given type. More... | |
void | RemoveAllTypes () |
Removes all types. More... | |
void | NotifyTypeChanged (int type) |
Notifies the peers that the given type changed. More... | |
void | NotifyInstancesChanged (int type) |
Notifies the peers that the given type instances changed. More... | |
void | NotifyAssignmentsChanged (int type) |
Notifies the peers that the given type instances to bend states assignments changed. More... | |
void | NotifyBendStatesChanged (int type) |
Notifies the peers that the given type bend states changed. More... | |
void | NotifyGroundChanged () |
Notifies the graphic module that the ground changed. More... | |
void | NotifyCreateInstances (float density) |
Requests the scripting module to create instances using the given density. More... | |
void | NotifyProjectInstances (const dePropFieldGround &ground, const decVector &direction) |
Requests the physics module to project all instances to the given ground. More... | |
System Peers | |
deBaseGraphicPropField * | GetPeerGraphic () const |
Graphic system peer object. More... | |
void | SetPeerGraphic (deBaseGraphicPropField *peer) |
Set graphic system peer object. More... | |
deBasePhysicsPropField * | GetPeerPhysics () const |
Physics system peer object. More... | |
void | SetPeerPhysics (deBasePhysicsPropField *peer) |
Set physics system peer object. More... | |
deBaseScriptingPropField * | GetPeerScripting () const |
Scripting system peer object. More... | |
void | SetPeerScripting (deBaseScriptingPropField *peer) |
Set scripting system peer object. More... | |
Linked List | |
deWorld * | GetParentWorld () const |
Parent world or NULL. More... | |
void | SetParentWorld (deWorld *world) |
Set parent world or NULL. More... | |
dePropField * | GetLLWorldPrev () const |
Previous prop field in the parent world linked list. More... | |
void | SetLLWorldPrev (dePropField *propField) |
Set next prop field in the parent world linked list. More... | |
dePropField * | GetLLWorldNext () const |
Next prop field in the parent world linked list. More... | |
void | SetLLWorldNext (dePropField *propField) |
Set next prop field in the parent world linked list. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () 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 | |
dePropField (dePropFieldManager *manager) | |
Create new prop field. More... | |
virtual | ~dePropField () |
Clean up prop field. 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... | |
Prop Field.
Prop fields define a large number of inexpensive models used to populate with vegetation or props in general for improved visuals. These props are not required to be rendered or simulated in a physical way for the game to work. Prop fields have a couple of restrictions on how these props are defined to create large numbers of props with little definition, processing and memory overhead. Each prop field contains a list of types.
Type holding strong reference.
dePropField::dePropField | ( | dePropFieldManager * | manager | ) |
Create new prop field.
|
protectedvirtual |
Clean up prop field.
void dePropField::AddType | ( | dePropFieldType * | type | ) |
Adds a type.
|
inline |
Next prop field in the parent world linked list.
|
inline |
Previous prop field in the parent world linked list.
|
inline |
Parent world or NULL.
|
inline |
Graphic system peer object.
|
inline |
Physics system peer object.
|
inline |
Scripting system peer object.
|
inline |
Position.
dePropFieldType* dePropField::GetTypeAt | ( | int | index | ) | const |
Type at the given index.
|
inline |
Number of types.
int dePropField::IndexOfType | ( | dePropFieldType * | type | ) | const |
Index of the given type of -1 if not found.
void dePropField::NotifyAssignmentsChanged | ( | int | type | ) |
Notifies the peers that the given type instances to bend states assignments changed.
void dePropField::NotifyBendStatesChanged | ( | int | type | ) |
Notifies the peers that the given type bend states changed.
void dePropField::NotifyCreateInstances | ( | float | density | ) |
Requests the scripting module to create instances using the given density.
void dePropField::NotifyGroundChanged | ( | ) |
Notifies the graphic module that the ground changed.
void dePropField::NotifyInstancesChanged | ( | int | type | ) |
Notifies the peers that the given type instances changed.
void dePropField::NotifyProjectInstances | ( | const dePropFieldGround & | ground, |
const decVector & | direction | ||
) |
Requests the physics module to project all instances to the given ground.
void dePropField::NotifyTypeChanged | ( | int | type | ) |
Notifies the peers that the given type changed.
void dePropField::RemoveAllTypes | ( | ) |
Removes all types.
void dePropField::RemoveType | ( | dePropFieldType * | type | ) |
Removes the given type.
void dePropField::SetLLWorldNext | ( | dePropField * | propField | ) |
Set next prop field in the parent world linked list.
void dePropField::SetLLWorldPrev | ( | dePropField * | propField | ) |
Set next prop field in the parent world linked list.
void dePropField::SetParentWorld | ( | deWorld * | world | ) |
Set parent world or NULL.
void dePropField::SetPeerGraphic | ( | deBaseGraphicPropField * | peer | ) |
Set graphic system peer object.
void dePropField::SetPeerPhysics | ( | deBasePhysicsPropField * | peer | ) |
Set physics system peer object.
void dePropField::SetPeerScripting | ( | deBaseScriptingPropField * | peer | ) |
Set scripting system peer object.
void dePropField::SetPosition | ( | const decDVector & | position | ) |
Set position.