summaryrefslogtreecommitdiffstats
path: root/Game.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'Game.hpp')
-rw-r--r--Game.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Game.hpp b/Game.hpp
index 68be9ab..1a2edce 100644
--- a/Game.hpp
+++ b/Game.hpp
@@ -11,17 +11,23 @@ public:
~Game();
- void MainLoop();
+ void Exec();
private:
//utility variables
NetworkClient *m_nc;
+ std::thread m_ncThread;
bool m_exit = false;
ConnectionState m_networkState = ConnectionState::Handshaking;
Display *m_display;
+ std::thread m_gameThread;
//utility methods
void ParsePackets();
+ void MainLoop();
+
+ //GameState update - condVars
+ std::condition_variable gameStartWaiter;
//game state variables
World m_world;