naev 0.11.5
space.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "space_fdecl.h"
7
8#include "commodity.h"
9#include "explosion.h"
10#include "faction.h"
11#include "mission_markers.h"
12#include "opengl.h"
13#include "pilot.h"
14#include "shipstats.h"
15#include "tech.h"
16#include "asteroid.h"
17
18#define SYSTEM_SIMULATE_TIME_PRE 25.
19#define SYSTEM_SIMULATE_TIME_POST 5.
20#define MAX_HYPERSPACE_VEL 25.
22/*
23 * Spob services.
24 */
25#define SPOB_SERVICE_LAND (1<<0)
26#define SPOB_SERVICE_REFUEL (1<<1)
27#define SPOB_SERVICE_MISSIONS (1<<2)
28#define SPOB_SERVICE_COMMODITY (1<<3)
29#define SPOB_SERVICE_OUTFITS (1<<4)
30#define SPOB_SERVICE_SHIPYARD (1<<5)
31#define SPOB_SERVICE_BAR (1<<6)
32#define SPOB_SERVICE_INHABITED (1<<7)
33#define SPOB_SERVICE_BLACKMARKET (1<<8)
34#define SPOB_SERVICES_MAX (SPOB_SERVICE_BLACKMARKET<<1)
35#define spob_hasService(p,s) ((p)->services & s)
37/*
38 * Spob flags.
39 */
40#define SPOB_KNOWN (1<<0)
41#define SPOB_BLACKMARKET (1<<1)
42#define SPOB_NOMISNSPAWN (1<<2)
43#define SPOB_UNINHABITED (1<<3)
44#define SPOB_MARKED (1<<4)
45#define SPOB_NOLANES (1<<5)
46#define SPOB_RADIUS (1<<10)
47#define spob_isFlag(p,f) ((p)->flags & (f))
48#define spob_setFlag(p,f) ((p)->flags |= (f))
49#define spob_rmFlag(p,f) ((p)->flags &= ~(f))
50#define spob_isKnown(p) spob_isFlag(p,SPOB_KNOWN)
57typedef struct MapOverlayPos_ {
58 float radius;
59 float text_offx;
60 float text_offy;
61 float text_width;
63
66typedef struct SpobPresence_ {
67 int faction;
68 double base;
69 double bonus;
70 int range;
72
78typedef struct VirtualSpob_ {
79 char *name;
82
89typedef struct Spob_ {
90 int id;
91 char *name;
92 char *display;
93 char *feature;
95 double radius;
96 const SimpleShader *marker;
97 double marker_scale;
99 /* Spob details. */
100 char *class;
101 uint64_t population;
103 /* Spob details. */
105 double hide;
107 /* Landing details. */
110 char *land_msg;
112 /* Landed details. */
115 unsigned int services;
118 tech_group_t *tech;
120 /* Graphics. */
126 char *gfx_comm;
129 /* Misc. */
130 char **tags;
131 unsigned int flags;
133 double map_alpha;
136 /* Lua stuff. */
137 char *lua_file;
138 nlua_env lua_env;
150} Spob;
151
152/*
153 * Star system flags
154 */
155#define SYSTEM_KNOWN (1<<0)
156#define SYSTEM_MARKED (1<<1)
157#define SYSTEM_CMARKED (1<<2)
158#define SYSTEM_CLAIMED (1<<3)
159#define SYSTEM_DISCOVERED (1<<4)
160#define SYSTEM_HIDDEN (1<<5)
161#define SYSTEM_HAS_KNOWN_LANDABLE (1<<6)
162#define SYSTEM_HAS_LANDABLE (1<<7)
163#define SYSTEM_NOLANES (1<<8)
164#define SYSTEM_PMARKED (1<<9)
165#define SYSTEM_INTEREST (1<<10)
166#define sys_isFlag(s,f) ((s)->flags & (f))
167#define sys_setFlag(s,f) ((s)->flags |= (f))
168#define sys_rmFlag(s,f) ((s)->flags &= ~(f))
169#define sys_isKnown(s) (sys_isFlag((s),SYSTEM_KNOWN))
170#define sys_isMarked(s) sys_isFlag((s),SYSTEM_MARKED)
175typedef struct SystemPresence_ {
177 double base;
178 double bonus;
179 double value;
180 double curUsed;
181 double timer;
184
185/*
186 * Jump point flags.
187 */
188#define JP_AUTOPOS (1<<0)
189#define JP_KNOWN (1<<1)
190#define JP_HIDDEN (1<<2)
191#define JP_EXITONLY (1<<3)
192#define JP_NOLANES (1<<4)
193#define jp_isFlag(j,f) ((j)->flags & (f))
194#define jp_setFlag(j,f) ((j)->flags |= (f))
195#define jp_rmFlag(j,f) ((j)->flags &= ~(f))
196#define jp_isKnown(j) jp_isFlag(j,JP_KNOWN)
197#define jp_isUsable(j) (jp_isKnown(j) && !jp_isFlag(j,JP_EXITONLY))
198
202typedef struct JumpPoint_ JumpPoint;
204 StarSystem *from;
206 StarSystem *target;
207 JumpPoint *returnJump;
209 double radius;
210 unsigned int flags;
211 double hide;
212 double angle;
213 double map_alpha;
214 /* Cached stuff. */
215 double cosa;
216 double sina;
217 int sx;
218 int sy;
220};
221extern glTexture *jumppoint_gfx;
226typedef struct MapShader_ {
227 char *name;
228 GLuint program;
229 GLuint vertex;
231 GLuint alpha;
232 GLuint time;
233 GLuint globalpos;
234} MapShader;
235
242 int id;
243 char *filename;
245 /* General. */
246 char* name;
250 double nebu_hue;
253 double radius;
255 char *features;
257 /* Spobs. */
259 int *spobsid;
263 /* Jumps. */
264 JumpPoint *jumps;
266 /* Asteroids. */
271 /* Calculated. */
272 double *prices;
274 /* Presence. */
279 /* Markers. */
285 /* Map shader. */
287 const MapShader *ms;
289 /* Economy. */
290 CommodityPrice *averagePrice;
291
292 /* Misc. */
293 char **tags;
294 unsigned int flags;
296 char *note;
298};
299
300/* Some useful externs. */
301extern StarSystem *cur_system;
302extern int space_spawn;
304/*
305 * loading/exiting
306 */
307void space_init( const char* sysname, int do_simulate );
308int space_load (void);
309int space_loadLua (void);
310void space_exit (void);
311
312/*
313 * spob stuff
314 */
315Spob *spob_new (void);
316const char *spob_name( const Spob *p );
317int spob_luaInit( Spob *spb );
318void spob_gfxLoad( Spob *p );
319int spob_hasSystem( const Spob *spb );
320const char* spob_getSystem( const char* spobname );
321Spob* spob_getAll (void);
322Spob* spob_get( const char* spobname );
323Spob* spob_getIndex( int ind );
324void spob_setKnown( Spob *p );
325int spob_index( const Spob *p );
326int spob_exists( const char* spobname );
327const char *spob_existsCase( const char* spobname );
328char **spob_searchFuzzyCase( const char* spobname, int *n );
329const char* spob_getServiceName( int service );
330int spob_getService( const char *name );
331const char* spob_getClassName( const char *class );
332credits_t spob_commodityPrice( const Spob *p, const Commodity *c );
333credits_t spob_commodityPriceAtTime( const Spob *p, const Commodity *c, ntime_t t );
334int spob_averageSpobPrice( const Spob *p, const Commodity *c, credits_t *mean, double *std);
335void spob_averageSeenPricesAtTime( const Spob *p, const ntime_t tupdate );
336/* Misc modification. */
337int spob_setFaction( Spob *p, int faction );
339int spob_addService( Spob *p, int service );
340int spob_rmService( Spob *p, int service );
341int spob_rename( Spob *p, char *newname );
342/* Land related stuff. */
343char spob_getColourChar( const Spob *p );
344const char *spob_getSymbol( const Spob *p );
345const glColour* spob_getColour( const Spob *p );
346void spob_updateLand( Spob *p );
347/* Lua stuff. */
348void spob_luaInitMem( const Spob *spob );
349
350/*
351 * Virtual spob stuff.
352 */
354VirtualSpob* virtualspob_get( const char *name );
355
356/*
357 * jump stuff
358 */
359JumpPoint* jump_get( const char* jumpname, const StarSystem* sys );
360JumpPoint* jump_getTarget( const StarSystem* target, const StarSystem* sys );
361const char *jump_getSymbol( const JumpPoint *jp );
362
363/*
364 * system adding/removing stuff.
365 */
366void system_reconstructJumps( StarSystem *sys );
367void systems_reconstructJumps (void);
368void systems_reconstructSpobs (void);
369StarSystem *system_new (void);
370int system_addSpob( StarSystem *sys, const char *spobname );
371int system_rmSpob( StarSystem *sys, const char *spobname );
372int system_addVirtualSpob( StarSystem *sys, const char *spobname );
373int system_rmVirtualSpob( StarSystem *sys, const char *spobname );
374int system_addJumpDiff( StarSystem *sys, xmlNodePtr node );
375int system_rmJump( StarSystem *sys, const char *jumpname );
376
377/*
378 * render
379 */
380void space_render( const double dt );
381void space_renderOverlay( const double dt );
382void spobs_render (void);
383
384/*
385 * Presence stuff.
386 */
387void system_presenceCleanupAll (void);
388void system_presenceAddSpob( StarSystem *sys, const SpobPresence *ap );
389double system_getPresence( const StarSystem *sys, int faction );
390double system_getPresenceFull( const StarSystem *sys, int faction, double *base, double *bonus );
391void system_addAllSpobsPresence( StarSystem *sys );
392void space_reconstructPresences( void );
393void system_rmCurrentPresence( StarSystem *sys, int faction, double amount );
394
395/*
396 * update.
397 */
398void space_update( double dt, double real_dt );
399int space_isSimulation (void);
400int space_needsEffects (void);
401
402/*
403 * Graphics.
404 */
405void space_gfxLoad( StarSystem *sys );
406void space_gfxUnload( StarSystem *sys );
407
408/*
409 * Getting stuff.
410 */
411StarSystem* system_getAll (void);
412const char *system_existsCase( const char* sysname );
413char **system_searchFuzzyCase( const char* sysname, int *n );
414StarSystem* system_get( const char* sysname );
415StarSystem* system_getIndex( int id );
416int system_index( const StarSystem *sys );
417int space_sysReachable( const StarSystem *sys );
418int space_sysReallyReachable( const char* sysname );
419int space_sysReachableFromSys( const StarSystem *target, const StarSystem *sys );
420char** space_getFactionSpob( const int *factions, int landable );
421const char* space_getRndSpob( int landable, unsigned int services,
422 int (*filter)(Spob *p));
423double system_getClosest( const StarSystem *sys, int *pnt, int *jp, int *ast, int *fie, double x, double y );
424double system_getClosestAng( const StarSystem *sys, int *pnt, int *jp, int *ast, int *fie, double x, double y, double ang );
425
426/*
427 * Markers.
428 */
429int space_addMarker( int sys, MissionMarkerType type );
430int space_rmMarker( int sys, MissionMarkerType type );
431void space_clearKnown (void);
432void space_clearMarkers (void);
434int system_hasSpob( const StarSystem *sys );
435
436/*
437 * Hyperspace.
438 */
439int space_jumpDistance( const Pilot *p, const JumpPoint *jp );
440int space_canHyperspace( const Pilot *p);
441int space_hyperspace( Pilot *p );
442int space_calcJumpInPos( const StarSystem *in, const StarSystem *out, vec2 *pos, vec2 *vel, double *dir, const Pilot *p );
443
444/*
445 * Misc.
446 */
447void system_updateAsteroids( StarSystem *sys );
448void system_setFaction( StarSystem *sys );
449void space_checkLand (void);
450void space_factionChange (void);
451void space_queueLand( Spob *pnt );
452const char *space_populationStr( const Spob *spb );
static double real_dt
Definition naev.c:113
static const double c[]
Definition rng.c:264
void space_reconstructPresences(void)
Reset the presence of all systems.
Definition space.c:4263
void space_init(const char *sysname, int do_simulate)
Initializes the system.
Definition space.c:1549
double system_getClosestAng(const StarSystem *sys, int *pnt, int *jp, int *ast, int *fie, double x, double y, double ang)
Gets the feature nearest to directly ahead of a position in the system.
Definition space.c:766
int system_addJumpDiff(StarSystem *sys, xmlNodePtr node)
Adds a jump point to a star system from a diff.
Definition space.c:2606
void spob_averageSeenPricesAtTime(const Spob *p, const ntime_t tupdate)
Adds cost of commodities on spob p to known statistics at time t.
Definition space.c:303
double system_getClosest(const StarSystem *sys, int *pnt, int *jp, int *ast, int *fie, double x, double y)
Gets the closest feature to a position in the system.
Definition space.c:687
int spob_exists(const char *spobname)
Check to see if a spob exists.
Definition space.c:1126
void system_rmCurrentPresence(StarSystem *sys, int faction, double amount)
Removes active presence.
Definition space.c:4312
void space_gfxUnload(StarSystem *sys)
Unloads all the graphics for a star system.
Definition space.c:2127
int space_canHyperspace(const Pilot *p)
Checks to make sure if pilot is far enough away to hyperspace.
Definition space.c:469
void space_render(const double dt)
Renders the system.
Definition space.c:3441
int spob_luaInit(Spob *spob)
Updatse the spob's internal Lua stuff.
Definition space.c:1997
void systems_reconstructJumps(void)
Reconstructs the jumps.
Definition space.c:2738
int space_jumpDistance(const Pilot *p, const JumpPoint *jp)
Distance at which a pilot can jump.
Definition space.c:455
const glColour * spob_getColour(const Spob *p)
Gets the spob colour.
Definition space.c:1922
int space_rmMarker(int objid, MissionMarkerType type)
Removes a marker from a system.
Definition space.c:3873
int spob_averageSpobPrice(const Spob *p, const Commodity *c, credits_t *mean, double *std)
Gets the average price of a commodity at a spob that has been seen so far.
Definition space.c:316
double system_getPresenceFull(const StarSystem *sys, int faction, double *base, double *bonus)
Get the presence of a faction in a system.
Definition space.c:4210
Spob * spob_getAll(void)
Gets an array (array.h) of all spobs.
Definition space.c:1107
int spob_rename(Spob *p, char *newname)
Renames a spob.
Definition space.c:431
int spob_getService(const char *name)
Converts name to spob service flag.
Definition space.c:186
void system_setFaction(StarSystem *sys)
Sets the system faction based on the spobs it has.
Definition space.c:3091
Spob * spob_get(const char *spobname)
Gets a spob based on its name.
Definition space.c:1051
void space_factionChange(void)
Mark when a faction changes.
Definition space.c:1392
int system_addVirtualSpob(StarSystem *sys, const char *spobname)
Adds a virtual spob to a system.
Definition space.c:2545
const char * space_getRndSpob(int landable, unsigned int services, int(*filter)(Spob *p))
Gets the name of a random spob.
Definition space.c:633
int system_rmJump(StarSystem *sys, const char *jumpname)
Removes a jump point from a star system.
Definition space.c:2625
void space_update(double dt, double real_dt)
Controls fleet spawning.
Definition space.c:1414
StarSystem * system_getIndex(int id)
Get the system by its index.
Definition space.c:989
int spob_index(const Spob *p)
Gets the ID of a spob.
Definition space.c:1099
int spob_hasSystem(const Spob *spb)
Get whether or not a spob has a system (i.e. is on the map).
Definition space.c:1011
const char * jump_getSymbol(const JumpPoint *jp)
Gets the jump point symbol.
Definition space.c:1260
const char * spob_getSymbol(const Spob *p)
Gets the spob symbol.
Definition space.c:1900
void space_renderOverlay(const double dt)
Renders the system overlay.
Definition space.c:3457
int spob_setFaction(Spob *p, int faction)
Changes the spobs faction.
Definition space.c:349
char spob_getColourChar(const Spob *p)
Gets the spob colour char.
Definition space.c:1881
StarSystem * system_new(void)
Creates a new star system.
Definition space.c:2673
int space_sysReachable(const StarSystem *sys)
Sees if a system is reachable.
Definition space.c:826
JumpPoint * jump_getTarget(const StarSystem *target, const StarSystem *sys)
Less safe version of jump_get that works with pointers.
Definition space.c:1246
const char * system_existsCase(const char *sysname)
Checks to see if a system exists case insensitively.
Definition space.c:890
StarSystem * system_getAll(void)
Gets an array (array.h) of all star systems.
Definition space.c:879
char ** spob_searchFuzzyCase(const char *spobname, int *n)
Does a fuzzy case matching. Searches spob_name() but returns internal names.
Definition space.c:1151
int space_sysReachableFromSys(const StarSystem *target, const StarSystem *sys)
Sees if a system is reachable from another system.
Definition space.c:865
char ** system_searchFuzzyCase(const char *sysname, int *n)
Does a fuzzy case matching. Searches translated names but returns internal names.
Definition space.c:901
StarSystem * system_get(const char *sysname)
Get the system from its name.
Definition space.c:960
const char * spob_getSystem(const char *spobname)
Get the name of a system from a spobname.
Definition space.c:1025
int space_calcJumpInPos(const StarSystem *in, const StarSystem *out, vec2 *pos, vec2 *vel, double *dir, const Pilot *p)
Calculates the jump in pos for a pilot.
Definition space.c:527
int spob_rmService(Spob *p, int service)
Removes a service from a spob.
Definition space.c:418
void system_updateAsteroids(StarSystem *sys)
Updates some internal calculations about asteroids in a system.
Definition space.c:326
void spob_setKnown(Spob *p)
Sets a spob's known status, if it's real.
Definition space.c:1115
void spobs_render(void)
Renders the current systems' spobs.
Definition space.c:3476
StarSystem * cur_system
Definition space.c:106
const char * spob_existsCase(const char *spobname)
Check to see if a spob exists (case insensitive).
Definition space.c:1140
int system_addSpob(StarSystem *sys, const char *spobname)
Adds a spob to a star system.
Definition space.c:2452
void space_exit(void)
Cleans up the system.
Definition space.c:3564
int space_addMarker(int objid, MissionMarkerType type)
Adds a marker to a system.
Definition space.c:3787
double system_getPresence(const StarSystem *sys, int faction)
Get the presence of a faction in a system.
Definition space.c:4181
void spob_updateLand(Spob *p)
Updates the land possibilities of a spob.
Definition space.c:1943
int space_sysReallyReachable(const char *sysname)
Sees if a system can be reached via jumping.
Definition space.c:846
void spob_gfxLoad(Spob *spob)
Loads a spob's graphics (and radius).
Definition space.c:2078
int system_rmVirtualSpob(StarSystem *sys, const char *spobname)
Removes a virtual spob from a system.
Definition space.c:2569
void space_clearMarkers(void)
Clears all system markers.
Definition space.c:3696
VirtualSpob * virtualspob_getAll(void)
Gets all the virtual spobs.
Definition space.c:1186
Spob * spob_getIndex(int ind)
Gets spob by index.
Definition space.c:1082
void system_presenceAddSpob(StarSystem *sys, const SpobPresence *ap)
Adds (or removes) some presence to a system.
Definition space.c:4054
VirtualSpob * virtualspob_get(const char *name)
Gets a virtual spob by matching name.
Definition space.c:1205
void space_clearKnown(void)
Clears all system knowledge.
Definition space.c:3677
void system_addAllSpobsPresence(StarSystem *sys)
Go through all the spobs and call system_addPresence().
Definition space.c:4240
int spob_addCommodity(Spob *p, Commodity *c)
Adds a commodity to a spob.
Definition space.c:362
int system_hasSpob(const StarSystem *sys)
See if the system has a spob.
Definition space.c:4294
int spob_addService(Spob *p, int service)
Removes a service from a spob.
Definition space.c:376
const char * spob_name(const Spob *p)
Gets the translated name of a spob.
Definition space.c:1752
const char * spob_getClassName(const char *class)
Gets the long class name for a spob.
Definition space.c:215
const char * space_populationStr(const Spob *spb)
Gets the population in an approximated string. Note this function changes the string value each call,...
Definition space.c:4375
void space_clearComputerMarkers(void)
Clears all the system computer markers.
Definition space.c:3716
void space_queueLand(Spob *pnt)
Cues a spob to be landed on. This is not done immediately, but when the engine thinks it is ok to do.
Definition space.c:4364
int space_spawn
Definition space.c:117
credits_t spob_commodityPrice(const Spob *p, const Commodity *c)
Gets the price of a commodity at a spob.
Definition space.c:276
const char * spob_getServiceName(int service)
Gets the (English) name for a service code.
Definition space.c:167
void systems_reconstructSpobs(void)
Updates the system spob pointers.
Definition space.c:2753
Spob * spob_new(void)
Creates a new spob.
Definition space.c:1709
int space_needsEffects(void)
returns whether or not we're simulating with effects.
Definition space.c:1538
char ** space_getFactionSpob(const int *factions, int landable)
Gets the name of all the spobs that belong to factions.
Definition space.c:590
void spob_luaInitMem(const Spob *spob)
Initializes the memory fo a spob.
Definition space.c:1986
JumpPoint * jump_get(const char *jumpname, const StarSystem *sys)
Gets a jump point based on its target and system.
Definition space.c:1222
void space_checkLand(void)
Handles landing if necessary.
Definition space.c:1400
glTexture * jumppoint_gfx
Definition space.c:107
void space_gfxLoad(StarSystem *sys)
Loads all the graphics for a star system.
Definition space.c:2116
int space_hyperspace(Pilot *p)
Tries to get the pilot into hyperspace.
Definition space.c:503
int space_load(void)
Loads the entire universe into ram - pretty big feat eh?
Definition space.c:3313
int space_isSimulation(void)
returns whether we're just simulating.
Definition space.c:1530
credits_t spob_commodityPriceAtTime(const Spob *p, const Commodity *c, ntime_t t)
Gets the price of a commodity at a spob at given time.
Definition space.c:290
int system_index(const StarSystem *sys)
Gets the index of a star system.
Definition space.c:1000
int system_rmSpob(StarSystem *sys, const char *spobname)
Removes a spob from a star system.
Definition space.c:2493
int space_loadLua(void)
initializes the Lua for all the spobs.
Definition space.c:3349
void system_reconstructJumps(StarSystem *sys)
Reconstructs the jumps for a single system.
Definition space.c:2707
Represents an asteroid field anchor.
Definition asteroid.h:100
Represents an asteroid exclusion zone.
Definition asteroid.h:124
Represents a commodity.
Definition commodity.h:43
Represents a jump lane.
Definition space.h:203
unsigned int flags
Definition space.h:210
int sx
Definition space.h:217
int targetid
Definition space.h:205
double map_alpha
Definition space.h:213
vec2 pos
Definition space.h:208
JumpPoint * returnJump
Definition space.h:207
int sy
Definition space.h:218
double sina
Definition space.h:216
double angle
Definition space.h:212
MapOverlayPos mo
Definition space.h:219
double cosa
Definition space.h:215
double radius
Definition space.h:209
StarSystem * target
Definition space.h:206
StarSystem * from
Definition space.h:204
double hide
Definition space.h:211
Saves the layout decisions from positioning labeled objects on the overlay.
Definition space.h:57
float text_offx
Definition space.h:59
float text_width
Definition space.h:61
float radius
Definition space.h:58
float text_offy
Definition space.h:60
Map shader.
Definition space.h:226
char * name
Definition space.h:227
GLuint time
Definition space.h:232
GLuint globalpos
Definition space.h:233
GLuint projection
Definition space.h:230
GLuint alpha
Definition space.h:231
GLuint program
Definition space.h:228
GLuint vertex
Definition space.h:229
The representation of an in-game pilot.
Definition pilot.h:217
Represents relative ship statistics as a linked list.
Definition shipstats.h:167
Represents the presence of a spob.
Definition space.h:66
double bonus
Definition space.h:69
int range
Definition space.h:70
double base
Definition space.h:68
int faction
Definition space.h:67
Represents a Space Object (SPOB), including and not limited to planets, stations, wormholes,...
Definition space.h:89
int can_land
Definition space.h:108
char * gfx_commPath
Definition space.h:127
Commodity ** commodities
Definition space.h:116
glTexture * gfx_space
Definition space.h:121
char * land_msg
Definition space.h:110
unsigned int services
Definition space.h:115
int lua_update
Definition space.h:146
int land_override
Definition space.h:109
char * gfx_spacePath
Definition space.h:123
char * gfx_spaceName
Definition space.h:122
int lua_land
Definition space.h:144
double radius
Definition space.h:95
int markers
Definition space.h:134
double marker_scale
Definition space.h:97
char * feature
Definition space.h:93
char * bar_description
Definition space.h:114
int lua_comm
Definition space.h:147
int lua_render
Definition space.h:145
const SimpleShader * marker
Definition space.h:96
char * description
Definition space.h:113
char ** tags
Definition space.h:130
int lua_mem
Definition space.h:139
int lua_barbg
Definition space.h:149
int lua_init
Definition space.h:140
int lua_load
Definition space.h:141
tech_group_t * tech
Definition space.h:118
double map_alpha
Definition space.h:133
uint64_t population
Definition space.h:101
char * gfx_exterior
Definition space.h:124
nlua_env lua_env
Definition space.h:138
char * name
Definition space.h:91
char * gfx_exteriorPath
Definition space.h:125
vec2 pos
Definition space.h:94
MapOverlayPos mo
Definition space.h:132
int id
Definition space.h:90
char * gfx_comm
Definition space.h:126
CommodityPrice * commodityPrice
Definition space.h:117
double hide
Definition space.h:105
int lua_can_land
Definition space.h:143
int lua_population
Definition space.h:148
int lua_unload
Definition space.h:142
SpobPresence presence
Definition space.h:104
char * display
Definition space.h:92
unsigned int flags
Definition space.h:131
Represents a star system.
Definition space.h:241
AsteroidAnchor * asteroids
Definition space.h:267
int spilled
Definition space.h:276
double nebu_density
Definition space.h:251
int spacedust
Definition space.h:248
char * name
Definition space.h:246
int markers_low
Definition space.h:281
ShipStatList * stats
Definition space.h:295
Spob ** spobs
Definition space.h:258
char ** tags
Definition space.h:293
double nebu_hue
Definition space.h:250
int markers_high
Definition space.h:282
double * prices
Definition space.h:272
vec2 pos
Definition space.h:247
SystemPresence * presence
Definition space.h:275
JumpPoint * jumps
Definition space.h:264
VirtualSpob ** spobs_virtual
Definition space.h:261
double interference
Definition space.h:249
char * features
Definition space.h:255
int markers_plot
Definition space.h:283
char * note
Definition space.h:296
int claims_soft
Definition space.h:297
int faction
Definition space.h:260
double asteroid_density
Definition space.h:269
unsigned int flags
Definition space.h:294
int * spobsid
Definition space.h:259
char * map_shader
Definition space.h:286
double nebu_volatility
Definition space.h:252
double radius
Definition space.h:253
double ownerpresence
Definition space.h:277
int markers_computer
Definition space.h:280
const MapShader * ms
Definition space.h:287
char * background
Definition space.h:254
AsteroidExclusion * astexclude
Definition space.h:268
Represents presence in a system.
Definition space.h:175
double curUsed
Definition space.h:180
double value
Definition space.h:179
double timer
Definition space.h:181
double base
Definition space.h:177
double bonus
Definition space.h:178
Basically modifies system parameters without creating any real objects.
Definition space.h:78
SpobPresence * presences
Definition space.h:80
char * name
Definition space.h:79
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:36
Represents a 2d vector.
Definition vec2.h:32