xoreos  0.0.5
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Engines::Sonic::Game Class Reference

#include <game.h>

Collaboration diagram for Engines::Sonic::Game:
Collaboration graph
[legend]

Public Member Functions

 Game (SonicEngine &engine, ::Engines::Console &console)
 
 ~Game ()
 
ModulegetModule ()
 Return the module context. More...
 
void run ()
 

Private Member Functions

bool waitClick ()
 
bool showLicenseSplash ()
 
bool showTitle ()
 
bool showMainMenu ()
 
bool showQuote ()
 
bool showChapter1 ()
 
void runModule ()
 

Private Attributes

SonicEngine_engine
 
Common::ScopedPtr< Module_module
 
::Engines::Console_console
 
Graphics::Aurora::FontHandle _guiFont
 
Graphics::Aurora::FontHandle _quoteFont
 

Detailed Description

Definition at line 41 of file game.h.

Constructor & Destructor Documentation

◆ Game()

Engines::Sonic::Game::Game ( SonicEngine engine,
::Engines::Console console 
)

Definition at line 48 of file game.cpp.

References _engine, _guiFont, _quoteFont, Engines::Sonic::SonicEngine::getLanguage(), Aurora::kLanguageInvalid, Aurora::kLanguageJapanese, and Engines::Sonic::loadFont().

Here is the call graph for this function:

◆ ~Game()

Engines::Sonic::Game::~Game ( )

Definition at line 62 of file game.cpp.

Member Function Documentation

◆ getModule()

Module & Engines::Sonic::Game::getModule ( )

Return the module context.

Definition at line 65 of file game.cpp.

References _module.

Referenced by Engines::Sonic::Console::cmdGotoArea().

Here is the caller graph for this function:

◆ run()

void Engines::Sonic::Game::run ( )

Definition at line 71 of file game.cpp.

References _console, _module, runModule(), showChapter1(), showLicenseSplash(), showMainMenu(), showQuote(), and showTitle().

Here is the call graph for this function:

◆ runModule()

void Engines::Sonic::Game::runModule ( )
private

Definition at line 90 of file game.cpp.

References _module.

Referenced by run().

Here is the caller graph for this function:

◆ showChapter1()

bool Engines::Sonic::Game::showChapter1 ( )
private

◆ showLicenseSplash()

bool Engines::Sonic::Game::showLicenseSplash ( )
private

◆ showMainMenu()

bool Engines::Sonic::Game::showMainMenu ( )
private

◆ showQuote()

bool Engines::Sonic::Game::showQuote ( )
private

◆ showTitle()

bool Engines::Sonic::Game::showTitle ( )
private

◆ waitClick()

bool Engines::Sonic::Game::waitClick ( )
private

Definition at line 94 of file game.cpp.

References EventMan, and Events::kEventMouseUp.

Referenced by showChapter1(), showLicenseSplash(), showMainMenu(), showQuote(), and showTitle().

Here is the caller graph for this function:

Member Data Documentation

◆ _console

::Engines::Console* Engines::Sonic::Game::_console
private

Definition at line 56 of file game.h.

Referenced by run().

◆ _engine

SonicEngine* Engines::Sonic::Game::_engine
private

Definition at line 52 of file game.h.

Referenced by Game(), and showQuote().

◆ _guiFont

Graphics::Aurora::FontHandle Engines::Sonic::Game::_guiFont
private

Definition at line 58 of file game.h.

Referenced by Game(), and showMainMenu().

◆ _module

Common::ScopedPtr<Module> Engines::Sonic::Game::_module
private

Definition at line 54 of file game.h.

Referenced by getModule(), run(), and runModule().

◆ _quoteFont

Graphics::Aurora::FontHandle Engines::Sonic::Game::_quoteFont
private

Definition at line 59 of file game.h.

Referenced by Game(), and showQuote().


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