ScummVM API documentation
Ultima::Shared::GameState Class Reference
Inheritance diagram for Ultima::Shared::GameState:
Ultima::Ultima1::GameState

Public Member Functions

 GameState (Game *game)
 
virtual ~GameState ()
 
virtual void setup ()
 
bool isPartyDead () const
 
bool isPartyFoodless () const
 

Public Attributes

Point _worldMapPos
 
CharacterArray _characters
 
Character_currentCharacter
 
Map_map
 
uint _gameId
 
VideoMode _videoMode
 
uint _dungeonExitHitPoints
 
uint32 _randomSeed
 

Protected Attributes

Game_game
 

Constructor & Destructor Documentation

◆ GameState()

Ultima::Shared::GameState::GameState ( Game game)

Constructor

◆ ~GameState()

virtual Ultima::Shared::GameState::~GameState ( )
virtual

Destructor

Reimplemented in Ultima::Ultima1::GameState.

Member Function Documentation

◆ setup()

virtual void Ultima::Shared::GameState::setup ( )
inlinevirtual

Setup the initial game state

Reimplemented in Ultima::Ultima1::GameState.

◆ isPartyDead()

bool Ultima::Shared::GameState::isPartyDead ( ) const

Returns true if the party is dead

◆ isPartyFoodless()

bool Ultima::Shared::GameState::isPartyFoodless ( ) const

Returns true if the party has no food

Member Data Documentation

◆ _worldMapPos

Point Ultima::Shared::GameState::_worldMapPos

Position in the world map. This is stored separately from the map so that the same point can be returned to when leaving locations

◆ _characters

CharacterArray Ultima::Shared::GameState::_characters

Characters in the party. In the earlier Ultima games, this is a single character

◆ _currentCharacter

Character* Ultima::Shared::GameState::_currentCharacter

Currently active character. In earlier Ultima games, this is the single party member

◆ _map

Map* Ultima::Shared::GameState::_map

Pointer to the map manager for the game

◆ _gameId

uint Ultima::Shared::GameState::_gameId

Game type Id

◆ _videoMode

VideoMode Ultima::Shared::GameState::_videoMode

Video mode

◆ _dungeonExitHitPoints

uint Ultima::Shared::GameState::_dungeonExitHitPoints

The number of hit points to generate when a dungeon is left

◆ _randomSeed

uint32 Ultima::Shared::GameState::_randomSeed

Stores the base random seed used for generating deterministic dungeon levels


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