Simple terrain implementation with constant height of 50. More...
#include <ComponentTest.h>
Public Member Functions | |
| virtual bool | IsLoaded () |
| virtual CFixedVector3D | CalcNormal (entity_pos_t x, entity_pos_t 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. | |
| virtual u16 | GetVerticesPerSide () |
| Returns number of vertices per side on the terrain. | |
| 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. | |
| virtual void | ReloadTerrain () |
| Call when the underlying CTerrain has been modified behind our backs. | |
Simple terrain implementation with constant height of 50.
| virtual CFixedVector3D MockTerrain::CalcNormal | ( | entity_pos_t | x, | |
| entity_pos_t | z | |||
| ) | [inline, virtual] |
Implements ICmpTerrain.
| virtual CTerrain* MockTerrain::GetCTerrain | ( | ) | [inline, virtual] |
Implements ICmpTerrain.
| virtual float MockTerrain::GetExactGroundLevel | ( | float | x, | |
| float | z | |||
| ) | [inline, virtual] |
Implements ICmpTerrain.
| virtual entity_pos_t MockTerrain::GetGroundLevel | ( | entity_pos_t | x, | |
| entity_pos_t | z | |||
| ) | [inline, virtual] |
Implements ICmpTerrain.
| virtual u16 MockTerrain::GetTilesPerSide | ( | ) | [inline, virtual] |
Returns number of tiles per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
| virtual u16 MockTerrain::GetVerticesPerSide | ( | ) | [inline, virtual] |
Returns number of vertices per side on the terrain.
Return value is always non-zero.
Implements ICmpTerrain.
| virtual bool MockTerrain::IsLoaded | ( | ) | [inline, virtual] |
Implements ICmpTerrain.
| virtual void MockTerrain::MakeDirty | ( | i32 | i0, | |
| i32 | j0, | |||
| i32 | i1, | |||
| i32 | j1 | |||
| ) | [inline, virtual] |
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 MockTerrain::ReloadTerrain | ( | ) | [inline, virtual] |
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.
1.6.3