Pyrogenesis
13997
|
Public Member Functions | |
virtual void | Init (const CParamNode ¶mNode) |
virtual void | Deinit () |
virtual void | Serialize (ISerializer &serialize) |
virtual void | Deserialize (const CParamNode ¶mNode, IDeserializer &deserialize) |
virtual bool | IsLoaded () |
virtual CFixedVector3D | CalcNormal (entity_pos_t x, entity_pos_t z) |
virtual CVector3D | CalcExactNormal (float x, float z) |
virtual entity_pos_t | GetGroundLevel (entity_pos_t x, entity_pos_t z) |
virtual float | GetExactGroundLevel (float x, float z) |
virtual u16 | GetTilesPerSide () |
Returns number of tiles per side on the terrain. More... | |
virtual u16 | GetVerticesPerSide () |
Returns number of vertices per side on the terrain. More... | |
virtual CTerrain * | GetCTerrain () |
virtual void | ReloadTerrain () |
Call when the underlying CTerrain has been modified behind our backs. More... | |
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 | ~IComponent () |
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 JSClass * | GetJSClass () const |
virtual jsval | GetJSInstance () const |
Static Public Member Functions | |
static void | ClassInit (CComponentManager &componentManager) |
static IComponent * | Allocate (ScriptInterface &, jsval) |
static void | Deallocate (IComponent *cmp) |
static std::string | GetSchema () |
![]() | |
static std::string | GetSchema () |
static u8 | GetSerializationVersion () |
Public Attributes | |
CTerrain * | m_Terrain |
Definition at line 32 of file CCmpTerrain.cpp.
|
inlinestatic |
Definition at line 39 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements ICmpTerrain.
Definition at line 78 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements ICmpTerrain.
Definition at line 71 of file CCmpTerrain.cpp.
|
inlinestatic |
Definition at line 35 of file CCmpTerrain.cpp.
|
inlinestatic |
Definition at line 39 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 53 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 61 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements ICmpTerrain.
Definition at line 109 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements ICmpTerrain.
Definition at line 90 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements ICmpTerrain.
Definition at line 83 of file CCmpTerrain.cpp.
|
inlinestatic |
Definition at line 43 of file CCmpTerrain.cpp.
|
inlinevirtual |
Returns number of tiles per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
Definition at line 95 of file CCmpTerrain.cpp.
|
inlinevirtual |
Returns number of vertices per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
Definition at line 102 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 48 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements ICmpTerrain.
Definition at line 66 of file CCmpTerrain.cpp.
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.
Definition at line 144 of file CCmpTerrain.cpp.
|
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.
Definition at line 114 of file CCmpTerrain.cpp.
|
inlinevirtual |
Implements IComponent.
Definition at line 57 of file CCmpTerrain.cpp.
CTerrain* CCmpTerrain::m_Terrain |
Definition at line 41 of file CCmpTerrain.cpp.