tk2dRuntime.TileMap.Layer Class Reference

Layer. More...

List of all members.

Public Member Functions

int GetTile (int x, int y)
 Gets the tile at x, y.
tk2dTileFlags GetTileFlags (int x, int y)
 Gets the tile flags at x, y.
int GetRawTile (int x, int y)
 Gets the raw tile value at x, y.
void SetTile (int x, int y, int tile)
 Sets the tile at x, y - either a sprite Id or -1 if the tile is empty.
void SetTileFlags (int x, int y, tk2dTileFlags flags)
 Sets the tile flags at x, y - a combination of tk2dTileFlags.
void ClearTile (int x, int y)
 Clears the tile at x, y.
void SetRawTile (int x, int y, int rawTile)
 Sets the raw tile value at x, y.

Detailed Description


Member Function Documentation

void tk2dRuntime.TileMap.Layer.ClearTile ( int  x,
int  y 
)

Clears the tile at x, y.

int tk2dRuntime.TileMap.Layer.GetRawTile ( int  x,
int  y 
)

Gets the raw tile value at x, y.

Returns:
Either a combination of Tile and flags or -1 if the tile is empty
int tk2dRuntime.TileMap.Layer.GetTile ( int  x,
int  y 
)

Gets the tile at x, y.

Returns:
The tile - either a sprite Id or -1 if the tile is empty.
tk2dTileFlags tk2dRuntime.TileMap.Layer.GetTileFlags ( int  x,
int  y 
)

Gets the tile flags at x, y.

Returns:
The tile flags - a combination of tk2dTileFlags
void tk2dRuntime.TileMap.Layer.SetRawTile ( int  x,
int  y,
int  rawTile 
)

Sets the raw tile value at x, y.

Returns:
Either a combination of Tile and flags or -1 if the tile is empty
void tk2dRuntime.TileMap.Layer.SetTile ( int  x,
int  y,
int  tile 
)

Sets the tile at x, y - either a sprite Id or -1 if the tile is empty.

void tk2dRuntime.TileMap.Layer.SetTileFlags ( int  x,
int  y,
tk2dTileFlags  flags 
)

Sets the tile flags at x, y - a combination of tk2dTileFlags.