naev
0.11.5
src
map.h
1
/*
2
* See Licensing and Copyright notice in naev.h
3
*/
4
#pragma once
5
6
#include "attributes.h"
7
#include "space.h"
8
9
#define MAP_WDWNAME "wdwStarMap"
14
typedef
struct
MapDecorator_ {
15
glTexture
*
image
;
16
double
x,
y
;
17
int
detection_radius
;
18
}
MapDecorator
;
19
23
typedef
enum
MapMode_ {
24
MAPMODE_TRAVEL,
25
MAPMODE_DISCOVER,
26
MAPMODE_TRADE,
27
MAPMODE_EDITOR,
28
} MapMode;
29
30
/* init/exit */
31
int
map_init (
void
);
32
void
map_exit (
void
);
33
34
/* open the map window */
35
void
map_open (
void
);
36
void
map_close (
void
);
37
int
map_isOpen (
void
);
38
39
/* misc */
40
StarSystem* map_getDestination(
int
*jumps );
41
void
map_setZoom(
unsigned
int
wid,
double
zoom );
42
void
map_select(
const
StarSystem *sys,
char
shifted );
43
void
map_cycleMissions(
int
dir);
44
void
map_toggleNotes (
void
);
45
void
map_cleanup (
void
);
46
void
map_clear (
void
);
47
void
map_jump (
void
);
48
49
/* manipulate universe stuff */
50
StarSystem **map_getJumpPath(
const
char
*sysstart,
const
vec2
*posstart,
const
char
*sysend,
51
int
ignore_known,
int
show_hidden, StarSystem **old_data,
double
*o_distance );
52
int
map_map(
const
Outfit
*map );
53
int
map_isUseless(
const
Outfit
* map );
54
55
/* Local map stuff. */
56
int
localmap_map(
const
Outfit
*lmap );
57
int
localmap_isUseless(
const
Outfit
*lmap );
58
59
/* shows a map at x, y (relative to wid) with size w,h */
60
void
map_show(
int
wid,
int
x,
int
y,
int
w,
int
h,
double
zoom,
double
xoff,
double
yoff );
61
int
map_center(
int
wid,
const
char
*sys );
62
63
/* Internal rendering sort of stuff. */
64
void
map_renderParams(
double
bx,
double
by,
double
xpos,
double
ypos,
65
double
w,
double
h,
double
zoom,
double
*x,
double
*y,
double
*r );
66
void
map_renderFactionDisks(
double
x,
double
y,
double
zoom,
double
r,
int
editor,
double
alpha );
67
void
map_renderSystemEnvironment(
double
x,
double
y,
double
zoom,
int
editor,
double
alpha );
68
void
map_renderDecorators(
double
x,
double
y,
double
zoom,
int
editor,
double
alpha );
69
void
map_renderJumps(
double
x,
double
y,
double
zoom,
double
radius,
int
editor );
70
void
map_renderSystems(
double
bx,
double
by,
double
x,
double
y,
71
double
zoom,
double
w,
double
h,
double
r, MapMode mode );
72
void
map_renderNotes(
double
bx,
double
by,
double
x,
double
y,
73
double
zoom,
double
w,
double
h,
int
editor,
double
alpha );
74
void
map_renderNames(
double
bx,
double
by,
double
x,
double
y,
75
double
zoom,
double
w,
double
h,
int
editor,
double
alpha );
76
void
map_updateFactionPresence(
const
unsigned
int
wid,
const
char
*name,
const
StarSystem *sys,
int
omniscient );
77
int
map_load (
void
);
MapDecorator
Images to be shown on the map.
Definition
map.h:14
MapDecorator::y
double y
Definition
map.h:16
MapDecorator::image
glTexture * image
Definition
map.h:15
MapDecorator::detection_radius
int detection_radius
Definition
map.h:17
Outfit
A ship outfit, depends radically on the type.
Definition
outfit.h:328
glTexture
Abstraction for rendering sprite sheets.
Definition
opengl_tex.h:36
vec2
Represents a 2d vector.
Definition
vec2.h:32
Generated by
1.12.0