diff --git a/todo.txt b/todo.txt index e6ac778..abbbfc9 100644 --- a/todo.txt +++ b/todo.txt @@ -1,7 +1,8 @@ -1. Implement the multiplayer aspect of the game - detect if M_CLIENT or M_SERVER is set, and perform appropriate actions (e.g. M_CLIENT could control left paddle, M_SERVER could control right paddle). +1. ---IN PROGRESS--- Implement the multiplayer aspect of the game - detect if M_CLIENT or M_SERVER is set, and perform appropriate actions (e.g. M_CLIENT could control left paddle, M_SERVER could control right paddle). 2. ---- SHOULD BE DONE ---- Fix decoding function - segfaults if code is invalid. 3. Try to make the ball go between screens. 4. ALMOST DONE - Add better exception throwing and handling 5. Finish adding comments for the other files. -6. ---DONE--- Fix the 'sendAll' and 'recvAll' methods in Sock. Instead of calling the parent function with a parameter in the children functions, set a variable in the children functions (set it to a different value in the 'Client' implementation and the 'Server' implementation). This variable can be accessed by the parent method, and it can perform the appropriate action. +6. ---DONE--- Fix the 'sendAll' and 'recvAll' methods in Sock. Instead of calling the parent function with a parameter in the children functions, set a variable in the children functions (set it to a different value in the 'Client' implementation and the 'Server' implementation). This variable can be accessed by the parent method, and it can perform the appropriate action +7. Add code to handle the positions received by client and paddle. Also, make the server send the ball position each time, and have both client and server send a message if the game is quit.