- replaced YES/NO with true/false
[supertux.git] / src / scene.h
1 //
2 // C Interface: scene
3 //
4 // Description: 
5 //
6 //
7 // Author: Tobias Glaesser <tobi.web@gmx.de>, (C) 2004
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12
13 #ifndef SUPERTUX_SCENE_H
14 #define SUPERTUX_SCENE_H
15
16 #include "defines.h"
17 #include "gameloop.h"
18 #include "player.h"
19 #include "badguy.h"
20 #include "world.h"
21 #include "special.h"
22 #include "level.h"
23
24 #define FRAME_RATE 10 // 100 Frames per second (10ms)
25 extern int score;
26 extern int distros;
27 extern int level; 
28 extern int next_level;
29 extern int game_pause;
30 extern bool quit;
31 extern int score_multiplier;
32 extern int endpos;
33 extern bool counting_distros;
34 extern int distro_counter;
35
36 extern timer_type  super_bkgd_timer;
37 extern float scroll_x;
38 extern int frame;
39 extern std::vector<bouncy_distro_type> bouncy_distros;
40 extern std::vector<broken_brick_type> broken_bricks;
41 extern std::vector<bouncy_brick_type> bouncy_bricks;
42 extern std::vector<bad_guy_type> bad_guys;
43 extern std::vector<floating_score_type> floating_scores;
44 extern std::vector<upgrade_type> upgrades;
45 extern std::vector<bullet_type> bullets;
46 extern player_type tux;
47 extern texture_type img_box_full, img_box_empty, img_mints, img_coffee, img_super_bkgd, img_red_glow;
48 extern timer_type time_left;
49 extern double frame_ratio;
50
51 void add_score(float x, float y, int s);
52 void set_defaults(void);
53 void arrays_init(void);
54 void arrays_free(void);
55
56 void add_bouncy_distro(float x, float y);
57 void add_broken_brick(float x, float y);
58 void add_broken_brick_piece(float x, float y, float xm, float ym);
59 void add_bouncy_brick(float x, float y);
60 void add_bad_guy(float x, float y, int kind);
61 void add_upgrade(float x, float y, int dir, int kind);
62 void add_bullet(float x, float y, float xm, int dir);
63
64 #endif /*SUPERTUX_SCENE_H*/