#include <tileset.h>
Public Member Functions | |
TileRules () | |
~TileRules () | |
void | load () |
TileRule * | findByName (const Common::String &name) |
Public Member Functions inherited from Common::HashMap< Key, Val, HashFunc, EqualFunc > | |
HashMap () | |
HashMap (const HM_t &map) | |
~HashMap () | |
HM_t & | operator= (const HM_t &map) |
bool | contains (const Key &key) const |
Val & | operator[] (const Key &key) |
const Val & | operator[] (const Key &key) const |
Val & | getOrCreateVal (const Key &key) |
Val & | getVal (const Key &key) |
const Val & | getVal (const Key &key) const |
const Val & | getValOrDefault (const Key &key) const |
const Val & | getValOrDefault (const Key &key, const Val &defaultVal) const |
bool | tryGetVal (const Key &key, Val &out) const |
void | setVal (const Key &key, const Val &val) |
void | clear (bool shrinkArray=0) |
void | erase (iterator entry) |
void | erase (const Key &key) |
size_type | size () const |
iterator | begin () |
iterator | end () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | find (const Key &key) |
const_iterator | find (const Key &key) const |
bool | empty () const |
Additional Inherited Members | |
Public Types inherited from Common::HashMap< Key, Val, HashFunc, EqualFunc > | |
typedef uint | size_type |
typedef IteratorImpl< Node > | iterator |
typedef IteratorImpl< const Node > | const_iterator |
Tile rules container
Ultima::Ultima4::TileRules::TileRules | ( | ) |
Constructor
Ultima::Ultima4::TileRules::~TileRules | ( | ) |
Destructor
void Ultima::Ultima4::TileRules::load | ( | ) |
Load tile information from xml.
TileRule* Ultima::Ultima4::TileRules::findByName | ( | const Common::String & | name | ) |
Returns the tile rule with the given name, or nullptr if none could be found