8dd56caf03b9306ac3b561282630f536f004840b
[supertux.git] / src / gameloop.h
1 /*
2   gameloop.h
3   
4   Super Tux - Game Loop!
5   
6   by Bill Kendrick & Tobias Glaesser <tobi.web@gmx.de>
7   bill@newbreedsoftware.com
8   http://www.newbreedsoftware.com/supertux/
9   
10   April 11, 2000 - March 15, 2004
11 */
12
13 #ifndef SUPERTUX_GAMELOOP_H
14 #define SUPERTUX_GAMELOOP_H
15
16 #include "sound.h"
17 #include "type.h"
18 #include "level.h"
19
20 /* GameLoop modes */
21
22 #define ST_GL_PLAY 0
23 #define ST_GL_TEST 1
24 #define ST_GL_LOAD_GAME 2
25
26 extern int game_started;
27 extern st_level current_level;
28
29 /* Function prototypes: */
30
31 int gameloop(char * subset, int levelnb, int mode);
32 void savegame(int slot);
33 void loadgame(int slot);
34 void slotinfo(char **pinfo, int slot);
35 int issolid(float x, float y);
36 int isbrick(float x, float y);
37 int isice(float x, float y);
38 int isfullbox(float x, float y);
39 int rectcollision(base_type* one, base_type* two);
40 void drawshape(float x, float y, unsigned char c);
41 unsigned char shape(float x, float y);
42 void bumpbrick(float x, float y);
43 void trygrabdistro(float x, float y, int bounciness);
44 void trybreakbrick(float x, float y);
45 void tryemptybox(float x, float y, int col_side);
46 void trybumpbadguy(float x, float y);
47
48 #endif /*SUPERTUX_GAMELOOP_H*/
49