multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
23:c38680c32552
Parent:
19:58cc5465f647
Child:
27:fcc5fee18a24
--- a/gamestate.h	Mon Nov 16 02:04:23 2020 +0000
+++ b/gamestate.h	Mon Nov 16 03:01:50 2020 +0000
@@ -16,19 +16,22 @@
 class Graphics; 
 
 class GameState {
+    // TODO: make the syntax consistent please
     private: 
         Coord p1_loc; 
         Coord p2_loc; 
         Coord ball_loc; 
         char is_done; 
+        char has_started; 
         char localPlayerNum; 
-        string lobbyHash; 
+        char lobbyHash[21]; 
     public:
         GameState();
         Coord getPlayerLocation(char player);   
         Coord getPlayerOneLocation(); 
         Coord getPlayerTwoLocation(); 
         Coord getBallLocation();
+        char *getLobbyHash();
         char getLocalPlayerNum(); 
         void update(MbedJSONValue *serverResponse, Graphics *gfx);
         bool done();