ScummVM API documentation
Ultima::Ultima4::MapLoader Class Referenceabstract

#include <maploader.h>

Inheritance diagram for Ultima::Ultima4::MapLoader:
Ultima::Ultima4::CityMapLoader Ultima::Ultima4::ConMapLoader Ultima::Ultima4::DngMapLoader Ultima::Ultima4::WorldMapLoader Ultima::Ultima4::XMLMapLoader

Public Member Functions

virtual bool load (Map *map)=0
 

Static Protected Member Functions

static MapLoaderregisterLoader (MapLoader *loader, Map::Type type)
 
static bool loadData (Map *map, Common::SeekableReadStream &f)
 
static bool isChunkCompressed (Map *map, int chunk)
 

Detailed Description

The generic map loader interface. Map loaders should override the load method to load a map from the meta data already initialized in the map object passed in. They must also register themselves with registerLoader for one or more Map::Types.

  • Instead of loading dungeon room data into a u4dos-style structure and converting it to an xu4 Map when it's needed, convert it to an xu4 Map immediately upon loading it.

Member Function Documentation

◆ registerLoader()

static MapLoader* Ultima::Ultima4::MapLoader::registerLoader ( MapLoader loader,
Map::Type  type 
)
staticprotected

Registers a loader for the given map type.

◆ loadData()

static bool Ultima::Ultima4::MapLoader::loadData ( Map map,
Common::SeekableReadStream f 
)
staticprotected

Loads raw data from the given file.


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