ScummVM
LastExpress::Logic Class Reference

#include <logic.h>

+ Inheritance diagram for LastExpress::Logic:
+ Collaboration diagram for LastExpress::Logic:

Public Member Functions

 Logic (LastExpressEngine *engine)
 
 ~Logic () override
 
void eventMouse (const Common::Event &ev) override
 
void eventTick (const Common::Event &ev) override
 
void resetState ()
 Resets the game state. More...
 
void gameOver (SavegameType type, uint32 value, SceneIndex sceneIndex, bool showScene) const
 Handle game over. More...
 
void playFinalSequence () const
 
void updateCursor (bool redraw=true) const
 
ActiongetGameAction ()
 
BeetlegetGameBeetle ()
 
EntitiesgetGameEntities ()
 
FightgetGameFight ()
 
SaveLoadgetGameSaveLoad ()
 
StategetGameState ()
 
- Public Member Functions inherited from LastExpress::EventHandler
virtual ~EventHandler ()
 

Private Member Functions

void switchChapter () const
 
void showCredits () const
 
void redrawCursor () const
 

Private Attributes

LastExpressEngine_engine
 
Action_action
 Actions. More...
 
Beetle_beetle
 Beetle catching. More...
 
Entities_entities
 Entities. More...
 
Fight_fight
 Fight handling. More...
 
SaveLoad_saveload
 Save & loading. More...
 
State_state
 Game state. More...
 
bool _flagActionPerformed
 
bool _ignoreFrameInterval
 
int _ticksSinceLastSavegame
 

Friends

class Debugger
 

Additional Inherited Members

- Public Types inherited from LastExpress::EventHandler
typedef Common::Functor1< const Common::Event &, void > EventFunction
 

Detailed Description

Definition at line 44 of file logic.h.

Constructor & Destructor Documentation

◆ Logic()

LastExpress::Logic::Logic ( LastExpressEngine engine)

Definition at line 59 of file logic.cpp.

◆ ~Logic()

LastExpress::Logic::~Logic ( )
override

Definition at line 73 of file logic.cpp.

Member Function Documentation

◆ eventMouse()

void LastExpress::Logic::eventMouse ( const Common::Event ev)
overridevirtual

Reimplemented from LastExpress::EventHandler.

Definition at line 88 of file logic.cpp.

◆ eventTick()

void LastExpress::Logic::eventTick ( const Common::Event ev)
overridevirtual

Reimplemented from LastExpress::EventHandler.

Definition at line 296 of file logic.cpp.

◆ gameOver()

void LastExpress::Logic::gameOver ( SavegameType  type,
uint32  value,
SceneIndex  sceneIndex,
bool  showScene 
) const

Handle game over.

Parameters
typeThe savegame type.
valueThe value (event, time, index, ...)
sceneIndexIndex of the scene to show.
showScenetrue to show a scene, false to return to menu directly

Definition at line 421 of file logic.cpp.

◆ getGameAction()

Action* LastExpress::Logic::getGameAction ( )
inline

Definition at line 57 of file logic.h.

◆ getGameBeetle()

Beetle* LastExpress::Logic::getGameBeetle ( )
inline

Definition at line 58 of file logic.h.

◆ getGameEntities()

Entities* LastExpress::Logic::getGameEntities ( )
inline

Definition at line 59 of file logic.h.

◆ getGameFight()

Fight* LastExpress::Logic::getGameFight ( )
inline

Definition at line 60 of file logic.h.

◆ getGameSaveLoad()

SaveLoad* LastExpress::Logic::getGameSaveLoad ( )
inline

Definition at line 61 of file logic.h.

◆ getGameState()

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

Definition at line 62 of file logic.h.

◆ playFinalSequence()

void LastExpress::Logic::playFinalSequence ( ) const

Definition at line 489 of file logic.cpp.

◆ redrawCursor()

void LastExpress::Logic::redrawCursor ( ) const
private

Definition at line 592 of file logic.cpp.

◆ resetState()

void LastExpress::Logic::resetState ( )

Resets the game state.

Definition at line 404 of file logic.cpp.

◆ showCredits()

void LastExpress::Logic::showCredits ( ) const
private

Definition at line 502 of file logic.cpp.

◆ switchChapter()

void LastExpress::Logic::switchChapter ( ) const
private

Definition at line 449 of file logic.cpp.

◆ updateCursor()

void LastExpress::Logic::updateCursor ( bool  redraw = true) const

Definition at line 509 of file logic.cpp.

Friends And Related Function Documentation

◆ Debugger

friend class Debugger
friend

Definition at line 83 of file logic.h.

Member Data Documentation

◆ _action

Action* LastExpress::Logic::_action
private

Actions.

Definition at line 67 of file logic.h.

◆ _beetle

Beetle* LastExpress::Logic::_beetle
private

Beetle catching.

Definition at line 68 of file logic.h.

◆ _engine

LastExpressEngine* LastExpress::Logic::_engine
private

Definition at line 65 of file logic.h.

◆ _entities

Entities* LastExpress::Logic::_entities
private

Entities.

Definition at line 69 of file logic.h.

◆ _fight

Fight* LastExpress::Logic::_fight
private

Fight handling.

Definition at line 70 of file logic.h.

◆ _flagActionPerformed

bool LastExpress::Logic::_flagActionPerformed
private

Definition at line 79 of file logic.h.

◆ _ignoreFrameInterval

bool LastExpress::Logic::_ignoreFrameInterval
private

Definition at line 80 of file logic.h.

◆ _saveload

SaveLoad* LastExpress::Logic::_saveload
private

Save & loading.

Definition at line 71 of file logic.h.

◆ _state

State* LastExpress::Logic::_state
private

Game state.

Definition at line 72 of file logic.h.

◆ _ticksSinceLastSavegame

int LastExpress::Logic::_ticksSinceLastSavegame
private

Definition at line 81 of file logic.h.


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