#include <map_dungeon.h>
Public Member Functions | |
MapDungeon (Ultima1Game *game, Ultima1Map *map) | |
void | synchronize (Common::Serializer &s) override |
void | load (Shared::Maps::MapId mapId) override |
void | getTileAt (const Point &pt, Shared::Maps::MapTile *tile, bool includePlayer=true) override |
bool | changeLevel (int delta) override |
uint | getLevel () const override |
void | update () override |
void | spawnMonster () |
void | spawnMonsterAt (const Point &pt) |
Widgets::DungeonMonster * | findCreatureInCurrentDirection (uint maxDistance=5) |
void | attack (int direction, int effectId) override |
void | attack (int direction, int effectId, uint maxDistance, uint amount, uint agility, const Common::String &hitWidget) override |
void | inform () override |
void | climb () override |
void | open () override |
void | unlock () override |
void | castSpell (uint spell) override |
Public Member Functions inherited from Ultima::Ultima1::Maps::MapBase | |
MapBase (Ultima1Game *game, Ultima1Map *map) | |
~MapBase () override | |
Shared::Maps::MapWidget * | createWidget (const Common::String &name) override |
virtual void | drop () |
virtual void | enter () |
virtual void | get () |
virtual void | hyperjump () |
virtual void | steal () |
virtual void | talk () |
virtual void | view () |
virtual void | disembark () |
virtual void | board () |
virtual void | cast () |
virtual void | dropCoins (uint coins) |
Public Member Functions inherited from Ultima::Shared::Maps::MapBase | |
MapBase (Game *game, Map *) | |
void | addWidget (MapWidget *widget) |
void | removeWidget (MapWidget *widget) |
virtual void | clear () |
virtual void | setTileAt (const Point &pt, uint tileId) |
void | resetViewport () |
virtual Point | getViewportPosition (const Point &viewportSize) |
virtual bool | isMapWrapped () const |
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 |
virtual Point | getDeltaPosition (const Point &delta) |
MapId | getMapId () const |
uint | getMapIndex () const |
uint | getMapStyle () const |
virtual void | shiftViewport (const Point &delta) |
Public Attributes | |
uint | _dungeonExitHitPoints |
Public Attributes inherited from Ultima::Shared::Maps::MapBase | |
Point | _size |
Point | _tilesPerOrigTile |
Common::String | _name |
MapWidget * | _playerWidget |
WidgetsArray | _widgets |
Additional Inherited Members | |
Protected Member Functions inherited from Ultima::Shared::Maps::MapBase | |
void | setDimensions (const Point &size) |
void | addInfoMsg (const Common::String &text, bool newLine=true, bool replaceLine=false) |
Protected Attributes inherited from Ultima::Ultima1::Maps::MapBase | |
Ultima1Game * | _game |
Protected Attributes inherited from Ultima::Shared::Maps::MapBase | |
MapId | _mapId |
uint | _mapIndex |
uint | _mapStyle |
ViewportPosition | _viewportPos |
Common::Array< MapCellsRow > | _data |
Implements the dungeon map
|
overridevirtual |
Handles loading and saving viewport
Reimplemented from Ultima::Shared::Maps::MapBase.
|
overridevirtual |
Load the map
Reimplemented from Ultima::Shared::Maps::MapBase.
|
overridevirtual |
Gets a tile at a given position
Reimplemented from Ultima::Ultima1::Maps::MapBase.
|
overridevirtual |
Changes the dungeon level by a given delta amount, and generates a new map
delta | Delta to change dungeon level by |
Reimplemented from Ultima::Shared::Maps::MapBase.
|
inlineoverridevirtual |
Get the current map level
Reimplemented from Ultima::Shared::Maps::MapBase.
|
overridevirtual |
Updates the map at the end of a turn
Reimplemented from Ultima::Shared::Maps::MapBase.
void Ultima::Ultima1::Maps::MapDungeon::spawnMonster | ( | ) |
Spawns a monster within dungeons
void Ultima::Ultima1::Maps::MapDungeon::spawnMonsterAt | ( | const Point & | pt | ) |
Spawns a monster at a given position in the dungeon map
Widgets::DungeonMonster* Ultima::Ultima1::Maps::MapDungeon::findCreatureInCurrentDirection | ( | uint | maxDistance = 5 | ) |
Find a monster in the current direction being faced
|
overridevirtual |
Perform an attack in a direction
direction | Direction |
effectId | Sound effect to play |
Reimplemented from Ultima::Ultima1::Maps::MapBase.
|
overridevirtual |
Perform an attack in a direction
direction | Direction |
effectId | Sound effect to play |
maxDistance | Maximum distance in the given direction |
amount | Damage amount |
agility | Agility threshold |
widgetNa |
Implements Ultima::Ultima1::Maps::MapBase.
|
overridevirtual |
Do an inform action
Reimplemented from Ultima::Ultima1::Maps::MapBase.
|
overridevirtual |
Do a climb action
Reimplemented from Ultima::Ultima1::Maps::MapBase.
|
overridevirtual |
Do an open action
Reimplemented from Ultima::Ultima1::Maps::MapBase.
|
inlineoverridevirtual |
Do an unlock action
Reimplemented from Ultima::Ultima1::Maps::MapBase.
|
overridevirtual |
Cast a specific spell
Reimplemented from Ultima::Ultima1::Maps::MapBase.