naev 0.11.5
Spob Struct Reference

Represents a Space Object (SPOB), including and not limited to planets, stations, wormholes, hypergates, etc... More...

#include <space.h>

Data Fields

int id
 
char * name
 
char * display
 
char * feature
 
vec2 pos
 
double radius
 
const SimpleShader * marker
 
double marker_scale
 
char * class
 
uint64_t population
 
SpobPresence presence
 
double hide
 
int can_land
 
int land_override
 
char * land_msg
 
char * description
 
char * bar_description
 
unsigned int services
 
Commodity ** commodities
 
CommodityPricecommodityPrice
 
tech_group_t * tech
 
glTexturegfx_space
 
char * gfx_spaceName
 
char * gfx_spacePath
 
char * gfx_exterior
 
char * gfx_exteriorPath
 
char * gfx_comm
 
char * gfx_commPath
 
char ** tags
 
unsigned int flags
 
MapOverlayPos mo
 
double map_alpha
 
int markers
 
char * lua_file
 
nlua_env lua_env
 
int lua_mem
 
int lua_init
 
int lua_load
 
int lua_unload
 
int lua_can_land
 
int lua_land
 
int lua_render
 
int lua_update
 
int lua_comm
 
int lua_population
 
int lua_barbg
 

Detailed Description

Represents a Space Object (SPOB), including and not limited to planets, stations, wormholes, hypergates, etc...

Definition at line 89 of file space.h.

Field Documentation

◆ bar_description

char* Spob::bar_description

Spob spaceport bar description

Definition at line 114 of file space.h.

◆ can_land

int Spob::can_land

Whether or not the player can land.

Definition at line 108 of file space.h.

◆ class

char* Spob::class

Spob type. Uses Star Trek classification system for planets (https://stexpanded.fandom.com/wiki/Spob_classifications)

Definition at line 100 of file space.h.

◆ commodities

Commodity** Spob::commodities

array: what commodities they sell

Definition at line 116 of file space.h.

◆ commodityPrice

CommodityPrice* Spob::commodityPrice

array: the base cost of a commodity on this spob

Definition at line 117 of file space.h.

◆ description

char* Spob::description

Spob description.

Definition at line 113 of file space.h.

◆ display

char* Spob::display

Name to be displayed to the player. Defaults to name if not set.

Definition at line 92 of file space.h.

◆ feature

char* Spob::feature

Name of the feature the spob provides if applicable.

Definition at line 93 of file space.h.

◆ flags

unsigned int Spob::flags

flags for spob properties

Definition at line 131 of file space.h.

◆ gfx_comm

char* Spob::gfx_comm

Name of the texture.

Definition at line 126 of file space.h.

◆ gfx_commPath

char* Spob::gfx_commPath

Communication image path.

Definition at line 127 of file space.h.

◆ gfx_exterior

char* Spob::gfx_exterior

Don't actually load the texture

Definition at line 124 of file space.h.

◆ gfx_exteriorPath

char* Spob::gfx_exteriorPath

Name of the gfx_exterior for saving purposes.

Definition at line 125 of file space.h.

◆ gfx_space

glTexture* Spob::gfx_space

Graphic in space

Definition at line 121 of file space.h.

◆ gfx_spaceName

char* Spob::gfx_spaceName

Name to load texture quickly with.

Definition at line 122 of file space.h.

◆ gfx_spacePath

char* Spob::gfx_spacePath

Name of the gfx_space for saving purposes.

Definition at line 123 of file space.h.

◆ hide

double Spob::hide

The ewarfare hide value for the spob.

Definition at line 105 of file space.h.

◆ id

int Spob::id

Spob ID.

Definition at line 90 of file space.h.

◆ land_msg

char* Spob::land_msg

Message on landing.

Definition at line 110 of file space.h.

◆ land_override

int Spob::land_override

Forcibly allows the player to either be able to land or not (+1 is land, -1 is not, 0 otherwise).

Definition at line 109 of file space.h.

◆ lua_barbg

int Spob::lua_barbg

Run to generate bar backgrounds as necessary.

Definition at line 149 of file space.h.

◆ lua_can_land

int Spob::lua_can_land

Checks to see if the player can land on the spob.

Definition at line 143 of file space.h.

◆ lua_comm

int Spob::lua_comm

Run when player communicates with the spob.

Definition at line 147 of file space.h.

◆ lua_env

nlua_env Spob::lua_env

,< Lua File. Lua environment.

Definition at line 138 of file space.h.

◆ lua_file

char* Spob::lua_file

Definition at line 137 of file space.h.

◆ lua_init

int Spob::lua_init

Run when initializing the spob.

Definition at line 140 of file space.h.

◆ lua_land

int Spob::lua_land

Run when a pilot "lands".

Definition at line 144 of file space.h.

◆ lua_load

int Spob::lua_load

Run when player enters system.

Definition at line 141 of file space.h.

◆ lua_mem

int Spob::lua_mem

Memory of the current instance.

Definition at line 139 of file space.h.

◆ lua_population

int Spob::lua_population

Run when getting a string representing the population of the spob.

Definition at line 148 of file space.h.

◆ lua_render

int Spob::lua_render

Run when rendering.

Definition at line 145 of file space.h.

◆ lua_unload

int Spob::lua_unload

Run when player exits system.

Definition at line 142 of file space.h.

◆ lua_update

int Spob::lua_update

Run when updating.

Definition at line 146 of file space.h.

◆ map_alpha

double Spob::map_alpha

Alpha to display on the map.

Definition at line 133 of file space.h.

◆ marker

const SimpleShader* Spob::marker

GUI marker.

Definition at line 96 of file space.h.

◆ marker_scale

double Spob::marker_scale

Scales the marker.

Definition at line 97 of file space.h.

◆ markers

int Spob::markers

Markers enabled on the spob.

Definition at line 134 of file space.h.

◆ mo

MapOverlayPos Spob::mo

Overlay layout data.

Definition at line 132 of file space.h.

◆ name

char* Spob::name

Spob name

Definition at line 91 of file space.h.

◆ population

uint64_t Spob::population

Population of the spob.

Definition at line 101 of file space.h.

◆ pos

vec2 Spob::pos

position in star system

Definition at line 94 of file space.h.

◆ presence

SpobPresence Spob::presence

Presence details (faction, etc.)

Definition at line 104 of file space.h.

◆ radius

double Spob::radius

Radius of the space object. WARNING: lazy-loaded with gfx_space.

Definition at line 95 of file space.h.

◆ services

unsigned int Spob::services

What services they offer

Definition at line 115 of file space.h.

◆ tags

char** Spob::tags

Spob tags.

Definition at line 130 of file space.h.

◆ tech

tech_group_t* Spob::tech

Spob tech.

Definition at line 118 of file space.h.


The documentation for this struct was generated from the following file: