#include <dungeon_logic.h>
Public Types | |
| enum | Ladder { LADDER_NONE , LADDER_TAKEN , LADDER_OUT } |
Public Member Functions | |
| byte | tile () const |
| bool | moveForward () |
| bool | moveBackward () |
| bool | turn (bool right) |
| Ladder | climb () |
| bool | descend () |
| int | rollEncounter () |
| void | teleportRandomly () |
Public Member Functions inherited from Ultima::Ultima3::Logic | |
| void | incrementMoveCounter (int amount=-1) |
| void | processPartyTurnEffects (bool everyTurn) |
| bool | damageCharacter (int slot, int amount) |
Rules for moving the party around a dungeon
| byte Ultima::Ultima3::DungeonLogic::tile | ( | ) | const |
Returns the square the party is on
| bool Ultima::Ultima3::DungeonLogic::moveForward | ( | ) |
Moves the party a step forward or backward, if they can
| bool Ultima::Ultima3::DungeonLogic::turn | ( | bool | right | ) |
Turns the party a quarter turn, if they can
| Ladder Ultima::Ultima3::DungeonLogic::climb | ( | ) |
Climbs up a ladder. If this was from the first level it takes the party out of the dungeon
| bool Ultima::Ultima3::DungeonLogic::descend | ( | ) |
Goes down a ladder, if there's one
| int Ultima::Ultima3::DungeonLogic::rollEncounter | ( | ) |
Sometimes monsters are met on an empty square
| void Ultima::Ultima3::DungeonLogic::teleportRandomly | ( | ) |
Moves the party to a random empty square on the level