ScummVM
LastExpress::SceneManager Class Reference

#include <scenes.h>

+ Collaboration diagram for LastExpress::SceneManager:

Public Types

enum  CheckPositionType { kCheckPositionLookingUp, kCheckPositionLookingDown, kCheckPositionLookingAtDoors, kCheckPositionLookingAtClock }
 

Public Member Functions

 SceneManager (LastExpressEngine *engine)
 
 ~SceneManager ()
 
void loadSceneDataFile (ArchiveIndex archive)
 
Sceneget (SceneIndex sceneIndex)
 
void setScene (SceneIndex sceneIndex)
 
void loadScene (SceneIndex sceneIndex)
 
void loadSceneFromObject (ObjectIndex object, bool alternate=false)
 
void loadSceneFromItem (InventoryItem item)
 
void loadSceneFromItemPosition (InventoryItem item)
 
void loadSceneFromPosition (CarIndex car, Position position, int param3=-1)
 
void drawScene (SceneIndex sceneIndex)
 
void processScene ()
 
SceneIndex processIndex (SceneIndex sceneIndex)
 
bool checkPosition (SceneIndex sceneIndex, CheckPositionType type) const
 
bool checkCurrentPosition (bool doCheckOtherCars) const
 
void updateDoorsAndClock ()
 
void resetDoorsAndClock ()
 
void drawFrames (bool refreshScreen)
 
void addToQueue (SequenceFrame *const frame)
 
void removeFromQueue (SequenceFrame *frame)
 
void removeAndRedraw (SequenceFrame **frame, bool doRedraw)
 
void resetQueue ()
 
void setCoordinates (SequenceFrame *frame)
 
void setCoordinates (const Common::Rect &rect)
 
SceneIndex getSceneIndexFromPosition (CarIndex car, Position position, int param3=-1)
 
void setFlagDrawSequences ()
 

Private Member Functions

void preProcessScene (SceneIndex *index)
 
void postProcessScene ()
 
void resetCoordinates ()
 

Private Attributes

LastExpressEngine_engine
 
SceneLoader_sceneLoader
 Scene loader. More...
 
bool _flagNoEntity
 
bool _flagDrawEntities
 
bool _flagDrawSequences
 
bool _flagCoordinates
 
Common::Rect _coords
 
Common::List< SequenceFrame * > _doors
 
SequenceFrame_clockHours
 
SequenceFrame_clockMinutes
 
Common::List< SequenceFrame * > _queue
 

Detailed Description

Definition at line 38 of file scenes.h.

Member Enumeration Documentation

◆ CheckPositionType

Enumerator
kCheckPositionLookingUp 
kCheckPositionLookingDown 
kCheckPositionLookingAtDoors 
kCheckPositionLookingAtClock 

Definition at line 40 of file scenes.h.

Constructor & Destructor Documentation

◆ SceneManager()

LastExpress::SceneManager::SceneManager ( LastExpressEngine engine)

Definition at line 42 of file scenes.cpp.

◆ ~SceneManager()

LastExpress::SceneManager::~SceneManager ( )

Definition at line 48 of file scenes.cpp.

Member Function Documentation

◆ addToQueue()

void LastExpress::SceneManager::addToQueue ( SequenceFrame *const  frame)

Definition at line 668 of file scenes.cpp.

◆ checkCurrentPosition()

bool LastExpress::SceneManager::checkCurrentPosition ( bool  doCheckOtherCars) const

Definition at line 479 of file scenes.cpp.

◆ checkPosition()

bool LastExpress::SceneManager::checkPosition ( SceneIndex  sceneIndex,
CheckPositionType  type 
) const

Definition at line 453 of file scenes.cpp.

◆ drawFrames()

void LastExpress::SceneManager::drawFrames ( bool  refreshScreen)

Definition at line 649 of file scenes.cpp.

◆ drawScene()

void LastExpress::SceneManager::drawScene ( SceneIndex  sceneIndex)

Definition at line 250 of file scenes.cpp.

◆ get()

Scene* LastExpress::SceneManager::get ( SceneIndex  sceneIndex)
inline

Definition at line 52 of file scenes.h.

◆ getSceneIndexFromPosition()

SceneIndex LastExpress::SceneManager::getSceneIndexFromPosition ( CarIndex  car,
Position  position,
int  param3 = -1 
)

Definition at line 781 of file scenes.cpp.

◆ loadScene()

void LastExpress::SceneManager::loadScene ( SceneIndex  sceneIndex)

Definition at line 93 of file scenes.cpp.

◆ loadSceneDataFile()

void LastExpress::SceneManager::loadSceneDataFile ( ArchiveIndex  archive)

Definition at line 70 of file scenes.cpp.

◆ loadSceneFromItem()

void LastExpress::SceneManager::loadSceneFromItem ( InventoryItem  item)

Definition at line 166 of file scenes.cpp.

◆ loadSceneFromItemPosition()

void LastExpress::SceneManager::loadSceneFromItemPosition ( InventoryItem  item)

Definition at line 187 of file scenes.cpp.

◆ loadSceneFromObject()

void LastExpress::SceneManager::loadSceneFromObject ( ObjectIndex  object,
bool  alternate = false 
)

Definition at line 128 of file scenes.cpp.

◆ loadSceneFromPosition()

void LastExpress::SceneManager::loadSceneFromPosition ( CarIndex  car,
Position  position,
int  param3 = -1 
)

Definition at line 183 of file scenes.cpp.

◆ postProcessScene()

void LastExpress::SceneManager::postProcessScene ( )
private

Definition at line 1077 of file scenes.cpp.

◆ preProcessScene()

void LastExpress::SceneManager::preProcessScene ( SceneIndex index)
private

Definition at line 830 of file scenes.cpp.

◆ processIndex()

LastExpress::SceneIndex LastExpress::SceneManager::processIndex ( SceneIndex  sceneIndex)

Definition at line 316 of file scenes.cpp.

◆ processScene()

void LastExpress::SceneManager::processScene ( )

Definition at line 295 of file scenes.cpp.

◆ removeAndRedraw()

void LastExpress::SceneManager::removeAndRedraw ( SequenceFrame **  frame,
bool  doRedraw 
)

Definition at line 723 of file scenes.cpp.

◆ removeFromQueue()

void LastExpress::SceneManager::removeFromQueue ( SequenceFrame frame)

Definition at line 707 of file scenes.cpp.

◆ resetCoordinates()

void LastExpress::SceneManager::resetCoordinates ( )
private

Definition at line 769 of file scenes.cpp.

◆ resetDoorsAndClock()

void LastExpress::SceneManager::resetDoorsAndClock ( )

Definition at line 633 of file scenes.cpp.

◆ resetQueue()

void LastExpress::SceneManager::resetQueue ( )

Definition at line 735 of file scenes.cpp.

◆ setCoordinates() [1/2]

void LastExpress::SceneManager::setCoordinates ( const Common::Rect rect)

Definition at line 742 of file scenes.cpp.

◆ setCoordinates() [2/2]

void LastExpress::SceneManager::setCoordinates ( SequenceFrame frame)

Definition at line 758 of file scenes.cpp.

◆ setFlagDrawSequences()

void LastExpress::SceneManager::setFlagDrawSequences ( )
inline

Definition at line 87 of file scenes.h.

◆ setScene()

void LastExpress::SceneManager::setScene ( SceneIndex  sceneIndex)

Definition at line 236 of file scenes.cpp.

◆ updateDoorsAndClock()

void LastExpress::SceneManager::updateDoorsAndClock ( )

Definition at line 542 of file scenes.cpp.

Member Data Documentation

◆ _clockHours

SequenceFrame* LastExpress::SceneManager::_clockHours
private

Definition at line 103 of file scenes.h.

◆ _clockMinutes

SequenceFrame* LastExpress::SceneManager::_clockMinutes
private

Definition at line 104 of file scenes.h.

◆ _coords

Common::Rect LastExpress::SceneManager::_coords
private

Definition at line 99 of file scenes.h.

◆ _doors

Common::List<SequenceFrame *> LastExpress::SceneManager::_doors
private

Definition at line 102 of file scenes.h.

◆ _engine

LastExpressEngine* LastExpress::SceneManager::_engine
private

Definition at line 90 of file scenes.h.

◆ _flagCoordinates

bool LastExpress::SceneManager::_flagCoordinates
private

Definition at line 97 of file scenes.h.

◆ _flagDrawEntities

bool LastExpress::SceneManager::_flagDrawEntities
private

Definition at line 95 of file scenes.h.

◆ _flagDrawSequences

bool LastExpress::SceneManager::_flagDrawSequences
private

Definition at line 96 of file scenes.h.

◆ _flagNoEntity

bool LastExpress::SceneManager::_flagNoEntity
private

Definition at line 94 of file scenes.h.

◆ _queue

Common::List<SequenceFrame *> LastExpress::SceneManager::_queue
private

Definition at line 107 of file scenes.h.

◆ _sceneLoader

SceneLoader* LastExpress::SceneManager::_sceneLoader
private

Scene loader.

Definition at line 91 of file scenes.h.


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