Replay pause/end screen: removed info and reordered buttons.
[neverball] / ball / game.h
1 #ifndef GAME_H
2 #define GAME_H
3
4 #include <stdio.h>
5
6 #include "level.h"
7 #include "mode.h"
8
9 /*---------------------------------------------------------------------------*/
10
11 #define AUD_MENU   1
12 #define AUD_START  2
13 #define AUD_READY  3
14 #define AUD_SET    4
15 #define AUD_GO     5
16 #define AUD_BALL   6
17 #define AUD_BUMPS  7
18 #define AUD_BUMPM  8
19 #define AUD_BUMPL  9
20 #define AUD_COIN   10
21 #define AUD_TICK   11
22 #define AUD_TOCK   12
23 #define AUD_SWITCH 13
24 #define AUD_JUMP   14
25 #define AUD_GOAL   15
26 #define AUD_SCORE  16
27 #define AUD_FALL   17
28 #define AUD_TIME   18
29 #define AUD_OVER   19
30 #define AUD_GROW   20
31 #define AUD_SHRINK 21
32 #define AUD_COUNT  22
33
34 /*---------------------------------------------------------------------------*/
35
36 #define MAX_DT      0.01666666         /* Maximum physics update cycle       */
37 #define MAX_DN      16                 /* Maximum subdivisions of dt         */
38 #define RESPONSE    0.05f              /* Input smoothing time               */
39
40 #define ANGLE_BOUND 20.f               /* Angle limit of floor tilting       */
41 #define NO_AA       0                  /* Disable Angle Acceleration         */
42
43 /*---------------------------------------------------------------------------*/
44
45 int   game_init(const struct level *, int, int);
46 void  game_free(void);
47
48 int   curr_clock(void);
49 int   curr_coins(void);
50 int   curr_goal(void);
51
52 void  game_draw(int, float);
53 int   game_step(const float[3], float, int);
54
55 void  game_set_pos(int, int);
56 void  game_set_x  (int);
57 void  game_set_z  (int);
58 void  game_set_rot(float);
59 void  game_set_fly(float);
60
61 void  game_look(float, float);
62
63 void  game_kill_fade(void);
64 void  game_step_fade(float);
65 void  game_fade(float);
66
67 int   put_game_state(FILE *);
68 int   get_game_state(FILE *);
69
70 /*---------------------------------------------------------------------------*/
71
72 #endif