Implement a server/client-like game/replay architecture
[neverball] / ball / game_server.h
1 #ifndef GAME_SERVER_H
2 #define GAME_SERVER_H
3
4 #include "solid.h"
5
6 /*---------------------------------------------------------------------------*/
7
8 #define RESPONSE    0.05f              /* Input smoothing time               */
9 #define ANGLE_BOUND 20.0f              /* Angle limit of floor tilting       */
10 #define VIEWR_BOUND 10.0f              /* Maximum rate of view rotation      */
11
12 /*---------------------------------------------------------------------------*/
13
14 int   game_server_init(const char *, int, int);
15 void  game_server_free(void);
16 void  game_server_step(float);
17
18 void  game_set_goal(void);
19 void  game_clr_goal(void);
20
21 void  game_set_ang(int, int);
22 void  game_set_pos(int, int);
23 void  game_set_x  (int);
24 void  game_set_z  (int);
25 void  game_set_cam(int);
26 void  game_set_rot(float);
27 void  game_set_fly(float, const struct s_file *);
28
29 /*---------------------------------------------------------------------------*/
30
31 int input_put(FILE *);
32 int input_get(FILE *);
33
34 /*---------------------------------------------------------------------------*/
35
36 #endif