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

#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 ()
 
Tileget (TileId id)
 
TilegetByName (const Common::String &name)
 
Common::String getImageName () const
 
uint numTiles () const
 
uint numFrames () const
 

Detailed Description

Tileset class

Member Function Documentation

◆ load()

void Ultima::Ultima4::Tileset::load ( const ConfigElement tilesetConf)

Loads a tileset.

◆ unload()

void Ultima::Ultima4::Tileset::unload ( )

Unload the current tileset

◆ get()

Tile* Ultima::Ultima4::Tileset::get ( TileId  id)

Returns the tile with the given id in the tileset

◆ getByName()

Tile* Ultima::Ultima4::Tileset::getByName ( const Common::String name)

Returns the tile with the given name from the tileset, if it exists

◆ getImageName()

Common::String Ultima::Ultima4::Tileset::getImageName ( ) const

Returns the image name for the tileset, if it exists

◆ numTiles()

uint Ultima::Ultima4::Tileset::numTiles ( ) const

Returns the number of tiles in the tileset

◆ numFrames()

uint Ultima::Ultima4::Tileset::numFrames ( ) const

Returns the total number of frames in the tileset


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