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

The game thread, running all game logic. More...

#include <gamethread.h>

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

Public Member Functions

 GameThread ()
 
 ~GameThread ()
 
void init (const Common::UString &baseDir, const std::list< const EngineProbe *> &probes)
 
void run ()
 
- Public Member Functions inherited from Common::Thread
 Thread ()
 
virtual ~Thread ()
 
bool createThread (const UString &name="")
 
bool destroyThread ()
 

Private Member Functions

void threadMethod ()
 

Private Attributes

Common::ScopedPtr< GameInstance_game
 

Additional Inherited Members

- Protected Attributes inherited from Common::Thread
boost::atomic< bool > _killThread
 

Detailed Description

The game thread, running all game logic.

Definition at line 39 of file gamethread.h.

Constructor & Destructor Documentation

◆ GameThread()

Engines::GameThread::GameThread ( )

Definition at line 43 of file gamethread.cpp.

◆ ~GameThread()

Engines::GameThread::~GameThread ( )

Definition at line 46 of file gamethread.cpp.

References Common::Thread::destroyThread().

Here is the call graph for this function:

Member Function Documentation

◆ init()

void Engines::GameThread::init ( const Common::UString baseDir,
const std::list< const EngineProbe *> &  probes 
)

Definition at line 50 of file gamethread.cpp.

References _game, ConfigMan, EngineMan, Version::getProjectName(), status(), and WindowMan.

Referenced by main().

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

◆ run()

void Engines::GameThread::run ( )

Definition at line 68 of file gamethread.cpp.

References _game, ConfigMan, Common::Thread::createThread(), EngineMan, and EventMan.

Referenced by main().

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

◆ threadMethod()

void Engines::GameThread::threadMethod ( )
privatevirtual

Implements Common::Thread.

Definition at line 83 of file gamethread.cpp.

References _game, EngineMan, EventMan, and Common::exceptionDispatcherError().

Here is the call graph for this function:

Member Data Documentation

◆ _game

Common::ScopedPtr<GameInstance> Engines::GameThread::_game
private

Definition at line 49 of file gamethread.h.

Referenced by init(), run(), and threadMethod().


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