Remove obsolete NO_AA macro definition
[neverball] / ball / game.h
1 #ifndef GAME_H
2 #define GAME_H
3
4 #include <stdio.h>
5
6 #include "lang.h"
7
8 /*---------------------------------------------------------------------------*/
9
10 #define AUD_MENU    "snd/menu.ogg"
11 #define AUD_START _("snd/select.ogg")
12 #define AUD_READY _("snd/ready.ogg")
13 #define AUD_SET   _("snd/set.ogg")
14 #define AUD_GO    _("snd/go.ogg")
15 #define AUD_BALL    "snd/ball.ogg"
16 #define AUD_BUMPS   "snd/bumplil.ogg"
17 #define AUD_BUMPM   "snd/bump.ogg"
18 #define AUD_BUMPL   "snd/bumpbig.ogg"
19 #define AUD_COIN    "snd/coin.ogg"
20 #define AUD_TICK    "snd/tick.ogg"
21 #define AUD_TOCK    "snd/tock.ogg"
22 #define AUD_SWITCH  "snd/switch.ogg"
23 #define AUD_JUMP    "snd/jump.ogg"
24 #define AUD_GOAL    "snd/goal.ogg"
25 #define AUD_SCORE _("snd/record.ogg")
26 #define AUD_FALL  _("snd/fall.ogg")
27 #define AUD_TIME  _("snd/time.ogg")
28 #define AUD_OVER  _("snd/over.ogg")
29 #define AUD_GROW    "snd/grow.ogg"
30 #define AUD_SHRINK  "snd/shrink.ogg"
31
32 /*---------------------------------------------------------------------------*/
33
34 #define RESPONSE    0.05f              /* Input smoothing time               */
35 #define ANGLE_BOUND 20.0f              /* Angle limit of floor tilting       */
36 #define VIEWR_BOUND 10.0f              /* Maximum rate of view rotation      */
37
38 /*---------------------------------------------------------------------------*/
39
40 int   game_init(const char *, int, int);
41 void  game_free(void);
42
43 int   curr_clock(void);
44 int   curr_coins(void);
45
46 void  game_draw(int, float);
47 int   game_step(const float[3], float, int);
48
49 void  game_set_goal(void);
50 void  game_clr_goal(void);
51
52 void  game_set_ang(int, int);
53 void  game_set_pos(int, int);
54 void  game_set_x  (int);
55 void  game_set_z  (int);
56 void  game_set_cam(int);
57 void  game_set_rot(float);
58 void  game_set_fly(float);
59
60 void  game_look(float, float);
61
62 void  game_kill_fade(void);
63 void  game_step_fade(float);
64 void  game_fade(float);
65
66 /*---------------------------------------------------------------------------*/
67
68 int input_put(FILE *);
69 int input_get(FILE *);
70
71 /*---------------------------------------------------------------------------*/
72
73 #define GAME_NONE 0
74 #define GAME_TIME 1
75 #define GAME_GOAL 2
76 #define GAME_FALL 3
77
78 const char *status_to_str(int);
79
80 /*---------------------------------------------------------------------------*/
81
82 #endif