Fixed more inappropriate variable decl's.
[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 int score, distros, level, next_level, game_pause,
26 done, quit, score_multiplier, endpos, counting_distros, distro_counter;
27 timer_type  super_bkgd_timer;
28 float scroll_x;
29 int frame;
30 bouncy_distro_type *bouncy_distros;
31 broken_brick_type *broken_bricks;
32 bouncy_brick_type *bouncy_bricks;
33 bad_guy_type *bad_guys;
34 floating_score_type *floating_scores;
35 upgrade_type *upgrades;
36 bullet_type *bullets;
37 int num_bad_guys;
38 int num_bouncy_distros;
39 int num_broken_bricks;
40 int num_bouncy_bricks;
41 int num_floating_scores;
42 int num_upgrades;
43 int num_bullets;
44 player_type tux;
45 SDL_Rect src, dest;
46 texture_type img_box_full, img_box_empty, img_mints, img_coffee, img_super_bkgd, img_red_glow;
47 st_level current_level;
48 unsigned int last_update_time;
49 unsigned int update_time;
50 timer_type time_left;
51 double frame_ratio;
52
53 void add_score(int x, int y, int s);
54 void set_defaults(void);
55 void arrays_init(void);
56 void arrays_free(void);
57
58 #endif /*SUPERTUX_SCENE_H*/