source: golgotha/src/golg/map_view.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 11 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.5 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 MAP_VIEW_HH
10#define MAP_VIEW_HH
11
12#include "arch.hh"
13#include "math/vector.hh"
14
15class i4_parent_window_class;
16
17enum
18{
19  G1_RADAR_CLICK_HOLDS_VIEW      =1,
20  G1_RADAR_DRAW_ALL_PATHS        =2,
21  G1_RADAR_DRAW_UNHIDDEN_PATHS   =4,
22  G1_RADAR_USE_DIRTIES           =8,
23  G1_RADAR_CLICK_SELECTS_PATH    =16,
24  G1_RADAR_INTERLACED            =32,
25  G1_RADAR_USE_ICONS             =64
26};
27
28i4_parent_window_class *g1_create_radar_view(int max_w, int max_h, int flags);
29
30// this will re-render and area of the radar map
31void g1_radar_refresh(int game_x1, int game_y1, int game_x2, int game_y2);
32
33// tell the radar where the view is, so we can show screen position
34void g1_radar_looking_at(float x1, float y1, float x2, float y2);
35
36// when the map is changed by the editor/or a new level, call this
37void g1_radar_recalculate_backgrounds();
38
39
40// callled when radar should redraw (probably once 1-per second)
41void g1_radar_update();
42                         
43
44void g1_unfog_radius(const i4_3d_vector &v, float r);
45
46#endif
47
48
Note: See TracBrowser for help on using the repository browser.