#include <space_logic.h>
Public Member Functions | |
| void | hyperwarpTo (int xeno, int yako, int zabo) |
| void | warpFinished () |
| void | action (int action) override |
| void | keypress (const Graphics::Views::KeypressMessage &msg) override |
Public Member Functions inherited from Ultima::Ultima2::Logic::Logic | |
| virtual void | action (int action) |
| virtual void | keypress (const Graphics::Views::KeypressMessage &msg) |
| virtual void | entering () |
| virtual bool | attack (Data::Direction dir=Data::DIR_UNSPECIFIED) |
| virtual bool | fire (Data::Direction dir=Data::DIR_UNSPECIFIED) |
| virtual bool | steal (Data::Direction dir=Data::DIR_UNSPECIFIED) |
| virtual bool | unlock (Data::Direction dir=Data::DIR_UNSPECIFIED) |
| virtual bool | offer (Data::Direction dir=Data::DIR_UNSPECIFIED) |
| virtual bool | transact (Data::Direction dir=Data::DIR_UNSPECIFIED) |
| void | resolveDirection (Data::Direction dir) |
| virtual void | completeOffer (int) |
| virtual void | completeStatBoost (int) |
| virtual void | tick () |
| bool | eatFood (int amount) |
| void | playerDied (bool showDied=true) |
| void | resumeTurn () |
| bool | trySpendGold (int amount) |
Static Public Member Functions | |
| static void | takeOff () |
| static void | resume () |
Additional Inherited Members | |
Protected Types inherited from Ultima::Ultima2::Logic::Logic | |
| enum class | DirectionPurpose { ATTACK , FIRE , STEAL , UNLOCK , OFFER , TRANSACT } |
Protected Member Functions inherited from Ultima::Ultima2::Logic::Logic | |
| void | writeString (const Common::String &msg) |
| void | writeString (const char *format,...) |
| void | prompt () |
| void | alertTownGuards (int extraSlot=-1) |
| void | redrawMap () |
| void | redrawStats () |
| int | getRandomNumber (int minNumber, int maxNumber) |
| int | getRandomNumber (int maxNumber) |
| byte | randByte () |
| void | showAttackTile (int x, int y) |
| void | playFX (Data::SoundEffect fx) |
| virtual void | endOfTurn () |
| virtual void | updateCreatures () |
| virtual bool | move (Data::Direction) |
| virtual bool | board () |
| virtual bool | cast () |
| virtual bool | castSpell (Data::SpellType spell) |
| virtual bool | descend () |
| virtual bool | enter () |
| virtual bool | get () |
| virtual bool | hyper () |
| virtual bool | igniteTorch () |
| virtual bool | jump () |
| virtual bool | klimb () |
| virtual bool | launch () |
| virtual bool | magic () |
| virtual bool | negateTime () |
| virtual bool | pass () |
| virtual bool | quit () |
| virtual bool | ready () |
| virtual bool | view () |
| virtual bool | wearArmor () |
| virtual bool | xit () |
| virtual bool | yell () |
| virtual bool | zstats () |
Protected Attributes inherited from Ultima::Ultima2::Logic::Logic | |
| DirectionPurpose | _directionPurpose = DirectionPurpose::ATTACK |
| bool | _monstersSkipTurn = false |
Command handling while flying a rocket between worlds. There's no turn structure: the ship can be steered, hyperwarped to a set of XENO/YAKO/ZABO coordinates, and landed when orbiting a world
|
static |
Takes off from the current world, switching to space flight
|
static |
Resumes flight after loading a save made mid-flight
| void Ultima::Ultima2::Logic::SpaceLogic::hyperwarpTo | ( | int | xeno, |
| int | yako, | ||
| int | zabo | ||
| ) |
Called with the coordinates the player chose to hyperwarp to
| void Ultima::Ultima2::Logic::SpaceLogic::warpFinished | ( | ) |
Called by the space view once a hyperwarp animation completes
|
overridevirtual |
Reimplemented from Ultima::Ultima2::Logic::Logic.
|
overridevirtual |
Reimplemented from Ultima::Ultima2::Logic::Logic.