1 /*------------------------------------------------------------------.
2 | Copyright 1997, 1998, 2000, 2001  Alexandre Duret-Lutz            |
3 |                                    <duret_g@epita.fr>             |
4 |                                                                   |
5 | This file is part of Heroes.                                      |
6 |                                                                   |
7 | Heroes is free software; you can redistribute it and/or modify it |
8 | under the terms of the GNU General Public License version 2 as    |
9 | published by the Free Software Foundation.                        |
10 |                                                                   |
11 | Heroes is distributed in the hope that it will be useful, but     |
12 | WITHOUT ANY WARRANTY; without even the implied warranty of        |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU |
14 | General Public License for more details.                          |
15 |                                                                   |
16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software       |
18 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA          |
19 | 02111-1307 USA                                                    |
20 `------------------------------------------------------------------*/
21 
22 #ifndef HEROES__CONST__H
23 #define HEROES__CONST__H
24 
25 /* this file carries too many unrelated stuffs */
26 
27 #include "pcx.h"
28 #include "structs.h"
29 #include "gameid.h"
30 #include "lvl.h"
31 
32 extern int rounds_nbr_values[16];
33 
34 extern a_pixel *(render_buffer[2]);	/* xbuf * ybuf */
35 
36 char key_or_joy_ready (void);
37 a_keycode get_key_or_joy (void);
38 
39 extern char kbjoy[6];
40 extern char kbjoyold[6];
41 extern char in_jokebox;
42 extern char in_menu;
43 extern char in_demo;
44 
45 extern char demo_ready;
46 
47 extern a_pixel glenz[8][256];
48 void draw_glenz_box (a_pixel *dest, int c, int xt, int yt);
49 
50 extern a_pcx_image main_font_img, vehicles_img;
51 extern a_pcx_image bonus_font_img;
52 extern a_pcx_image tile_set_img, font_deck_img;
53 
54 extern signed char minisinus[32];
55 extern bool two_players;
56 
57 #define maxq 128
58 
59 extern a_player player[4];
60 extern int trail_pos[4][maxq];
61 extern a_dir8_pair trail_way[4][maxq];
62 extern int trail_offset[4];
63 extern char trail_size[4];	/* size of trails, minus one */
64 
65 extern int col2plr[4];
66 extern int plr2col[4];
67 
68 extern a_level lvl;
69 
70 extern unsigned char *square_occupied;
71 extern a_dir8_pair *square_way;
72 extern a_tile_index *square_tile;
73 extern a_square_corrd_pair *square_coord;
74 extern signed char *square_object;
75 #define lemmings_per_players 50
76 #define lemmings_total (lemmings_per_players*4)
77 extern a_lemming **square_lemmings_list;
78 extern a_lemming **square_dead_lemmings_list;
79 extern a_lemming lemmings_support[lemmings_total];
80 extern int objects_nbr;
81 
82 extern int game_mode;
83 extern a_gameid game_id;
84 
85 extern int lemmings_anim_offset;
86 extern int lemmings_move_offset;
87 
88 #endif /* HEROES__CONST__H */
89