|
|
@ -66,8 +66,12 @@ Game::Game() { |
|
|
|
for (auto & spec : spectators) |
|
|
|
for (auto & spec : spectators) |
|
|
|
Game::eventQueue->registerListener(&spec); |
|
|
|
Game::eventQueue->registerListener(&spec); |
|
|
|
InputWindow::inputQueue->registerListener(&player); |
|
|
|
InputWindow::inputQueue->registerListener(&player); |
|
|
|
Game::eventQueue->registerListener(new Logger); |
|
|
|
auto logger = new Logger; |
|
|
|
|
|
|
|
Game::eventQueue->registerListener(logger); |
|
|
|
|
|
|
|
Game::eventQueue->unregisterListener(logger); |
|
|
|
|
|
|
|
Game::eventQueue->registerListener(logger); |
|
|
|
Game::eventQueue->registerListener(new RecordTracker); |
|
|
|
Game::eventQueue->registerListener(new RecordTracker); |
|
|
|
|
|
|
|
|
|
|
|
instance = this; |
|
|
|
instance = this; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|