#include <game.h>
Public Member Functions | |
Game () | |
~Game () override | |
void | playFX (uint effectId) |
void | setEGAPalette (const byte *palette) |
void | setCGAPalette () |
Maps::Map * | getMap () const override |
void | synchronize (Common::Serializer &s) override |
void | endOfTurn () |
Public Member Functions inherited from Ultima::Shared::GameBase | |
GameBase () | |
~GameBase () override | |
void | onIdle () override |
void | mouseMove (const Point &mousePos) override |
void | leftButtonDown (const Point &mousePos) override |
void | leftButtonUp (const Point &mousePos) override |
void | middleButtonDown (const Point &mousePos) override |
void | middleButtonUp (const Point &mousePos) override |
void | rightButtonDown (const Point &mousePos) override |
void | rightButtonUp (const Point &mousePos) override |
void | mouseWheel (const Point &mousePos, bool wheelUp) override |
void | keyDown (Common::KeyState keyState) override |
virtual void | starting (bool isLoading) |
virtual bool | isVGA () const |
void | update () |
void | mouseChanged () |
void | setView (Gfx::VisualItem *view) |
void | setView (const Common::String &viewName) |
void | setPopup (Gfx::Popup *popup) |
Gfx::VisualItem * | getView () const |
void | setFont (Gfx::Font *font) |
Gfx::Font * | getFont () const |
uint | getRandomNumber (uint max) |
uint | getRandomNumber (uint min, uint max) |
void | sleep (uint time) |
uint32 | getMillis () const |
virtual bool | canLoadGameStateCurrently () |
virtual bool | canSaveGameStateCurrently () |
Public Member Functions inherited from Ultima::Shared::TreeItem | |
virtual const Common::String | getName () const |
virtual bool | isEquals (const Common::String &name, int maxLen=0) const |
virtual int | compareTo (const Common::String &name, int maxLen=0) const |
virtual void | viewChange () |
TreeItem * | getParent () const |
Game * | getGame () |
const Game * | getGame () const |
Gfx::VisualItem * | getView () |
TreeItem * | getNextSibling () const |
TreeItem * | getPriorSibling () const |
TreeItem * | getLastSibling () |
TreeItem * | getFirstChild () const |
TreeItem * | getLastChild () const |
TreeItem * | scan (TreeItem *item) const |
TreeItem * | findChildInstanceOf (const ClassDef &classDef) const |
TreeItem * | findNextInstanceOf (const ClassDef &classDef, TreeItem *startItem) const |
void | addUnder (TreeItem *newParent) |
void | addChild (TreeItem *child) |
void | setParent (TreeItem *newParent) |
void | addSibling (TreeItem *item) |
void | moveUnder (TreeItem *newParent) |
void | destroyAll () |
int | destroyChildren () |
void | detach () |
void | attach (TreeItem *item) |
NamedItem * | findByName (const Common::String &name) |
Public Member Functions inherited from Ultima::Shared::BaseObject | |
virtual ::Ultima::Shared::ClassDef | getType () const |
bool | isInstanceOf (const ClassDef &classDef) const |
Public Member Functions inherited from Ultima::Shared::EventTarget | |
virtual void | keyUp (Common::KeyState keyState) |
Public Attributes | |
byte | _edgeColor |
byte | _borderColor |
byte | _highlightColor |
byte | _textColor |
byte | _color1 |
byte | _bgColor |
byte | _whiteColor |
Party * | _party |
Maps::Map * | _map |
uint32 | _randomSeed |
CLASSDEF | |
Public Attributes inherited from Ultima::Shared::GameBase | |
Gfx::TextCursor * | _textCursor |
uint | _videoMode |
Public Attributes inherited from Ultima::Shared::TreeItem | |
CLASSDEF | |
Protected Member Functions | |
void | setEGAPalette () |
void | loadU6Palette () |
Protected Attributes | |
GameView * | _gameView |
FontResources * | _fontResources |
Protected Attributes inherited from Ultima::Shared::GameBase | |
uint32 | _priorLeftDownTime |
uint32 | _priorMiddleDownTime |
uint32 | _priorRightDownTime |
Gfx::VisualItem * | _currentView |
Gfx::Popup * | _pendingPopup |
InputHandler | _inputHandler |
InputTranslator | _inputTranslator |
Gfx::Font * | _font |
Additional Inherited Members | |
Static Public Member Functions inherited from Ultima::Shared::BaseObject | |
::Ultima::Shared::ClassDef | type () |
More specialized base class for earlier Ultima games
Ultima::Shared::Game::Game | ( | ) |
Constructor
|
override |
Destructor
|
protected |
Sets up EGA palette
|
protected |
Loads the Ultima 6 palette
void Ultima::Shared::Game::playFX | ( | uint | effectId | ) |
Play a sound effect
void Ultima::Shared::Game::setEGAPalette | ( | const byte * | palette | ) |
Sets an EGA palette based on a 16-byte EGA RGB indexes
void Ultima::Shared::Game::setCGAPalette | ( | ) |
Sets up a CGA palette
|
inlineoverridevirtual |
Returns the map
Reimplemented from Ultima::Shared::GameBase.
|
overridevirtual |
Handles loading and saving games
Reimplemented from Ultima::Shared::GameBase.
Reimplemented in Ultima::Ultima1::Ultima1Game.
void Ultima::Shared::Game::endOfTurn | ( | ) |
Signal an end of turn
Party* Ultima::Shared::Game::_party |
Player party. In the earlier Ultima games, this is a single character
Maps::Map* Ultima::Shared::Game::_map |
Pointer to the map manager for the game
uint32 Ultima::Shared::Game::_randomSeed |
Stores the base random seed used for generating deterministic dungeon levels