LPCGame
A Simple 2d Game Engine
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Tile Class Reference

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)
 

Detailed Description

A map tile.

Describes a simple map tile

Member Function Documentation

void Tile::Load ( Json::Value  val)
inline

Load the tile from a Json::Value

Parameters
valThe Json::Value to load from
Json::Value Tile::Save ( )
inline

Save the tile data to a json value

Returns
Json::Value containing the tile data

The documentation for this class was generated from the following file: