multiplayer pong game for LPC 1768
Dependencies: mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt
Diff: gamestate.h
- Revision:
- 30:59e9a5409e65
- Parent:
- 29:4708bfb863cb
- Child:
- 32:7cbf4d9a82af
--- a/gamestate.h Sat Nov 28 01:05:42 2020 +0000 +++ b/gamestate.h Sat Nov 28 02:48:31 2020 +0000 @@ -23,7 +23,8 @@ Coord ball_loc; char is_done; char has_started; - char countdown; + char connected; + int countdown; char localPlayerNum; char lobbyHash[21]; int score[2]; @@ -35,7 +36,9 @@ Coord getBallLocation(); char *getLobbyHash(); char getLocalPlayerNum(); - char getCountdown(); + int getCountdown(); + char hasStarted(); + char isConnected(); void setCountdown(int val); int getPlayerOneScore(); int getPlayerTwoScore();