DEADSOFTWARE

Первая версия протестированная на сервере
[netwar.git] / game.h
1 #include <stdbool.h>
3 #include "protocol.h"
5 #define MAX_PLAYERS 64
6 #define TICK_DELAY (1000 / 60)
7 #define PLAYER_SIZE 0.01785
9 typedef struct Player {
10 /* public */
11 bool live;
12 float x, y, r;
13 float vx, vy, vr;
15 /* internal */
16 bool updated;
17 } Player;
19 extern Player g_player[MAX_PLAYERS];
21 void g_player_set(unsigned int id, bool live, float x, float y, float r, float vx, float vy, float vr);
22 void g_player_does(unsigned int id, DoesCode code);
23 void g_update();