|
virtual int | GetComponentTypeId () const |
|
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 () 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 | ReloadTerrain (bool ReloadWater) |
| 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 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 CVector3D CCmpTerrain::CalcExactNormal |
( |
float |
x, |
|
|
float |
z |
|
) |
| const |
|
inlinevirtual |
static void CCmpTerrain::Deallocate |
( |
IComponent * |
cmp | ) |
|
|
inlinestatic |
virtual void CCmpTerrain::Deinit |
( |
| ) |
|
|
inlinevirtual |
virtual int CCmpTerrain::GetComponentTypeId |
( |
| ) |
const |
|
inlinevirtual |
virtual CTerrain* CCmpTerrain::GetCTerrain |
( |
| ) |
|
|
inlinevirtual |
virtual float CCmpTerrain::GetExactGroundLevel |
( |
float |
x, |
|
|
float |
z |
|
) |
| const |
|
inlinevirtual |
static std::string CCmpTerrain::GetSchema |
( |
| ) |
|
|
inlinestatic |
virtual u16 CCmpTerrain::GetTilesPerSide |
( |
| ) |
const |
|
inlinevirtual |
Returns number of tiles per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
virtual u16 CCmpTerrain::GetVerticesPerSide |
( |
| ) |
const |
|
inlinevirtual |
Returns number of vertices per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
virtual void CCmpTerrain::Init |
( |
const CParamNode & |
paramNode | ) |
|
|
inlinevirtual |
virtual bool CCmpTerrain::IsLoaded |
( |
| ) |
const |
|
inlinevirtual |
virtual void CCmpTerrain::MakeDirty |
( |
i32 |
i0, |
|
|
i32 |
j0, |
|
|
i32 |
i1, |
|
|
i32 |
j1 |
|
) |
| |
|
inlinevirtual |
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.
virtual void CCmpTerrain::ReloadTerrain |
( |
bool |
ReloadWater | ) |
|
|
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.
virtual void CCmpTerrain::Serialize |
( |
ISerializer & |
serialize | ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: