ScummVM
LastExpress::State Class Reference

#include <state.h>

+ Collaboration diagram for LastExpress::State:

Classes

struct  Flags
 
struct  GameProgress
 
struct  GameState
 

Public Member Functions

 State (LastExpressEngine *engine)
 
 ~State ()
 
void reset ()
 
InventorygetGameInventory ()
 
ObjectsgetGameObjects ()
 
SavePointsgetGameSavePoints ()
 
GameStategetGameState ()
 
FlagsgetGameFlags ()
 
bool isNightTime () const
 
int getTimer ()
 
void setTimer (int val)
 
void setCoordinates (Common::Point coords)
 
const Common::Point getCoordinates ()
 

Static Public Member Functions

static uint32 getPowerOfTwo (uint32 x)
 
static void getHourMinutes (uint32 time, uint8 *hours, uint8 *minutes)
 

Private Attributes

LastExpressEngine_engine
 
int _timer
 
Flags_flags
 Flags. More...
 
Inventory_inventory
 Inventory. More...
 
Objects_objects
 Objects. More...
 
SavePoints_savepoints
 SavePoints. More...
 
GameState_state
 State. More...
 
Common::Point _coords
 Current coordinates. More...
 

Static Private Attributes

static const uint32 _defaultBrigthness = 3
 
static const uint32 _defaultVolume = 7
 
static const uint32 _defaultTimeDelta = 3
 
static const uint32 _defaultPortrait = 32
 

Detailed Description

Definition at line 41 of file state.h.

Constructor & Destructor Documentation

◆ State()

LastExpress::State::State ( LastExpressEngine engine)

Definition at line 33 of file state.cpp.

◆ ~State()

LastExpress::State::~State ( )

Definition at line 41 of file state.cpp.

Member Function Documentation

◆ getCoordinates()

const Common::Point LastExpress::State::getCoordinates ( )
inline

Definition at line 652 of file state.h.

◆ getGameFlags()

Flags* LastExpress::State::getGameFlags ( )
inline

Definition at line 641 of file state.h.

◆ getGameInventory()

Inventory* LastExpress::State::getGameInventory ( )
inline

Definition at line 637 of file state.h.

◆ getGameObjects()

Objects* LastExpress::State::getGameObjects ( )
inline

Definition at line 638 of file state.h.

◆ getGameSavePoints()

SavePoints* LastExpress::State::getGameSavePoints ( )
inline

Definition at line 639 of file state.h.

◆ getGameState()

GameState* LastExpress::State::getGameState ( )
inline

Definition at line 640 of file state.h.

◆ getHourMinutes()

void LastExpress::State::getHourMinutes ( uint32  time,
uint8 hours,
uint8 minutes 
)
static

Definition at line 70 of file state.cpp.

◆ getPowerOfTwo()

uint32 LastExpress::State::getPowerOfTwo ( uint32  x)
static

Definition at line 78 of file state.cpp.

◆ getTimer()

int LastExpress::State::getTimer ( )
inline

Definition at line 647 of file state.h.

◆ isNightTime()

bool LastExpress::State::isNightTime ( ) const

Definition at line 64 of file state.cpp.

◆ reset()

void LastExpress::State::reset ( )

Definition at line 52 of file state.cpp.

◆ setCoordinates()

void LastExpress::State::setCoordinates ( Common::Point  coords)
inline

Definition at line 651 of file state.h.

◆ setTimer()

void LastExpress::State::setTimer ( int  val)
inline

Definition at line 648 of file state.h.

Member Data Documentation

◆ _coords

Common::Point LastExpress::State::_coords
private

Current coordinates.

Definition at line 674 of file state.h.

◆ _defaultBrigthness

const uint32 LastExpress::State::_defaultBrigthness = 3
staticprivate

Definition at line 659 of file state.h.

◆ _defaultPortrait

const uint32 LastExpress::State::_defaultPortrait = 32
staticprivate

Definition at line 662 of file state.h.

◆ _defaultTimeDelta

const uint32 LastExpress::State::_defaultTimeDelta = 3
staticprivate

Definition at line 661 of file state.h.

◆ _defaultVolume

const uint32 LastExpress::State::_defaultVolume = 7
staticprivate

Definition at line 660 of file state.h.

◆ _engine

LastExpressEngine* LastExpress::State::_engine
private

Definition at line 664 of file state.h.

◆ _flags

Flags* LastExpress::State::_flags
private

Flags.

Definition at line 669 of file state.h.

◆ _inventory

Inventory* LastExpress::State::_inventory
private

Inventory.

Definition at line 670 of file state.h.

◆ _objects

Objects* LastExpress::State::_objects
private

Objects.

Definition at line 671 of file state.h.

◆ _savepoints

SavePoints* LastExpress::State::_savepoints
private

SavePoints.

Definition at line 672 of file state.h.

◆ _state

GameState* LastExpress::State::_state
private

State.

Definition at line 673 of file state.h.

◆ _timer

int LastExpress::State::_timer
private

Definition at line 667 of file state.h.


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