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