-
Notifications
You must be signed in to change notification settings - Fork 0
/
map.h
49 lines (34 loc) · 1.21 KB
/
map.h
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
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef MAP_H
# define MAP_H
#include "space.h"
/* init/exit */
int map_init (void);
void map_exit (void);
/* open the map window */
void map_open (void);
void map_close (void);
int map_isOpen (void);
/* misc */
StarSystem* map_getDestination (void);
void map_setZoom( double zoom );
void map_select( StarSystem *sys, char shifted );
void map_cleanup (void);
void map_clear (void);
void map_jump (void);
/* manipulate universe stuff */
StarSystem** map_getJumpPath( int* njumps, const char* sysstart,
const char* sysend, int ignore_known, StarSystem** old_data );
int map_map( const Outfit *map );
int map_isMapped( const Outfit* map );
/* shows a map at x, y (relative to wid) with size w,h */
void map_show( int wid, int x, int y, int w, int h, double zoom );
int map_center( const char *sys );
/* Internal rendering sort of stuff. */
void map_renderParams( double bx, double by, double xpos, double ypos,
double w, double h, double zoom, double *x, double *y, double *r );
void map_renderSystems( double bx, double by, double x, double y, double w, double h, double r, int editor );
void map_renderNames( double x, double y, int editor );
#endif /* MAP_H */