Import from neverball-1.3.1.tar.gz
[neverball-archive.git] / ball / game.h
blob24fa9020403f3620edc3f365137c0c6609048159
1 #ifndef GAME_H
2 #define GAME_H
4 #include <stdio.h>
6 /*---------------------------------------------------------------------------*/
8 #define MAX_DT 0.01666666 /* Maximum physics update cycle */
9 #define MAX_DN 16 /* Maximum subdivisions of dt */
10 #define RESPONSE 0.05f /* Input smoothing time */
12 #define GAME_NONE 0
13 #define GAME_TIME 1
14 #define GAME_GOAL 2
15 #define GAME_FALL 3
17 /*---------------------------------------------------------------------------*/
19 int game_init(const char *, const char *, const char *, int, int);
20 void game_free(void);
22 int curr_clock(void);
23 char *curr_intro(void);
25 void game_draw(int, float);
26 int game_step(const float[3], float, int);
28 void game_set_pos(int, int);
29 void game_set_x (int);
30 void game_set_z (int);
31 void game_set_rot(int);
32 void game_set_fly(float);
34 void game_look(float, float);
36 void game_kill_fade(void);
37 void game_step_fade(float);
38 void game_fade(float);
40 int put_game_state(FILE *);
41 int get_game_state(FILE *);
43 /*---------------------------------------------------------------------------*/
45 #endif