Add some error checking in Neverputt when loading SOLs
[neverball] / putt / game.h
1 #ifndef GAME_H
2 #define GAME_H
3
4 /*---------------------------------------------------------------------------*/
5
6 #define AUD_BIRDIE  "snd/birdie.ogg"
7 #define AUD_BOGEY   "snd/bogey.ogg"
8 #define AUD_BUMP    "snd/bink.ogg"
9 #define AUD_DOUBLE  "snd/double.ogg"
10 #define AUD_EAGLE   "snd/eagle.ogg"
11 #define AUD_JUMP    "snd/jump.ogg"
12 #define AUD_MENU    "snd/menu.ogg"
13 #define AUD_ONE     "snd/one.ogg"
14 #define AUD_PAR     "snd/par.ogg"
15 #define AUD_PENALTY "snd/penalty.ogg"
16 #define AUD_PLAYER1 "snd/player1.ogg"
17 #define AUD_PLAYER2 "snd/player2.ogg"
18 #define AUD_PLAYER3 "snd/player3.ogg"
19 #define AUD_PLAYER4 "snd/player4.ogg"
20 #define AUD_SWITCH  "snd/switch.ogg"
21 #define AUD_SUCCESS "snd/success.ogg"
22
23 /*---------------------------------------------------------------------------*/
24
25 #define MAX_DT   0.01666666            /* Maximum physics update cycle       */
26 #define MAX_DN  16                     /* Maximum subdivisions of dt         */
27 #define FOV     50.00f                 /* Field of view                      */
28 #define RESPONSE 0.05f                 /* Input smoothing time               */
29
30 #define GAME_NONE 0
31 #define GAME_STOP 1
32 #define GAME_GOAL 2
33 #define GAME_FALL 3
34
35 /*---------------------------------------------------------------------------*/
36
37 int   game_init(const char *);
38 void  game_free(void);
39
40 void  game_draw(int, float);
41 void  game_putt(void);
42 int   game_step(const float[3], float);
43
44 void  game_update_view(float);
45
46 void  game_set_rot(int);
47 void  game_clr_mag(void);
48 void  game_set_mag(int);
49 void  game_set_fly(float);
50
51 void  game_ball(int);
52 void  game_set_pos(float[3], float[3][3]);
53 void  game_get_pos(float[3], float[3][3]);
54
55 /*---------------------------------------------------------------------------*/
56
57 #endif