ScummVM API documentation
Ultima::Ultima3::Logic Class Reference

#include <logic.h>

Inheritance diagram for Ultima::Ultima3::Logic:
Ultima::Ultima3::ChestLogic Ultima::Ultima3::CombatLogic Ultima::Ultima3::DungeonLogic Ultima::Ultima3::LocationLogic

Public Member Functions

void incrementMoveCounter (int amount=-1)
 
void processPartyTurnEffects (bool everyTurn)
 
bool damageCharacter (int slot, int amount)
 

Detailed Description

Game rules common to every location: the turn counter, and the upkeep of the party each turn

Member Function Documentation

◆ incrementMoveCounter()

void Ultima::Ultima3::Logic::incrementMoveCounter ( int  amount = -1)

Counts a turn taken by the party

Parameters
amountHow many moves to add, defaulting to one per party member

◆ processPartyTurnEffects()

void Ultima::Ultima3::Logic::processPartyTurnEffects ( bool  everyTurn)

Applies the effects of a turn passing on the party: magic point regeneration, hunger, poison and natural healing. Outside the overworld this only happens on every fourth turn

◆ damageCharacter()

bool Ultima::Ultima3::Logic::damageCharacter ( int  slot,
int  amount 
)

Reduces the hit points of a party member, killing them if they run out. Returns true if they were killed


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