xoreos  0.0.5
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::NWN::Tileset Class Reference

#include <tileset.h>

Collaboration diagram for Engines::NWN::Tileset:
Collaboration graph
[legend]

Classes

struct  Tile
 

Public Member Functions

 Tileset (const Common::UString &resRef)
 
 ~Tileset ()
 
const Common::UStringgetName () const
 
const Common::UStringgetEnvironmentMap () const
 
float getTilesHeight () const
 
const TilegetTile (size_t n) const
 

Private Member Functions

void load (const Common::ConfigFile &set)
 
void loadGeneral (const Common::ConfigDomain &general)
 
void loadTile (const Common::ConfigFile &set, uint i, Tile &tile)
 

Private Attributes

Common::UString _resRef
 
Common::UString _name
 
Common::UString _environmentMap
 
float _tilesHeight
 
std::vector< Tile_tiles
 

Detailed Description

Definition at line 42 of file tileset.h.

Constructor & Destructor Documentation

◆ Tileset()

Engines::NWN::Tileset::Tileset ( const Common::UString resRef)

Definition at line 40 of file tileset.cpp.

References Common::UString::c_str(), Aurora::kFileTypeSET, load(), Common::ConfigFile::load(), and ResMan.

Here is the call graph for this function:

◆ ~Tileset()

Engines::NWN::Tileset::~Tileset ( )

Definition at line 52 of file tileset.cpp.

Member Function Documentation

◆ getEnvironmentMap()

const Common::UString & Engines::NWN::Tileset::getEnvironmentMap ( ) const

Definition at line 59 of file tileset.cpp.

References _environmentMap.

◆ getName()

const Common::UString & Engines::NWN::Tileset::getName ( ) const

Definition at line 55 of file tileset.cpp.

References _name.

◆ getTile()

const Tileset::Tile & Engines::NWN::Tileset::getTile ( size_t  n) const

Definition at line 67 of file tileset.cpp.

References _tiles.

◆ getTilesHeight()

float Engines::NWN::Tileset::getTilesHeight ( ) const

Definition at line 63 of file tileset.cpp.

References _tilesHeight.

◆ load()

void Engines::NWN::Tileset::load ( const Common::ConfigFile set)
private

Definition at line 74 of file tileset.cpp.

References _tiles, Common::ConfigDomain::getUint(), loadGeneral(), and loadTile().

Referenced by Tileset().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadGeneral()

void Engines::NWN::Tileset::loadGeneral ( const Common::ConfigDomain general)
private

Definition at line 91 of file tileset.cpp.

References _environmentMap, _name, _tilesHeight, Common::ConfigDomain::getString(), Common::ConfigDomain::getUint(), Aurora::kStrRefInvalid, and TalkMan.

Referenced by load().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadTile()

void Engines::NWN::Tileset::loadTile ( const Common::ConfigFile set,
uint  i,
Tile tile 
)
private

Definition at line 98 of file tileset.cpp.

References Common::UString::c_str(), Common::UString::format(), Common::ConfigDomain::getString(), and Engines::NWN::Tileset::Tile::model.

Referenced by load().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _environmentMap

Common::UString Engines::NWN::Tileset::_environmentMap
private

Definition at line 62 of file tileset.h.

Referenced by getEnvironmentMap(), and loadGeneral().

◆ _name

Common::UString Engines::NWN::Tileset::_name
private

Definition at line 60 of file tileset.h.

Referenced by getName(), and loadGeneral().

◆ _resRef

Common::UString Engines::NWN::Tileset::_resRef
private

Definition at line 59 of file tileset.h.

◆ _tiles

std::vector<Tile> Engines::NWN::Tileset::_tiles
private

Definition at line 66 of file tileset.h.

Referenced by getTile(), and load().

◆ _tilesHeight

float Engines::NWN::Tileset::_tilesHeight
private

Definition at line 64 of file tileset.h.

Referenced by getTilesHeight(), and loadGeneral().


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