ScummVM API documentation
Ultima::Ultima4::TileSets Class Reference

#include <tileset.h>

Inheritance diagram for Ultima::Ultima4::TileSets:
Common::HashMap< Common::String, Tileset *>

Public Member Functions

 TileSets ()
 
 ~TileSets ()
 
void loadAll ()
 
void unloadAll ()
 
void unloadAllImages ()
 
Tilesetget (const Common::String &name)
 
TilefindTileByName (const Common::String &name)
 
TilefindTileById (TileId id)
 
- Public Member Functions inherited from Common::HashMap< Common::String, Tileset *>
 HashMap ()
 
 HashMap (const HM_t &map)
 
 ~HashMap ()
 
HM_toperator= (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< Nodeiterator
 
typedef IteratorImpl< const Nodeconst_iterator
 

Detailed Description

Tile sets container

Constructor & Destructor Documentation

◆ TileSets()

Ultima::Ultima4::TileSets::TileSets ( )

Constructor

◆ ~TileSets()

Ultima::Ultima4::TileSets::~TileSets ( )

Destructor

Member Function Documentation

◆ loadAll()

void Ultima::Ultima4::TileSets::loadAll ( )

Loads all tilesets using the filename indicated by 'filename' as a definition

◆ unloadAll()

void Ultima::Ultima4::TileSets::unloadAll ( )

Delete all tilesets

◆ unloadAllImages()

void Ultima::Ultima4::TileSets::unloadAllImages ( )

Delete all tileset images

◆ get()

Tileset* Ultima::Ultima4::TileSets::get ( const Common::String name)

Returns the tileset with the given name, if it exists

◆ findTileByName()

Tile* Ultima::Ultima4::TileSets::findTileByName ( const Common::String name)

Returns the tile that has the given name from any tileset, if there is one


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