#include <tileset.h>
Public Member Functions | |
| TileSets () | |
| ~TileSets () | |
| void | loadAll () |
| void | unloadAll () |
| void | unloadAllImages () |
| Tileset * | get (const Common::String &name) |
| Tile * | findTileByName (const Common::String &name) |
| Tile * | findTileById (TileId id) |
Public Member Functions inherited from Common::HashMap< Common::String, Tileset *> | |
| HashMap () | |
| HashMap (const HM_t &map) | |
| ~HashMap () | |
| HM_t & | operator= (const HM_t &map) |
| bool | contains (const Common::String &key) const |
| Tileset * & | operator[] (const Common::String &key) |
| const Tileset * & | operator[] (const Common::String &key) const |
| Tileset * & | getOrCreateVal (const Common::String &key) |
| Tileset * & | getVal (const Common::String &key) |
| const Tileset * & | getVal (const Common::String &key) const |
| const Tileset * & | getValOrDefault (const Common::String &key) const |
| const Tileset * & | getValOrDefault (const Common::String &key, const Tileset * &defaultVal) const |
| bool | tryGetVal (const Common::String &key, Tileset * &out) const |
| void | setVal (const Common::String &key, const Tileset * &val) |
| void | clear (bool shrinkArray=0) |
| void | erase (iterator entry) |
| void | erase (const Common::String &key) |
| size_type | size () const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | find (const Common::String &key) |
| const_iterator | find (const Common::String &key) const |
| bool | empty () const |
Additional Inherited Members | |
Public Types inherited from Common::HashMap< Common::String, Tileset *> | |
| typedef uint | size_type |
| typedef IteratorImpl< Node > | iterator |
| typedef IteratorImpl< const Node > | const_iterator |
Tile sets container
| Ultima::Ultima4::TileSets::TileSets | ( | ) |
Constructor
| Ultima::Ultima4::TileSets::~TileSets | ( | ) |
Destructor
| void Ultima::Ultima4::TileSets::loadAll | ( | ) |
Loads all tilesets using the filename indicated by 'filename' as a definition
| void Ultima::Ultima4::TileSets::unloadAll | ( | ) |
Delete all tilesets
| void Ultima::Ultima4::TileSets::unloadAllImages | ( | ) |
Delete all tileset images
| Tileset* Ultima::Ultima4::TileSets::get | ( | const Common::String & | name | ) |
Returns the tileset with the given name, if it exists
| Tile* Ultima::Ultima4::TileSets::findTileByName | ( | const Common::String & | name | ) |
Returns the tile that has the given name from any tileset, if there is one