multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
27:fcc5fee18a24
Parent:
23:c38680c32552
Child:
29:4708bfb863cb
--- a/gamestate.h	Mon Nov 16 04:27:47 2020 +0000
+++ b/gamestate.h	Mon Nov 23 01:19:17 2020 +0000
@@ -25,6 +25,7 @@
         char has_started; 
         char localPlayerNum; 
         char lobbyHash[21]; 
+        int score[2]; 
     public:
         GameState();
         Coord getPlayerLocation(char player);   
@@ -33,8 +34,10 @@
         Coord getBallLocation();
         char *getLobbyHash();
         char getLocalPlayerNum(); 
-        void update(MbedJSONValue *serverResponse, Graphics *gfx);
-        bool done();   
+        int getPlayerOneScore();
+        int getPlayerTwoScore();
+        void updateAndRender(MbedJSONValue *serverResponse, Graphics *gfx);
+        char done();   
 };
 
 #endif // GAME_STATE_H
\ No newline at end of file