|
| | Location (MapCoords coords, Map *map, int viewmode, LocationContext ctx, TurnCompleter *turnCompleter, Location *prev) |
| |
| Std::vector< MapTile > | tilesAt (MapCoords coords, bool &focus) |
| |
| TileId | getReplacementTile (MapCoords atCoords, Tile const *forTile) |
| |
| int | getCurrentPosition (MapCoords *coords) |
| |
|
MoveResult | move (Direction dir, bool userEvent) |
| |
|
void | addObserver (Observer< Location *, MoveEvent & > *o) |
| |
|
int | countObservers () const |
| |
|
void | deleteObserver (Observer< Location *, MoveEvent & > *o) |
| |
|
void | deleteObservers () |
| |
|
bool | hasChanged () const |
| |
|
void | notifyObservers (MoveEvent & arg) |
| |
|
|
void | clearChanged () |
| |
|
void | setChanged () |
| |
◆ Location()
Add a new location to the stack, or start a new stack if 'prev' is nullptr
◆ tilesAt()
Return the entire stack of objects at the given location.
◆ getReplacementTile()
| TileId Ultima::Ultima4::Location::getReplacementTile |
( |
MapCoords |
atCoords, |
|
|
Tile const * |
forTile |
|
) |
| |
Finds a valid replacement tile for the given location, using surrounding tiles as guidelines to choose the new tile. The new tile will only be chosen if it is marked as a valid replacement (or waterReplacement) tile in tiles.xml. If a valid replacement cannot be found, it returns a "best guess" tile.
◆ getCurrentPosition()
| int Ultima::Ultima4::Location::getCurrentPosition |
( |
MapCoords * |
coords | ) |
|
Returns the current coordinates of the location given: If in combat - returns the coordinates of party member with focus If elsewhere - returns the coordinates of the avatar
The documentation for this class was generated from the following file: