File: const.h

package info (click to toggle)
heroes 0.21-15
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,748 kB
  • ctags: 3,825
  • sloc: ansic: 27,967; sh: 3,942; makefile: 651; yacc: 318; sed: 51; lisp: 10; perl: 9
file content (87 lines) | stat: -rw-r--r-- 2,979 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*------------------------------------------------------------------.
| Copyright 1997, 1998, 2000, 2001  Alexandre Duret-Lutz            |
|                                    <duret_g@epita.fr>             |
|                                                                   |
| This file is part of Heroes.                                      |
|                                                                   |
| Heroes is free software; you can redistribute it and/or modify it |
| under the terms of the GNU General Public License version 2 as    |
| published by the Free Software Foundation.                        |
|                                                                   |
| Heroes is distributed in the hope that it will be useful, but     |
| WITHOUT ANY WARRANTY; without even the implied warranty of        |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU |
| General Public License for more details.                          |
|                                                                   |
| You should have received a copy of the GNU General Public License |
| along with this program; if not, write to the Free Software       |
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA          |
| 02111-1307 USA                                                    |
`------------------------------------------------------------------*/

#ifndef HEROES__CONST__H
#define HEROES__CONST__H

/* this file carries too many unrelated stuffs */

#include "pcx.h"
#include "structs.h"
#include "gameid.h"
#include "lvl.h"

extern int rounds_nbr_values[16];

extern a_pixel *(render_buffer[2]);	/* xbuf * ybuf */

char key_or_joy_ready (void);
a_keycode get_key_or_joy (void);
void key_or_joy_reset (void);

extern char in_jokebox;
extern char in_menu;
extern char in_demo;

extern char demo_ready;

extern a_pixel glenz[8][256];
void draw_glenz_box (a_pixel *dest, int c, int xt, int yt);

extern a_pcx_image main_font_img, vehicles_img;
extern a_pcx_image bonus_font_img;
extern a_pcx_image tile_set_img, font_deck_img;

extern signed char minisinus[32];
extern bool two_players;

#define maxq 128

extern a_player player[4];
extern int trail_pos[4][maxq];
extern a_dir8_pair trail_way[4][maxq];
extern int trail_offset[4];
extern char trail_size[4];	/* size of trails, minus one */

extern int col2plr[4];
extern int plr2col[4];

extern a_level lvl;

extern unsigned char *square_occupied;
extern a_dir8_pair *square_way;
extern a_tile_index *square_tile;
extern a_square_corrd_pair *square_coord;
extern signed char *square_object;
#define lemmings_per_players 50
#define lemmings_total (lemmings_per_players*4)
extern a_lemming **square_lemmings_list;
extern a_lemming **square_dead_lemmings_list;
extern a_lemming lemmings_support[lemmings_total];
extern int objects_nbr;

extern int game_mode;
extern a_gameid game_id;

extern int lemmings_anim_offset;
extern int lemmings_move_offset;

#endif /* HEROES__CONST__H */