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

#include <tileset.h>

Inheritance diagram for Ultima::Ultima4::TileRules:
Common::HashMap< Key, Val, HashFunc, EqualFunc >

Public Member Functions

 TileRules ()
 
 ~TileRules ()
 
void load ()
 
TileRulefindByName (const Common::String &name)
 
- Public Member Functions inherited from Common::HashMap< Key, Val, HashFunc, EqualFunc >
 HashMap ()
 
 HashMap (const HM_t &map)
 
 ~HashMap ()
 
HM_toperator= (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< Nodeiterator
 
typedef IteratorImpl< const Nodeconst_iterator
 

Detailed Description

Tile rules container

Constructor & Destructor Documentation

◆ TileRules()

Ultima::Ultima4::TileRules::TileRules ( )

Constructor

◆ ~TileRules()

Ultima::Ultima4::TileRules::~TileRules ( )

Destructor

Member Function Documentation

◆ load()

void Ultima::Ultima4::TileRules::load ( )

Load tile information from xml.

◆ findByName()

TileRule* Ultima::Ultima4::TileRules::findByName ( const Common::String name)

Returns the tile rule with the given name, or nullptr if none could be found


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