Logo
クラス | 公開メンバ関数 | 公開変数類 | 静的公開変数類 | イベント | 全メンバ一覧
Yukar.Engine.Terrain クラス

地形メッシュを管理するためのクラス [詳解]

公開メンバ関数

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)
 

公開変数類

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
 

静的公開変数類

const uint COLOR_CLEAR = 0xff000000
 
const uint COLOR_EVENT_RANGE = 0x89000088
 
static int SelectionShaderNo = 0
 

イベント

onTerrainUpdate terrainUpdate
 
onTerrainSelectionChange terrainSelectionChange
 

詳解

地形メッシュを管理するためのクラス

構築子と解体子

◆ Terrain()

Yukar.Engine.Terrain.Terrain ( MapData  d)

メソッド詳解

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

メンバ詳解

◆ 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

イベント詳解

◆ terrainSelectionChange

onTerrainSelectionChange Yukar.Engine.Terrain.terrainSelectionChange

◆ terrainUpdate

onTerrainUpdate Yukar.Engine.Terrain.terrainUpdate