multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
19:58cc5465f647
Parent:
18:32fce82690a1
Child:
20:b2687089661c
--- a/gamestate.cpp	Sun Nov 15 21:55:35 2020 +0000
+++ b/gamestate.cpp	Sun Nov 15 22:45:48 2020 +0000
@@ -43,6 +43,17 @@
     }
 }
 
+Coord GameState::getPlayerLocation(char player) {
+    if (player == 0) {
+        return getPlayerOneLocation(); 
+    }
+    return getPlayerTwoLocation(); 
+}
+
+char GameState::getLocalPlayerNum() {
+    return this->localPlayerNum; 
+} 
+
 bool GameState::done() {
     return this->is_done; 
 }