Pyrogenesis
trunk
|
Simple terrain implementation with constant height of 50. More...
#include <ComponentTest.h>
Public Member Functions | |
virtual bool | IsLoaded () const |
virtual CFixedVector3D | CalcNormal (entity_pos_t x, entity_pos_t z) const |
virtual CVector3D | CalcExactNormal (float x, float z) const |
virtual entity_pos_t | GetGroundLevel (entity_pos_t x, entity_pos_t z) const |
virtual float | GetExactGroundLevel (float x, float z) const |
virtual u16 | GetTilesPerSide () const |
Returns number of tiles per side on the terrain. More... | |
virtual u16 | GetVerticesPerSide () const |
Returns number of vertices per side on the terrain. More... | |
virtual CTerrain * | GetCTerrain () |
virtual void | MakeDirty (i32 i0, i32 j0, i32 i1, i32 j1) |
Indicate that terrain tiles within the given region (inclusive lower bound, exclusive upper bound) have been changed. More... | |
virtual void | ReloadTerrain (bool ReloadWater) |
Call when the underlying CTerrain has been modified behind our backs. More... | |
Public Member Functions inherited from IComponent | |
virtual | ~IComponent () |
virtual void | Init (const CParamNode ¶mNode)=0 |
virtual void | Deinit ()=0 |
virtual void | HandleMessage (const CMessage &msg, bool global) |
CEntityHandle | GetEntityHandle () const |
void | SetEntityHandle (CEntityHandle ent) |
entity_id_t | GetEntityId () const |
CEntityHandle | GetSystemEntity () const |
const CSimContext & | GetSimContext () const |
void | SetSimContext (const CSimContext &context) |
virtual void | Serialize (ISerializer &serialize)=0 |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize)=0 |
virtual bool | NewJSObject (ScriptInterface &scriptInterface, JS::MutableHandleObject out) const |
Returns false by default, indicating that a scripted wrapper of this IComponent is not supported. More... | |
virtual JS::Value | GetJSInstance () const |
virtual int | GetComponentTypeId () const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from IComponent | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Simple terrain implementation with constant height of 50.
|
inlinevirtual |
Implements ICmpTerrain.
|
inlinevirtual |
Implements ICmpTerrain.
|
inlinevirtual |
Implements ICmpTerrain.
|
inlinevirtual |
Implements ICmpTerrain.
|
inlinevirtual |
Implements ICmpTerrain.
|
inlinevirtual |
Returns number of tiles per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
|
inlinevirtual |
Returns number of vertices per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
|
inlinevirtual |
Implements ICmpTerrain.
Indicate that terrain tiles within the given region (inclusive lower bound, exclusive upper bound) have been changed.
CMessageTerrainChanged will be sent to any components that care about terrain changes.
Implements ICmpTerrain.
|
inlinevirtual |
Call when the underlying CTerrain has been modified behind our backs.
(TODO: eventually we should manage the CTerrain in this class so nobody can modify it behind our backs).
Implements ICmpTerrain.