|
mTileSetMap | mTileSet |
|
mImageSetMap | mImageSet |
|
mTileSetMap::iterator | mTileSetBegin |
|
mTileSetMap::iterator | mTileSetEnd |
|
mImageSetMap::iterator | mImageSetBegin |
|
mImageSetMap::iterator | mImageSetEnd |
|
SDL_Texture * | lastTexture |
|
std::string | lastTextureName |
|
Tile | lastTile |
|
std::string | lastTileName |
|
TileSet::TileSet |
( |
const std::string & |
file | ) |
|
Setup the TileSet class, if a filename is passed load the image
- Parameters
-
- See Also
- Window::LoadTileSet for the loading function
void TileSet::Add |
( |
const std::string & |
file | ) |
|
|
virtual |
Adds an image to the tileset, and parses it's .json file into the tileset
- Parameters
-
file | The filename for the image |
mTileSetMap::iterator TileSet::Begin |
( |
| ) |
|
|
inline |
Returns the begining iterator of the tileset
- Returns
- iterator The beinging of the tileset.
Recti TileSet::Clip |
( |
const std::string & |
tile | ) |
|
|
virtual |
Gets the Recti (Box) that is associated with the passed tile name.
- Parameters
-
tile | The name of the tile in the tileset |
- Returns
- Recti A box for the associated iamge
mTileSetMap::iterator TileSet::End |
( |
| ) |
|
|
inline |
Returns the end iterator of the tileset
- Returns
- iterator The beinging of the tileset.
std::string TileSet::File |
( |
const std::string & |
tile | ) |
|
|
virtual |
Gets the filename of the image that is associated with the passed tile name.
- Parameters
-
tile | The name of the tile in the tileset |
- Returns
- Recti A box for the associated iamge
Load an image and its properties from a Json::Value into the tileset
- Parameters
-
Save the tileset data to a json value and return it
- Returns
- Json::Value containing the tilebar data
Returns the size of the tileset
- Returns
- int The size of the tileset
bool TileSet::Solid |
( |
const std::string & |
tile | ) |
|
|
virtual |
Gets the bool Solid property of the tile.
- Parameters
-
tile | The name of the tile in the tileset |
- Returns
- bool true/false for the solid state of a tile
SDL_Texture * TileSet::Texture |
( |
const std::string & |
tile | ) |
|
|
virtual |
Gets pointer to the SDL_Texture that is associated with the passed tile name.
- Parameters
-
tile | The name of the tile in the tileset |
- Returns
- SDL_Texture* A pointer to the associated iamge
The documentation for this class was generated from the following files:
- C:/Users/Will/Documents/Programs/LPCGame/src/core/tileset.h
- C:/Users/Will/Documents/Programs/LPCGame/src/core/tileset.cpp