ScummVM API documentation
Ultima::Ultima2::Logic::DungeonLogic Class Reference

#include <dungeon_logic.h>

Inheritance diagram for Ultima::Ultima2::Logic::DungeonLogic:
Ultima::Ultima2::Logic::Logic

Public Member Functions

void entering () override
 
bool attack (Data::Direction dir) 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)
 

Protected Member Functions

void updateCreatures () override
 
bool castSpell (Data::SpellType spell) override
 
bool move (Data::Direction dir) override
 
bool descend () override
 
bool klimb () override
 
bool get () override
 
- 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 ()
 

Additional Inherited Members

- Protected Types inherited from Ultima::Ultima2::Logic::Logic
enum class  DirectionPurpose {
  ATTACK , FIRE , STEAL , UNLOCK ,
  OFFER , TRANSACT
}
 
- Protected Attributes inherited from Ultima::Ultima2::Logic::Logic
DirectionPurpose _directionPurpose = DirectionPurpose::ATTACK
 
bool _monstersSkipTurn = false
 

Detailed Description

Command handling inside a tower or dungeon: a first-person maze whose monsters live on individual levels, and whose movement is relative to the direction faced.

Member Function Documentation

◆ updateCreatures()

void Ultima::Ultima2::Logic::DungeonLogic::updateCreatures ( )
overrideprotectedvirtual

Handles updating creatures/NPCs

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ castSpell()

bool Ultima::Ultima2::Logic::DungeonLogic::castSpell ( Data::SpellType  spell)
overrideprotectedvirtual

Applies the effect of a spell that's just been cast

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ move()

bool Ultima::Ultima2::Logic::DungeonLogic::move ( Data::Direction  dir)
overrideprotectedvirtual

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ descend()

bool Ultima::Ultima2::Logic::DungeonLogic::descend ( )
overrideprotectedvirtual

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ klimb()

bool Ultima::Ultima2::Logic::DungeonLogic::klimb ( )
overrideprotectedvirtual

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ get()

bool Ultima::Ultima2::Logic::DungeonLogic::get ( )
overrideprotectedvirtual

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ entering()

void Ultima::Ultima2::Logic::DungeonLogic::entering ( )
inlineoverridevirtual

Entering counts as the turn's first, so monsters spawn and the surroundings are drawn straight away

Reimplemented from Ultima::Ultima2::Logic::Logic.

◆ attack()

bool Ultima::Ultima2::Logic::DungeonLogic::attack ( Data::Direction  dir)
overridevirtual

Reimplemented from Ultima::Ultima2::Logic::Logic.


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