multiplayer pong game for LPC 1768
Dependencies: mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt
Diff: gamestate.h
- Revision:
- 19:58cc5465f647
- Parent:
- 18:32fce82690a1
- Child:
- 23:c38680c32552
--- a/gamestate.h Sun Nov 15 21:55:35 2020 +0000 +++ b/gamestate.h Sun Nov 15 22:45:48 2020 +0000 @@ -24,10 +24,12 @@ char localPlayerNum; string lobbyHash; public: - GameState(); + GameState(); + Coord getPlayerLocation(char player); Coord getPlayerOneLocation(); Coord getPlayerTwoLocation(); Coord getBallLocation(); + char getLocalPlayerNum(); void update(MbedJSONValue *serverResponse, Graphics *gfx); bool done(); };