#pragma once #include #include #include "game.h" #include "game_common.h" typedef struct { unsigned int screen_w; unsigned int screen_h; GameState state; GameShapes shapes; bool is_player_1; int sock; int conn; FILE *conn_s; } MultiPlayer; MultiPlayer MultiPlayer_alloc( const unsigned int screen_w, const unsigned int screen_h, const char *server_host, const uint16_t server_port ); void MultiPlayer_free(MultiPlayer *const mp); void MultiPlayer_tick(MultiPlayer *const mp, const double delta);