Drag[en]gine Game Engine
1.21
|
Prop Field Ground. More...
#include <dePropFieldGround.h>
Public Member Functions | |
Constructors and Destructors | |
dePropFieldGround () | |
Create new prop field ground. More... | |
~dePropFieldGround () | |
Clean up prop field ground. More... | |
Management | |
void | Clear () |
Clears the ground of the height terrain and all terrains and components. More... | |
deHeightTerrain * | GetHeightTerrain () const |
Height terrain or NULL if not set. More... | |
void | SetHeightTerrain (deHeightTerrain *heightTerrain) |
Set height terrain or NULL if not set. More... | |
Components | |
int | GetComponentCount () const |
Number of components. More... | |
deComponent * | GetComponentAt (int index) const |
Component at the given index. More... | |
int | IndexOfComponent (deComponent *component) const |
Index of the given component or -1 if not found. More... | |
bool | HasComponent (deComponent *component) const |
Given component exists. More... | |
void | AddComponent (deComponent *component) |
Adds a component. More... | |
void | RemoveComponent (deComponent *component) |
Removes a component. More... | |
void | RemoveAllComponents () |
Removes all components. More... | |
Prop Field Ground.
Defines the ground for instances of a prop field to be projected upon. This list contains components as well as the height terrain making up the ground. This list is used by the physics module to project prop field instances onto the ground. This list is designed to be used for a short time to align instances added to a prop field and is afterwards released. components are held by the prop field ground. Since this object is designed to live only for a short time no reference counting is used.
dePropFieldGround::dePropFieldGround | ( | ) |
Create new prop field ground.
dePropFieldGround::~dePropFieldGround | ( | ) |
Clean up prop field ground.
void dePropFieldGround::AddComponent | ( | deComponent * | component | ) |
Adds a component.
void dePropFieldGround::Clear | ( | ) |
Clears the ground of the height terrain and all terrains and components.
deComponent* dePropFieldGround::GetComponentAt | ( | int | index | ) | const |
Component at the given index.
|
inline |
Number of components.
|
inline |
Height terrain or NULL if not set.
bool dePropFieldGround::HasComponent | ( | deComponent * | component | ) | const |
Given component exists.
int dePropFieldGround::IndexOfComponent | ( | deComponent * | component | ) | const |
Index of the given component or -1 if not found.
void dePropFieldGround::RemoveAllComponents | ( | ) |
Removes all components.
void dePropFieldGround::RemoveComponent | ( | deComponent * | component | ) |
Removes a component.
void dePropFieldGround::SetHeightTerrain | ( | deHeightTerrain * | heightTerrain | ) |
Set height terrain or NULL if not set.