multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
15:9d90f68e53da
Child:
17:32ae1f106002
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gamestate.h	Thu Nov 12 05:51:00 2020 +0000
@@ -0,0 +1,28 @@
+
+#ifndef GAME_STATE_H
+#define GAME_STATE_H
+
+#include "mbed.h"
+#include "stdint.h"
+
+struct Coord {
+    int8_t x; 
+    int8_t y;
+};
+
+class GameState {
+    private: 
+        Coord p1_loc; 
+        Coord p2_loc; 
+        Coord ball_loc; 
+        bool is_done; 
+    public:
+        GameState();  
+        Coord getPlayerOneLocation(); 
+        Coord getPlayerTwoLocation(); 
+        Coord getBallLocation();
+        void update(char *server_data);
+        bool done();   
+};
+
+#endif // GAME_STATE_H
\ No newline at end of file