ScummVM API documentation
Ultima::Ultima1::Maps::Ultima1Map Class Reference

#include <map.h>

Inheritance diagram for Ultima::Ultima1::Maps::Ultima1Map:
Ultima::Shared::Maps::Map

Public Member Functions

 Ultima1Map (Ultima1Game *game)
 
 ~Ultima1Map () override
 
void clear () override
 
void load (Shared::Maps::MapId mapId) override
 
void synchronize (Common::Serializer &s) override
 
void board ()
 
void cast ()
 
void drop ()
 
void enter ()
 
void get ()
 
void hyperjump ()
 
void inform ()
 
void climb ()
 
void open ()
 
void steal ()
 
void talk ()
 
void unlock ()
 
void view ()
 
void disembark ()
 
void attack (int direction, int effectId)
 
void dropCoins (uint amount)
 
MapOverworldgetOverworldMap ()
 
- Public Member Functions inherited from Ultima::Shared::Maps::Map
 Map ()
 
virtual ~Map ()
 
MapWidgetcreateWidget (const Common::String &name)
 
void getTileAt (const Point &pt, MapTile *tile, bool includePlayer=true)
 
void setTileAt (const Point &pt, uint tileId)
 
Point getViewportPosition (const Point &viewportSize)
 
size_t width () const
 
size_t height () const
 
Point getPosition () const
 
void setPosition (const Point &pt)
 
Direction getDirection () const
 
void setDirection (Direction dir)
 
Point getDirectionDelta () const
 
Point getDeltaPosition (const Point &delta)
 
void shiftViewport (const Point &delta)
 
Point getTilesPerOrigTile () const
 
Common::String getName () const
 
MapWidgetgetPlayerWidget () const
 
bool changeLevel (int delta)
 
uint getLevel () const
 
bool isMapWrapped () const
 
void update ()
 
void castSpell (uint spellId)
 

Public Attributes

MapType _mapType
 
Point _worldPos
 
uint _moveCounter
 

Additional Inherited Members

- Protected Attributes inherited from Ultima::Shared::Maps::Map
MapBase_mapArea
 

Detailed Description

Ultima 1 map manager

Constructor & Destructor Documentation

◆ Ultima1Map()

Ultima::Ultima1::Maps::Ultima1Map::Ultima1Map ( Ultima1Game game)

Constructor

◆ ~Ultima1Map()

Ultima::Ultima1::Maps::Ultima1Map::~Ultima1Map ( )
override

Destructor

Member Function Documentation

◆ clear()

void Ultima::Ultima1::Maps::Ultima1Map::clear ( )
overridevirtual

Clears all map data

Reimplemented from Ultima::Shared::Maps::Map.

◆ load()

void Ultima::Ultima1::Maps::Ultima1Map::load ( Shared::Maps::MapId  mapId)
overridevirtual

Load a given map

Reimplemented from Ultima::Shared::Maps::Map.

◆ synchronize()

void Ultima::Ultima1::Maps::Ultima1Map::synchronize ( Common::Serializer s)
overridevirtual

Handles loading and saving the map's data

Reimplemented from Ultima::Shared::Maps::Map.

◆ dropCoins()

void Ultima::Ultima1::Maps::Ultima1Map::dropCoins ( uint  amount)

Handles dropping an amount of coins

◆ getOverworldMap()

MapOverworld* Ultima::Ultima1::Maps::Ultima1Map::getOverworldMap ( )
inline

Returns the overworld map


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