From 71760514fc044f273914c17b1510fa3cf10419b3 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 21 Apr 2017 18:31:43 +0500 Subject: 2017-04-21 --- Game.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Game.hpp') 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; -- cgit v1.2.3