Game: remove setup() method. do setup in run() instead.
This commit is contained in:
parent
d58c49421e
commit
2a1851efb5
2 changed files with 1 additions and 8 deletions
|
|
@ -40,8 +40,6 @@ protected :
|
||||||
|
|
||||||
private :
|
private :
|
||||||
|
|
||||||
void setup();
|
|
||||||
|
|
||||||
void gameLoop();
|
void gameLoop();
|
||||||
|
|
||||||
void processEvents();
|
void processEvents();
|
||||||
|
|
|
||||||
|
|
@ -30,16 +30,11 @@ Game::~Game()
|
||||||
delete m_messageHandler;
|
delete m_messageHandler;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Game::setup()
|
void Game::run()
|
||||||
{
|
{
|
||||||
m_graphics->init();
|
m_graphics->init();
|
||||||
|
|
||||||
init();
|
init();
|
||||||
}
|
|
||||||
|
|
||||||
void Game::run()
|
|
||||||
{
|
|
||||||
setup();
|
|
||||||
|
|
||||||
gameLoop();
|
gameLoop();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue