naev 0.12.5
Spob Struct Reference

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

#include <space.h>

Collaboration diagram for Spob:

Data Fields

char * filename
int id
char * name
char * display
char * feature
vec2 pos
double radius
const SimpleShader * marker
double marker_scale
char * class
double 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
double gfx_space3d_size
GltfObjectgfx_space3d
char * gfx_space3dName
char * gfx_space3dPath
GLuint gfx_fbo
GLuint gfx_dtex
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_raw
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
int lua_distress

Detailed Description

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

Definition at line 102 of file space.h.

Field Documentation

◆ bar_description

char* Spob::bar_description

Spob spaceport bar description

Definition at line 132 of file space.h.

◆ can_land

int Spob::can_land

Whether or not the player can land.

Definition at line 125 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 116 of file space.h.

◆ commodities

Commodity** Spob::commodities

array: what commodities they sell

Definition at line 134 of file space.h.

◆ commodityPrice

CommodityPrice* Spob::commodityPrice

array: the base cost of a commodity on this spob

Definition at line 136 of file space.h.

◆ description

char* Spob::description

Spob description.

Definition at line 131 of file space.h.

◆ display

char* Spob::display

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

Definition at line 106 of file space.h.

◆ feature

char* Spob::feature

Name of the feature the spob provides if applicable.

Definition at line 108 of file space.h.

◆ filename

char* Spob::filename

File name of the spob, for use with the editor.

Definition at line 103 of file space.h.

◆ flags

unsigned int Spob::flags

flags for spob properties

Definition at line 156 of file space.h.

◆ gfx_comm

char* Spob::gfx_comm

Name of the texture.

Definition at line 151 of file space.h.

◆ gfx_commPath

char* Spob::gfx_commPath

Communication image path.

Definition at line 152 of file space.h.

◆ gfx_dtex

GLuint Spob::gfx_dtex

Definition at line 145 of file space.h.

◆ gfx_exterior

char* Spob::gfx_exterior

Don't actually load the texture

Definition at line 149 of file space.h.

◆ gfx_exteriorPath

char* Spob::gfx_exteriorPath

Name of the gfx_exterior for saving purposes.

Definition at line 150 of file space.h.

◆ gfx_fbo

GLuint Spob::gfx_fbo

Definition at line 144 of file space.h.

◆ gfx_space

glTexture* Spob::gfx_space

Graphic in space

Definition at line 146 of file space.h.

◆ gfx_space3d

GltfObject* Spob::gfx_space3d

Definition at line 141 of file space.h.

◆ gfx_space3d_size

double Spob::gfx_space3d_size

Definition at line 140 of file space.h.

◆ gfx_space3dName

char* Spob::gfx_space3dName

Definition at line 142 of file space.h.

◆ gfx_space3dPath

char* Spob::gfx_space3dPath

Definition at line 143 of file space.h.

◆ gfx_spaceName

char* Spob::gfx_spaceName

Name to load texture quickly with.

Definition at line 147 of file space.h.

◆ gfx_spacePath

char* Spob::gfx_spacePath

Name of the gfx_space for saving purposes.

Definition at line 148 of file space.h.

◆ hide

double Spob::hide

The ewarfare hide value for the spob.

Definition at line 122 of file space.h.

◆ id

int Spob::id

Spob ID.

Definition at line 104 of file space.h.

◆ land_msg

char* Spob::land_msg

Message on landing.

Definition at line 128 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 126 of file space.h.

◆ lua_barbg

int Spob::lua_barbg

Run to generate bar backgrounds as necessary.

Definition at line 176 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 169 of file space.h.

◆ lua_comm

int Spob::lua_comm

Run when player communicates with the spob.

Definition at line 173 of file space.h.

◆ lua_distress

int Spob::lua_distress

Run when a pilot is distressing in the system.

Definition at line 177 of file space.h.

◆ lua_env

nlua_env Spob::lua_env

Lua environment.

Definition at line 164 of file space.h.

◆ lua_file

char* Spob::lua_file

Lua File.

Definition at line 163 of file space.h.

◆ lua_file_raw

char* Spob::lua_file_raw

Raw Lua File name for saving purposes.

Definition at line 162 of file space.h.

◆ lua_init

int Spob::lua_init

Run when initializing the spob.

Definition at line 166 of file space.h.

◆ lua_land

int Spob::lua_land

Run when a pilot "lands".

Definition at line 170 of file space.h.

◆ lua_load

int Spob::lua_load

Run when player enters system.

Definition at line 167 of file space.h.

◆ lua_mem

int Spob::lua_mem

Memory of the current instance.

Definition at line 165 of file space.h.

◆ lua_population

int Spob::lua_population

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

Definition at line 174 of file space.h.

◆ lua_render

int Spob::lua_render

Run when rendering.

Definition at line 171 of file space.h.

◆ lua_unload

int Spob::lua_unload

Run when player exits system.

Definition at line 168 of file space.h.

◆ lua_update

int Spob::lua_update

Run when updating.

Definition at line 172 of file space.h.

◆ map_alpha

double Spob::map_alpha

Alpha to display on the map.

Definition at line 158 of file space.h.

◆ marker

const SimpleShader* Spob::marker

GUI marker.

Definition at line 112 of file space.h.

◆ marker_scale

double Spob::marker_scale

Scales the marker.

Definition at line 113 of file space.h.

◆ markers

int Spob::markers

Markers enabled on the spob.

Definition at line 159 of file space.h.

◆ mo

MapOverlayPos Spob::mo

Overlay layout data.

Definition at line 157 of file space.h.

◆ name

char* Spob::name

Spob name

Definition at line 105 of file space.h.

◆ population

double Spob::population

Population of the spob.

Definition at line 118 of file space.h.

◆ pos

vec2 Spob::pos

position in star system

Definition at line 109 of file space.h.

◆ presence

SpobPresence Spob::presence

Presence details (faction, etc.)

Definition at line 121 of file space.h.

◆ radius

double Spob::radius

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

Definition at line 110 of file space.h.

◆ services

unsigned int Spob::services

What services they offer

Definition at line 133 of file space.h.

◆ tags

char** Spob::tags

Spob tags.

Definition at line 155 of file space.h.

◆ tech

tech_group_t* Spob::tech

Spob tech.

Definition at line 137 of file space.h.


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