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;
32 timer_type fps_timer, frame_timer;
37 GameSession(const std::string& filename);
38 GameSession(const std::string& subset, int levelnb, int mode);
42 void process_events();
44 Level* get_level() { return ¤t_level; }
46 void savegame(int slot);
47 void loadgame(int slot);
49 static GameSession* current() { return current_; }
51 static GameSession* current_;
55 void activate_particle_systems();
58 void activate_bad_guys(Level* plevel);
60 std::string slotinfo(int slot);
62 bool rectcollision(base_type* one, base_type* two);
63 void drawshape(float x, float y, unsigned int c, Uint8 alpha = 255);
64 void bumpbrick(float x, float y);
66 #endif /*SUPERTUX_GAMELOOP_H*/