ITileLayer

Tile interface, defines common functions.

Members

Functions

addTile
void addTile(ABitmap tile, wchar id)

Adds a tile.

getMX
int getMX()

Returns the width of the mapping.

getMY
int getMY()

Returns the height of the mapping.

getMapping
MappingElement[] getMapping()
Undocumented in source.
getTX
int getTX()

Returns the total width of the tile layer.

getTY
int getTY()

Returns the total height of the tile layer.

getTileHeight
int getTileHeight()

Returns the height of the tiles.

getTileWidth
int getTileWidth()

Returns the width of the tiles.

loadMapping
void loadMapping(int x, int y, MappingElement[] mapping)

Loads the mapping, primarily used for deserialization.

readMapping
MappingElement readMapping(int x, int y)

Reads the mapping element from the given area.

removeTile
void removeTile(wchar id)

Removes the tile from the display list with the given ID.

tileByPixel
MappingElement tileByPixel(int x, int y)

Returns the tile ID from the location by pixel.

writeMapping
void writeMapping(int x, int y, MappingElement w)

Writes the given element into the mapping at the given location.

Meta