ScummVM API documentation
Ultima::Ultima4::InnController Class Reference
Inheritance diagram for Ultima::Ultima4::InnController:
Ultima::Ultima4::CombatController Ultima::Ultima4::Controller Ultima::Ultima4::Observer< Party *, PartyEvent &> Ultima::Ultima4::TurnCompleter

Public Member Functions

void begin () override
 
void awardLoot () override
 
- Public Member Functions inherited from Ultima::Ultima4::CombatController
 CombatController (CombatMap *m)
 
 CombatController (MapId id)
 
bool isCombatController () const override
 
void setActive () override
 
bool isCamping () const
 
bool isWinOrLose () const
 
Direction getExitDir () const
 
byte getFocus () const
 
CombatMapgetMap () const
 
CreaturegetCreature () const
 
PartyMemberVectorgetParty ()
 
PartyMembergetCurrentPlayer ()
 
void setExitDir (Direction d)
 
void setCreature (Creature *)
 
void setWinOrLose (bool worl=true)
 
void showCombatMessage (bool show=true)
 
virtual void init (Creature *m)
 
void initDungeonRoom (int room, Direction from)
 
void applyCreatureTileEffects ()
 
virtual void end (bool adjustKarma)
 
void fillCreatureTable (const Creature *creature)
 
int initialNumberOfCreatures (const Creature *creature) const
 
bool isWon () const
 
bool isLost () const
 
void moveCreatures ()
 
void placeCreatures ()
 
void placePartyMembers ()
 
bool setActivePlayer (int player)
 
bool attackHit (Creature *attacker, Creature *defender)
 
void attack (Direction dir=DIR_NONE, int distance=0)
 
bool attackAt (const Coords &coords, PartyMember *attacker, int dir, int range, int distance)
 
bool rangedAttack (const Coords &coords, Creature *attacker)
 
void rangedMiss (const Coords &coords, Creature *attacker)
 
bool returnWeaponToOwner (const Coords &coords, int distance, int dir, const Weapon *weapon)
 
void keybinder (KeybindingAction action) override
 
void finishTurn () override
 
void movePartyMember (MoveEvent &event)
 
void update (Party *party, PartyEvent &event) override
 
- Public Member Functions inherited from Ultima::Ultima4::Controller
 Controller (int timerInterval=1)
 
bool notifyKeyPressed (int key)
 
bool notifyMousePress (const Common::Point &mousePos)
 
int getTimerInterval ()
 
virtual bool keyPressed (int key)
 
virtual bool mousePressed (const Common::Point &mousePos)
 
virtual void timerFired ()
 
bool shouldQuit () const
 
- Public Member Functions inherited from Ultima::Ultima4::TurnCompleter
virtual void finishTurnAfterCombatEnds ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Ultima::Ultima4::CombatController
static void attackFlash (const Coords &coords, MapTile tile, int timeFactor)
 
static void attackFlash (const Coords &coords, const Common::String &tilename, int timeFactor)
 
static void doScreenAnimationsWhilePausing (int timeFactor)
 
- Static Public Member Functions inherited from Ultima::Ultima4::Controller
static void timerCallback (void *data)
 
- Protected Attributes inherited from Ultima::Ultima4::CombatController
CombatMap_map
 
PartyMemberVector _party
 
byte _focus
 
const Creature_creatureTable [16]
 
Creature_creature
 
bool _camping
 
bool _forceStandardEncounterSize
 
bool _placePartyOnMap
 
bool _placeCreaturesOnMap
 
bool _winOrLose
 
bool _showMessage
 
Direction _exitDir
 

Member Function Documentation

◆ begin()

void Ultima::Ultima4::InnController::begin ( )
overridevirtual

Begin combat

Reimplemented from Ultima::Ultima4::CombatController.


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