*** empty log message ***
[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 #include "particlesystem.h"
24
25 #define FRAME_RATE 10 // 100 Frames per second (10ms)
26
27 extern int score;
28 extern int distros;
29 extern int level; 
30 extern int next_level;
31 extern int game_pause;
32 extern bool quit;
33 extern int score_multiplier;
34 extern int endpos;
35 extern bool counting_distros;
36 extern int distro_counter;
37
38 extern timer_type  super_bkgd_timer;
39 extern float scroll_x;
40 extern unsigned int global_frame_counter;
41 extern std::vector<bouncy_distro_type> bouncy_distros;
42 extern std::vector<broken_brick_type> broken_bricks;
43 extern std::vector<bouncy_brick_type> bouncy_bricks;
44 extern std::vector<BadGuy> bad_guys;
45 extern std::vector<floating_score_type> floating_scores;
46 extern std::vector<upgrade_type> upgrades;
47 extern std::vector<bullet_type> bullets;
48 extern std::vector<ParticleSystem*> particle_systems;
49 extern Player tux;
50 extern texture_type img_box_full, img_box_empty, img_mints, img_coffee, img_super_bkgd, img_red_glow;
51 extern timer_type time_left;
52 extern double frame_ratio;
53
54 void add_score(float x, float y, int s);
55 void set_defaults(void);
56 void arrays_init(void);
57 void arrays_free(void);
58
59 void add_bouncy_distro(float x, float y);
60 void add_broken_brick(float x, float y);
61 void add_broken_brick_piece(float x, float y, float xm, float ym);
62 void add_bouncy_brick(float x, float y);
63 void add_bad_guy(float x, float y, BadGuyKind kind);
64 void add_upgrade(float x, float y, int dir, int kind);
65 void add_bullet(float x, float y, float xm, int dir);
66
67 #endif /*SUPERTUX_SCENE_H*/