![]() |
|
Class for managing terrain meshes More...
Public Member Functions | |
| int | getClusterHCount () |
| int | getClusterDCount () |
| MapClusterBuilder | getClusterBuilder (int x, int z) |
| void | setPhysics (SharpKmyPhysics.PhysicsBase p) |
| SharpKmyGfx.Texture | getTerrainSelectionTexture () |
| Terrain (MapData d) | |
| void | setRom (Common.Rom.Map rom, uint displayID, bool toponly) |
| void | destroy () |
| void | updateUndoGeometry (int x, int z, int w, int h) |
| void | init (bool delayedSmoothing) |
| void | initForSlice (bool delayedSmoothing, int minY, int maxY) |
| void | invalidateAll () |
| void | update () |
| void | update (float elapsed) |
| void | reset () |
| bool | hasCluster () |
| MapClusterBuilder | getClusterByClusterIndex (int idxx, int idxz) |
| void | updateGeomEnable (bool flg) |
| void | updateGeom (bool all=true) |
| void | clearCollisions () |
| void | registerCollisions () |
| void | unregisterCollisions () |
| List< System.Drawing.Bitmap > | getMapTextures () |
| SharpKmyMath.Rectangle | GetDrawArea () |
| int | getChipIndex (Common.Resource.MapChip parts, bool autoAdd=true) |
| void | clearTerrainSelection () |
| void | setTerrainSelectionColor (int x, int z, uint color) |
| uint | getTerrainSelectionColor (int x, int z) |
| void | terrainSelectionColorTextureUpdate () |
| void | deselectTerrain (int x, int z, int w, int h) |
| void | scroll (int xdir, int zdir) |
Public Attributes | |
| int | mClusterSize = 16 |
| SharpKmyPhysics.PhysicsBase | physics = null |
| SharpKmyGfx.Texture | mapColTexture |
| SharpKmyGfx.Texture | mapNrmTexture |
| SharpKmyGfx.Texture | mapMskTexture |
| SharpKmyGfx.Texture | masktexture |
| ChipSetInfo | chipSetInfo = new ChipSetInfo() |
| bool | geomUpdatable = true |
Static Public Attributes | |
| const uint | COLOR_CLEAR = 0xff000000 |
| const uint | COLOR_EVENT_RANGE = 0x89000088 |
| static int | SelectionShaderNo = 0 |
Events | |
| onTerrainUpdate | terrainUpdate |
| onTerrainSelectionChange | terrainSelectionChange |
Class for managing terrain meshes
| Yukar.Engine.Terrain.Terrain | ( | MapData | d | ) |
| void Yukar.Engine.Terrain.clearCollisions | ( | ) |
| void Yukar.Engine.Terrain.clearTerrainSelection | ( | ) |
| void Yukar.Engine.Terrain.deselectTerrain | ( | int | x, |
| int | z, | ||
| int | w, | ||
| int | h | ||
| ) |
| void Yukar.Engine.Terrain.destroy | ( | ) |
| int Yukar.Engine.Terrain.getChipIndex | ( | Common.Resource.MapChip | parts, |
| bool | autoAdd = true |
||
| ) |
| MapClusterBuilder Yukar.Engine.Terrain.getClusterBuilder | ( | int | x, |
| int | z | ||
| ) |
| MapClusterBuilder Yukar.Engine.Terrain.getClusterByClusterIndex | ( | int | idxx, |
| int | idxz | ||
| ) |
| int Yukar.Engine.Terrain.getClusterDCount | ( | ) |
| int Yukar.Engine.Terrain.getClusterHCount | ( | ) |
| SharpKmyMath.Rectangle Yukar.Engine.Terrain.GetDrawArea | ( | ) |
| List< System.Drawing.Bitmap > Yukar.Engine.Terrain.getMapTextures | ( | ) |
| uint Yukar.Engine.Terrain.getTerrainSelectionColor | ( | int | x, |
| int | z | ||
| ) |
| SharpKmyGfx.Texture Yukar.Engine.Terrain.getTerrainSelectionTexture | ( | ) |
| bool Yukar.Engine.Terrain.hasCluster | ( | ) |
| void Yukar.Engine.Terrain.init | ( | bool | delayedSmoothing | ) |
| void Yukar.Engine.Terrain.initForSlice | ( | bool | delayedSmoothing, |
| int | minY, | ||
| int | maxY | ||
| ) |
| void Yukar.Engine.Terrain.invalidateAll | ( | ) |
| void Yukar.Engine.Terrain.registerCollisions | ( | ) |
| void Yukar.Engine.Terrain.reset | ( | ) |
| void Yukar.Engine.Terrain.scroll | ( | int | xdir, |
| int | zdir | ||
| ) |
| void Yukar.Engine.Terrain.setPhysics | ( | SharpKmyPhysics.PhysicsBase | p | ) |
| void Yukar.Engine.Terrain.setRom | ( | Common.Rom.Map | rom, |
| uint | displayID, | ||
| bool | toponly | ||
| ) |
| void Yukar.Engine.Terrain.setTerrainSelectionColor | ( | int | x, |
| int | z, | ||
| uint | color | ||
| ) |
| void Yukar.Engine.Terrain.terrainSelectionColorTextureUpdate | ( | ) |
| void Yukar.Engine.Terrain.unregisterCollisions | ( | ) |
| void Yukar.Engine.Terrain.update | ( | ) |
| void Yukar.Engine.Terrain.update | ( | float | elapsed | ) |
| void Yukar.Engine.Terrain.updateGeom | ( | bool | all = true | ) |
| void Yukar.Engine.Terrain.updateGeomEnable | ( | bool | flg | ) |
| void Yukar.Engine.Terrain.updateUndoGeometry | ( | int | x, |
| int | z, | ||
| int | w, | ||
| int | h | ||
| ) |
| ChipSetInfo Yukar.Engine.Terrain.chipSetInfo = new ChipSetInfo() |
|
static |
|
static |
| bool Yukar.Engine.Terrain.geomUpdatable = true |
| SharpKmyGfx.Texture Yukar.Engine.Terrain.mapColTexture |
| SharpKmyGfx.Texture Yukar.Engine.Terrain.mapMskTexture |
| SharpKmyGfx.Texture Yukar.Engine.Terrain.mapNrmTexture |
| SharpKmyGfx.Texture Yukar.Engine.Terrain.masktexture |
| int Yukar.Engine.Terrain.mClusterSize = 16 |
| SharpKmyPhysics.PhysicsBase Yukar.Engine.Terrain.physics = null |
|
static |
| onTerrainSelectionChange Yukar.Engine.Terrain.terrainSelectionChange |
| onTerrainUpdate Yukar.Engine.Terrain.terrainUpdate |