Added comments and cleaned up in Game.cpp/h

This commit is contained in:
stiffly
2016-01-14 15:32:53 +01:00
parent c916185a7c
commit b80ecc29d8
3 changed files with 9 additions and 15 deletions
+3 -7
View File
@@ -77,7 +77,8 @@ Game::Game(int argc, char* argv[])
//boost::thread workerThread(&Game::networkFunction, this);
networkFunction();
}
EVENT_SUBSCRIBE_MEMBER(m_EInputCommand, &Game::debugOnInputCommand);
// Invoke sound system
m_SoundSystem = new SoundSystem(m_World, m_EventBroker, m_Config->Get<bool>("Debug.EditorEnabled", false));
m_LastTime = glfwGetTime();
@@ -86,6 +87,7 @@ Game::Game(int argc, char* argv[])
Game::~Game()
{
delete m_SystemPipeline;
delete m_SoundSystem;
delete m_World;
delete m_FrameStack;
delete m_InputProxy;
@@ -122,7 +124,6 @@ void Game::Tick()
debugTick(dt);
m_Renderer->Update(dt);
m_EventBroker->Process<Client>();
m_EventBroker->Process<SoundSystem>();
m_SoundSystem->Update();
m_RenderQueueFactory->Update(m_World);
GLERROR("Game::Tick m_RenderQueueFactory->Update");
@@ -132,11 +133,6 @@ void Game::Tick()
m_EventBroker->Clear();
}
bool Game::debugOnInputCommand(const Events::InputCommand & e)
{
return true;
}
void Game::debugTick(double dt)
{
m_EventBroker->Process<Game>();