6 by Bill Kendrick & Tobias Glaesser <tobi.web@gmx.de>
7 bill@newbreedsoftware.com
8 http://www.newbreedsoftware.com/supertux/
10 April 11, 2000 - March 15, 2004
13 #ifndef SUPERTUX_GAMELOOP_H
14 #define SUPERTUX_GAMELOOP_H
24 #define ST_GL_LOAD_GAME 2
25 #define ST_GL_LOAD_LEVEL_FILE 3
27 extern int game_started;
28 extern st_level current_level;
30 /* Function prototypes: */
33 Tile* gettile(float x, float y);
34 void activate_bad_guys(st_level* plevel);
35 int gameloop(const char * subset, int levelnb, int mode);
36 void savegame(int slot);
37 void loadgame(int slot);
38 void slotinfo(char **pinfo, int slot);
39 bool issolid(float x, float y);
40 bool isbrick(float x, float y);
41 bool isice(float x, float y);
42 bool isfullbox(float x, float y);
43 bool rectcollision(base_type* one, base_type* two);
44 void drawshape(float x, float y, unsigned int c, Uint8 alpha = 255);
45 unsigned int shape(float x, float y);
46 void bumpbrick(float x, float y);
48 /** Try to grab the coin at the given coordinates */
49 void trygrabdistro(float x, float y, int bounciness);
51 /** Try to break the brick at the given coordinates */
52 void trybreakbrick(float x, float y, bool small);
54 /** Try to get the content out of a bonus box, thus emptying it */
55 void tryemptybox(float x, float y, int col_side);
57 /** Try to bumb a badguy that might we walking above Tux, thus shaking
58 the tile which the badguy is walking on an killing him this way */
59 void trybumpbadguy(float x, float y);
61 #endif /*SUPERTUX_GAMELOOP_H*/