xoreos  0.0.5
Public Member Functions | Private Member Functions | List of all members
Engines::EngineManager Class Reference

The global engine manager. More...

#include <enginemanager.h>

Inheritance diagram for Engines::EngineManager:
Inheritance graph
[legend]
Collaboration diagram for Engines::EngineManager:
Collaboration graph
[legend]

Public Member Functions

GameInstanceprobeGame (const Common::UString &target, const std::list< const EngineProbe *> &probes) const
 Return a game instance capable of running the game in this directory. More...
 
void run (GameInstance &game) const
 Run this game instance. More...
 
void listLanguages (GameInstance &game) const
 List all available languages supported by this GameInstance's target. More...
 

Private Member Functions

void cleanup () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Common::Singleton< EngineManager >
static EngineManager & instance ()
 
static void destroy ()
 
- Protected Types inherited from Common::Singleton< EngineManager >
typedef EngineManager SingletonBaseType
 
- Protected Member Functions inherited from Common::Singleton< EngineManager >
 Singleton ()
 
virtual ~Singleton ()
 

Detailed Description

The global engine manager.

Definition at line 55 of file enginemanager.h.

Member Function Documentation

◆ cleanup()

void Engines::EngineManager::cleanup ( ) const
private

Definition at line 261 of file enginemanager.cpp.

References ConfigMan, CursorMan, FontMan, LangMan, MaterialMan, RequestMan, ResMan, SurfaceMan, TalkMan, TextureMan, TokenMan, TwoDAReg, and Engines::unregisterModelLoader().

Referenced by run().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ listLanguages()

void Engines::EngineManager::listLanguages ( GameInstance game) const

List all available languages supported by this GameInstance's target.

Definition at line 241 of file enginemanager.cpp.

References Engines::GameInstanceEngine::listLanguages().

Here is the call graph for this function:

◆ probeGame()

GameInstance * Engines::EngineManager::probeGame ( const Common::UString target,
const std::list< const EngineProbe *> &  probes 
) const

Return a game instance capable of running the game in this directory.

Definition at line 231 of file enginemanager.cpp.

References Common::ScopedPtrBase< T, Deallocator >::release().

Here is the call graph for this function:

◆ run()

void Engines::EngineManager::run ( GameInstance game) const

Run this game instance.

Definition at line 248 of file enginemanager.cpp.

References cleanup(), EventMan, GfxMan, and Engines::GameInstanceEngine::run().

Here is the call graph for this function:

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