source: golgotha/src/golg/map_man.hh

Last change on this file was 80, checked in by Sam Hocevar, 12 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.3 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef G1_MAP_MAN_HH
10#define G1_MAP_MAN_HH
11
12#include "init/init.hh"
13#include "memory/array.hh"
14#include "g1_limits.hh"
15#include "error/error.hh"
16
17class g1_map_class;
18class g1_map_cell_class;
19class g1_map_vertex_class;
20
21// these are mirrored from the current map, don't
22// change them directly
23extern g1_map_cell_class *g1_cells;
24extern g1_map_vertex_class *g1_verts;
25extern int g1_map_width, g1_map_height;
26extern int g1_map_width_plus_one;
27
28extern g1_map_class *g1_current_map_PRIVATE;
29
30void g1_set_map(g1_map_class *map);
31
32inline i4_bool g1_map_is_loaded()
33{
34  if (g1_current_map_PRIVATE)
35    return i4_T;
36  else return i4_F;
37}
38
39inline g1_map_class *g1_get_map()
40{
41#ifdef DEBUG
42  if (!g1_current_map_PRIVATE)
43    i4_error("map missing");
44#endif
45  return g1_current_map_PRIVATE;
46}
47
48void g1_destroy_map();
49
50#endif
Note: See TracBrowser for help on using the repository browser.