|
| | MapLayer (int x, int y, int width, int height, bool isFringeLayer, Map *map) |
| | Constructor, taking layer origin, size and whether this layer is the fringe layer.
|
| |
| | ~MapLayer () |
| |
| int | getWidth () const |
| |
| void | setTile (int x, int y, Image *img) |
| | Set tile image, with x and y in layer coordinates.
|
| |
| void | setTile (int index, Image *img) |
| | Set tile image with x + y * width already known.
|
| |
| Image * | getTile (int x, int y) const |
| | Get tile image, with x and y in layer coordinates.
|
| |
| void | draw (Graphics *graphics, int startX, int startY, int endX, int endY, int scrollX, int scrollY, const Actors &actors, int debugFlags) const |
| | Draws this layer to the given graphics context.
|
| |
| bool | isFringeLayer () const |
| |
| int | getTileDrawWidth (int x1, int y1, int endX, int &width) const |
| |
| void | setMask (int mask) |
| |
| int | getMask () const |
| |
A map layer.
Stores a grid of tiles and their offset, and implements layer rendering.
Definition at line 80 of file map.h.