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

#include <creature_logic.h>

Classes

struct  Breath
 

Public Member Functions

int creatureAt (int x, int y) const
 
int update (bool moved)
 
Common::Array< Breath > takeBreaths ()
 

Detailed Description

The movement of the creatures on a map: the monsters that roam the world and the people of the towns and castles

Member Function Documentation

◆ creatureAt()

int Ultima::Ultima3::CreatureLogic::creatureAt ( int  x,
int  y 
) const

Returns the creature standing at a position, or -1

◆ update()

int Ultima::Ultima3::CreatureLogic::update ( bool  moved)

Lets each creature take a turn, and may add a new monster to the world

Parameters
movedTrue if the party just moved, which matters when they're riding or sailing
Returns
The creature that has reached the party and so starts a fight, or -1

◆ takeBreaths()

Common::Array< Breath > Ultima::Ultima3::CreatureLogic::takeBreaths ( )
inline

Returns the attacks made during the last update, and forgets them


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