#include #include "protocol.h" #define MAX_PLAYERS 64 #define TICK_DELAY (1000 / 60) #define PLAYER_SIZE 0.01785 typedef struct Player { /* public */ bool live; float x, y, r; float vx, vy, vr; /* internal */ bool updated; } Player; extern Player g_player[MAX_PLAYERS]; void g_player_set(unsigned int id, bool live, float x, float y, float r, float vx, float vy, float vr); void g_player_does(unsigned int id, DoesCode code); void g_update();