multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
18:32fce82690a1
Parent:
17:32ae1f106002
Child:
19:58cc5465f647
--- a/gamestate.h	Sat Nov 14 02:37:13 2020 +0000
+++ b/gamestate.h	Sun Nov 15 21:55:35 2020 +0000
@@ -5,27 +5,31 @@
 #include "mbed.h"
 #include "stdint.h"
 #include "MbedJSONValue.h"
+#include "graphics.h" 
+#include <string>  
 
 struct Coord {
     int8_t x; 
     int8_t y;
 };
 
+class Graphics; 
+
 class GameState {
     private: 
         Coord p1_loc; 
         Coord p2_loc; 
         Coord ball_loc; 
-        bool is_done; 
-        bool localPlayer; 
+        char is_done; 
+        char localPlayerNum; 
+        string lobbyHash; 
     public:
         GameState();  
         Coord getPlayerOneLocation(); 
         Coord getPlayerTwoLocation(); 
         Coord getBallLocation();
-        void update(MbedJSONValue *serverResponse);
+        void update(MbedJSONValue *serverResponse, Graphics *gfx);
         bool done();   
-        void print(); 
 };
 
 #endif // GAME_STATE_H
\ No newline at end of file