1 #ifndef __OVERHEAD_MAP_H
2 #define __OVERHEAD_MAP_H
3 
4 /*
5 	OVERHEAD_MAP.H
6 
7 	Copyright (C) 1991-2001 and beyond by Bungie Studios, Inc.
8 	and the "Aleph One" developers.
9 
10 	This program is free software; you can redistribute it and/or modify
11 	it under the terms of the GNU General Public License as published by
12 	the Free Software Foundation; either version 3 of the License, or
13 	(at your option) any later version.
14 
15 	This program is distributed in the hope that it will be useful,
16 	but WITHOUT ANY WARRANTY; without even the implied warranty of
17 	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 	GNU General Public License for more details.
19 
20 	This license is contained in the file "COPYING",
21 	which is included with this source code; it is available online at
22 	http://www.gnu.org/licenses/gpl.html
23 
24 	Saturday, July 9, 1994 11:19:49 PM
25 
26 May 1, 2000 (Loren Petrich): Added XML parser object for the stuff here.
27 */
28 
29 #include "world.h"
30 
31 #define OVERHEAD_MAP_MINIMUM_SCALE 1
32 #define OVERHEAD_MAP_MAXIMUM_SCALE 4
33 #define DEFAULT_OVERHEAD_MAP_SCALE 3
34 
35 enum /* modes */
36 {
37 	_rendering_saved_game_preview,
38 	_rendering_checkpoint_map,
39 	_rendering_game_map
40 };
41 
42 struct overhead_map_data
43 {
44 	short mode;
45 	short scale;
46 	world_point2d origin;
47 	short origin_polygon_index;
48 	short half_width, half_height;
49 	short width, height;
50 	short top, left;
51 
52 	bool draw_everything;
53 };
54 
55 void _render_overhead_map(struct overhead_map_data *data);
56 
57 class InfoTree;
58 void parse_mml_overhead_map(const InfoTree& root);
59 void reset_mml_overhead_map();
60 
61 #endif
62