Logo
Classes | Public Member Functions | Public Attributes | Static Public Attributes | Events | List of all members
Yukar.Engine.Terrain Class Reference

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)
 
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
 

Detailed Description

Class for managing terrain meshes

Constructor & Destructor Documentation

◆ Terrain()

Yukar.Engine.Terrain.Terrain ( MapData  d)

Member Function Documentation

◆ clearTerrainSelection()

void Yukar.Engine.Terrain.clearTerrainSelection ( )

◆ deselectTerrain()

void Yukar.Engine.Terrain.deselectTerrain ( int  x,
int  z,
int  w,
int  h 
)

◆ destroy()

void Yukar.Engine.Terrain.destroy ( )

◆ getChipIndex()

int Yukar.Engine.Terrain.getChipIndex ( Common.Resource.MapChip  parts,
bool  autoAdd = true 
)

◆ getClusterBuilder()

MapClusterBuilder Yukar.Engine.Terrain.getClusterBuilder ( int  x,
int  z 
)

◆ getClusterByClusterIndex()

MapClusterBuilder Yukar.Engine.Terrain.getClusterByClusterIndex ( int  idxx,
int  idxz 
)

◆ getClusterDCount()

int Yukar.Engine.Terrain.getClusterDCount ( )

◆ getClusterHCount()

int Yukar.Engine.Terrain.getClusterHCount ( )

◆ GetDrawArea()

SharpKmyMath.Rectangle Yukar.Engine.Terrain.GetDrawArea ( )

◆ getMapTextures()

List< System.Drawing.Bitmap > Yukar.Engine.Terrain.getMapTextures ( )

◆ getTerrainSelectionColor()

uint Yukar.Engine.Terrain.getTerrainSelectionColor ( int  x,
int  z 
)

◆ getTerrainSelectionTexture()

SharpKmyGfx.Texture Yukar.Engine.Terrain.getTerrainSelectionTexture ( )

◆ hasCluster()

bool Yukar.Engine.Terrain.hasCluster ( )

◆ init()

void Yukar.Engine.Terrain.init ( bool  delayedSmoothing)

◆ initForSlice()

void Yukar.Engine.Terrain.initForSlice ( bool  delayedSmoothing,
int  minY,
int  maxY 
)

◆ invalidateAll()

void Yukar.Engine.Terrain.invalidateAll ( )

◆ reset()

void Yukar.Engine.Terrain.reset ( )

◆ scroll()

void Yukar.Engine.Terrain.scroll ( int  xdir,
int  zdir 
)

◆ setPhysics()

void Yukar.Engine.Terrain.setPhysics ( SharpKmyPhysics.PhysicsBase  p)

◆ setRom()

void Yukar.Engine.Terrain.setRom ( Common.Rom.Map  rom,
uint  displayID,
bool  toponly 
)

◆ setTerrainSelectionColor()

void Yukar.Engine.Terrain.setTerrainSelectionColor ( int  x,
int  z,
uint  color 
)

◆ terrainSelectionColorTextureUpdate()

void Yukar.Engine.Terrain.terrainSelectionColorTextureUpdate ( )

◆ update() [1/2]

void Yukar.Engine.Terrain.update ( )

◆ update() [2/2]

void Yukar.Engine.Terrain.update ( float  elapsed)

◆ updateGeom()

void Yukar.Engine.Terrain.updateGeom ( bool  all = true)

◆ updateGeomEnable()

void Yukar.Engine.Terrain.updateGeomEnable ( bool  flg)

◆ updateUndoGeometry()

void Yukar.Engine.Terrain.updateUndoGeometry ( int  x,
int  z,
int  w,
int  h 
)

Member Data Documentation

◆ chipSetInfo

ChipSetInfo Yukar.Engine.Terrain.chipSetInfo = new ChipSetInfo()

◆ COLOR_CLEAR

const uint Yukar.Engine.Terrain.COLOR_CLEAR = 0xff000000
static

◆ COLOR_EVENT_RANGE

const uint Yukar.Engine.Terrain.COLOR_EVENT_RANGE = 0x89000088
static

◆ geomUpdatable

bool Yukar.Engine.Terrain.geomUpdatable = true

◆ mapColTexture

SharpKmyGfx.Texture Yukar.Engine.Terrain.mapColTexture

◆ mapMskTexture

SharpKmyGfx.Texture Yukar.Engine.Terrain.mapMskTexture

◆ mapNrmTexture

SharpKmyGfx.Texture Yukar.Engine.Terrain.mapNrmTexture

◆ masktexture

SharpKmyGfx.Texture Yukar.Engine.Terrain.masktexture

◆ mClusterSize

int Yukar.Engine.Terrain.mClusterSize = 16

◆ physics

SharpKmyPhysics.PhysicsBase Yukar.Engine.Terrain.physics = null

◆ SelectionShaderNo

int Yukar.Engine.Terrain.SelectionShaderNo = 0
static

Event Documentation

◆ terrainSelectionChange

onTerrainSelectionChange Yukar.Engine.Terrain.terrainSelectionChange

◆ terrainUpdate

onTerrainUpdate Yukar.Engine.Terrain.terrainUpdate