Commit Graph

66 Commits (13da0156835b2d74474b4696ada2a0459c66042f)
 

Author SHA1 Message Date
Aadhavan Srinivasan 13da015683 Renamed base-helpers to numeric_base, and separated numeric_base into header and implementation files
Aadhavan Srinivasan a47e598b5c Removed unnecessary comments
Aadhavan Srinivasan 6593384d2d Added Paddle.cpp and Ball.cpp as dependencies
Aadhavan Srinivasan 17b391c1c3 Split 'paddle' class into header and implementation files
Aadhavan Srinivasan 86411ae907 Split 'Ball' class into header and implementation files
Aadhavan Srinivasan 1b1dc4a3a2 Changed include paths to relative paths, and added an agnostic struct.
The agnostic struct consists of a 'Mode' enum, and a 'Sock' type. The
'Sock' can be either a Server or Client, depending on the type of game.
This allows polymorphism, as I don't have to worry about whether the game
is being run in Server or Client mode, and I can call the same methods regardless.
Aadhavan Srinivasan 26427fa257 Added include guards to header files
Aadhavan Srinivasan 195d6c4b4b Separated 'Sock' file into header and implementation file, and added include guards to header file
Aadhavan Srinivasan 4eaca05b68 Added 'sock.cpp' and removed include directory
Aadhavan Srinivasan b7e1066b68 Changed include path to be more explicit
Aadhavan Srinivasan fc041539c5 Changed Sock to Sock* in GameType struct to allow it to be set to null
Aadhavan Srinivasan cb0fe1af6b Defined a 'GameType' struct that can hold both the mode, and the relevant socket, to enable polymorphism when calling socket methods
Aadhavan Srinivasan ee0c106236 Made 'Client' and 'Server' children of 'Sock' class
Aadhavan Srinivasan 2e6b01a9bb Defined a parent 'socket' class that both 'Client' and 'Server' can inherit from
Aadhavan Srinivasan f9bfefe3ad Included additional header
Aadhavan Srinivasan 4378aa3c6a Added code to deal with improperly formatted codes
Aadhavan Srinivasan c8bc17fbce Added additional functions for windows-specific actions
Aadhavan Srinivasan 4c256d8800 Added call to SockQuit at the end
Aadhavan Srinivasan 1f99c0929f Updated TODO
Aadhavan Srinivasan d885b18f58 Updated TODO file
Aadhavan Srinivasan 912435bfa3 Added new exception for invalid IP, used it if IP address is neither v4 nor v6
Aadhavan Srinivasan 48739f6026 Created enum to denote if game is in client or server mode, and added error checking, to check if IP address is valid
Aadhavan Srinivasan fd1eaac5e2 Added build flag for debugging
Aadhavan Srinivasan dda89963c8 Added better error checking for IP version
Aadhavan Srinivasan 05cc70412c Added comments to better explain the code, and added code to catch more exceptions
Aadhavan Srinivasan 6ba3452087 Added new exception constant
Aadhavan Srinivasan 9a2257780f Fixed errors in call to 'check_ip_ver'
Aadhavan Srinivasan 735599aebf Fixed errors in call to 'check_ip_ver', and modified error handling
Aadhavan Srinivasan ca952e8814 Modified header file to match change in CPP file
Aadhavan Srinivasan eeb1bd89b8 Modified 'check_ip_ver' function to use const char pointer
Aadhavan Srinivasan 1359f22f71 Added address parameter to constructor, and added additional error handling
Aadhavan Srinivasan 7c741de587 Added code to throw additional exceptions
Aadhavan Srinivasan 2ca17a6225 Moved server / client checking above window initialization
Aadhavan Srinivasan fbea42df25 Change encoded base from hexadecimal to base 32
Aadhavan Srinivasan 74b9ae5fe8 No real change
Aadhavan Srinivasan 6cfdddc204 Added new exception const
Aadhavan Srinivasan cb525c4097 Added code to help convert between number bases
Aadhavan Srinivasan cb958d2749 Added code to parse command-line flags, to determine whether the game was started in client or server mode, and call relevant functions to encode or decode address / key
Aadhavan Srinivasan bad8d4a7cc Added new exception const
Aadhavan Srinivasan 5c09b782b9 Added helper file for connect code
Aadhavan Srinivasan 6945ebb2c1 Added exception_consts file
Aadhavan Srinivasan e6f328ea1d Added raylib-cpp header files to my project
Aadhavan Srinivasan c83b347620 Changed include paths, added a cmdline argument ('server') to indicate if the game is networkded or not
Aadhavan Srinivasan 95dea026d9 Added default constructors; [for client] added code to throw an exception if socket creation was unsuccessful
Aadhavan Srinivasan 2b1c217dbb Changed include path
Aadhavan Srinivasan 8a57f80b8c Switched over to using Meson as build system, instead of Make
Aadhavan Srinivasan c161d80445 Converted easysock to CPP
Aadhavan Srinivasan 7557ce7cf5 Updated header file includes; Changed base speed; Started working on networking code, to send a character when the paddle is moved or stopped
Aadhavan Srinivasan 8ea9764165 Deleted header file in source directory
Aadhavan Srinivasan 24fb96684c Deleted header files in source directory