|
| Layer () |
| Construct an empty layer. More...
|
|
void | create (unsigned int width, unsigned int height, const T &val=T()) |
| Clears all stored data (if any) and creates the layer with the given size. More...
|
|
unsigned int | width () const |
| Returns the width of the layer in tiles. More...
|
|
unsigned int | height () const |
| Returns the height of the layer in tiles. More...
|
|
const T & | get (unsigned int x, unsigned int y) const |
| Returns the object in the layer at the given position. More...
|
|
T & | getRef (unsigned int x, unsigned int y) |
| Returns the object in the layer at the given position. More...
|
|
void | set (unsigned int x, unsigned int y, const T &value) |
| Sets the object in the layer at the position to the given value. More...
|
|
template<typename T>
class core::map::Layer< T >
Generic map layer class. Can be used for any type of layer.
- Template Parameters
-
T | The underlying type representing an object in the layer |
Definition at line 21 of file Layer.hpp.