#include <tileset.h>
Public Types | |
| typedef Common::HashMap< TileId, Tile * > | TileIdMap |
| typedef Common::HashMap< Common::String, Tile * > | TileStrMap |
Public Member Functions | |
| void | load (const ConfigElement &tilesetConf) |
| void | unload () |
| void | unloadImages () |
| Tile * | get (TileId id) |
| Tile * | getByName (const Common::String &name) |
| Common::String | getImageName () const |
| uint | numTiles () const |
| uint | numFrames () const |
Tileset class
| void Ultima::Ultima4::Tileset::load | ( | const ConfigElement & | tilesetConf | ) |
Loads a tileset.
| void Ultima::Ultima4::Tileset::unload | ( | ) |
Unload the current tileset
| Tile* Ultima::Ultima4::Tileset::get | ( | TileId | id | ) |
Returns the tile with the given id in the tileset
| Tile* Ultima::Ultima4::Tileset::getByName | ( | const Common::String & | name | ) |
Returns the tile with the given name from the tileset, if it exists
| Common::String Ultima::Ultima4::Tileset::getImageName | ( | ) | const |
Returns the image name for the tileset, if it exists
| uint Ultima::Ultima4::Tileset::numTiles | ( | ) | const |
Returns the number of tiles in the tileset
| uint Ultima::Ultima4::Tileset::numFrames | ( | ) | const |
Returns the total number of frames in the tileset