OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Game Class Reference

#include <Game.h>

Public Member Functions

 Game (PlatformApplication *application, std::shared_ptr< GameConfig > config)
 
 ~Game ()
 
int run ()
 

Private Member Functions

bool loop ()
 
void processQueuedMessages ()
 
void gameLoop ()
 
void closeTargetedSpellWindow ()
 
void onEscape ()
 
void onPressSpace ()
 

Private Attributes

PlatformApplication_application = nullptr
 
std::shared_ptr< GameConfig_config
 
std::unique_ptr< Menu_menu
 
DecalBuilder_decalBuilder = nullptr
 

Constructor & Destructor Documentation

◆ Game()

Game::Game ( PlatformApplication application,
std::shared_ptr< GameConfig config 
)

◆ ~Game()

Game::~Game ( )
default

Member Function Documentation

◆ closeTargetedSpellWindow()

void Game::closeTargetedSpellWindow ( )
private

◆ gameLoop()

void Game::gameLoop ( )
private

◆ loop()

bool Game::loop ( )
private

◆ onEscape()

void Game::onEscape ( )
private

◆ onPressSpace()

void Game::onPressSpace ( )
private

◆ processQueuedMessages()

void Game::processQueuedMessages ( )
private

◆ run()

int Game::run ( )

Member Data Documentation

◆ _application

PlatformApplication* Game::_application = nullptr
private

◆ _config

std::shared_ptr<GameConfig> Game::_config
private

◆ _decalBuilder

DecalBuilder* Game::_decalBuilder = nullptr
private

◆ _menu

std::unique_ptr<Menu> Game::_menu
private

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