LPCGame
A Simple 2d Game Engine
|
A map tile. More...
#include <tile.h>
Public Member Functions | |
Tile (Recti box, bool solid, const std::string name) | |
Tile (Json::Value val) | |
Recti | Box () const |
Get the tile's box. | |
bool | Solid () const |
Get the tile's solid value (T/F) | |
std::string | Name () const |
Get the tile's name. | |
std::string | Filename () const |
Get the tile's image location. | |
void | SetBox (Recti box) |
Set the tile's box. | |
void | SetSolid (bool solid) |
Set the tile's solid property. | |
void | SetName (const std::string name) |
Set the tile's name. | |
void | SetFilename (const std::string &file) |
Set the tile's name. | |
Json::Value | Save () |
void | Load (Json::Value val) |
A map tile.
Describes a simple map tile
|
inline |
Load the tile from a Json::Value
val | The Json::Value to load from |
|
inline |
Save the tile data to a json value