Galactic Bloodshed
Variables
globals.h File Reference
#include <ctime>
#include "gb/doturn.h"
#include "gb/map.h"
#include "gb/power.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/vars.h"
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

struct power Power [MAXPLAYERS]
 
struct block Blocks [MAXPLAYERS]
 
struct power_blocks Power_blocks
 
std::vector< Race * > races
 
char buf [2047]
 
char long_buf [1024]
 
char short_buf [256]
 
char telegram_buf [AUTO_TELEG_SIZE]
 
char temp [128]
 
int ShipVector [NUMSTYPES]
 
Ship ** ships
 
const int Defensedata [] = {1, 1, 3, 2, 2, 3, 2, 4, 0}
 
const char * Commod [] = {"resources", "destruct", "fuel", "crystals"}
 
struct stinfo Stinfo [NUMSTARS][MAXPLANETS]
 
struct vnbrain VN_brain
 
struct sectinfo Sectinfo [MAX_X][MAX_Y]
 
const char Psymbol [] = {'@', 'o', 'O', '#', '~', '.', ')', '-'}
 
const char * Planet_types []
 
time_t next_update_time
 
time_t next_segment_time
 
unsigned int update_time
 
segments_t nsegments_done
 
const char * Desnames []
 
const char Dessymbols []
 
struct stardata Sdata
 
unsigned char Nuked [MAXPLAYERS]
 
unsigned long StarsInhab [NUMSTARS]
 
unsigned long StarsExpl [NUMSTARS]
 
startypeStars [NUMSTARS]
 
unsigned short Sdatanumships [MAXPLAYERS]
 
unsigned long Sdatapopns [MAXPLAYERS]
 
unsigned short starnumships [NUMSTARS][MAXPLAYERS]
 
unsigned long starpopns [NUMSTARS][MAXPLAYERS]
 
unsigned long tot_resdep
 
unsigned long prod_eff
 
unsigned long prod_res [MAXPLAYERS]
 
unsigned long prod_fuel [MAXPLAYERS]
 
unsigned long prod_destruct [MAXPLAYERS]
 
unsigned long prod_crystals [MAXPLAYERS]
 
unsigned long prod_money [MAXPLAYERS]
 
unsigned long tot_captured
 
unsigned long prod_mob
 
unsigned long avg_mob [MAXPLAYERS]
 
unsigned char sects_gained [MAXPLAYERS]
 
unsigned char sects_lost [MAXPLAYERS]
 
unsigned char Claims
 
planettypeplanets [NUMSTARS][MAXPLANETS]
 
unsigned char ground_assaults [MAXPLAYERS][MAXPLAYERS][NUMSTARS]
 
unsigned long inhabited [NUMSTARS][2]
 
double Compat [MAXPLAYERS]
 
player_t Num_races
 
unsigned long Num_commods
 
shipnum_t Num_ships
 
planetnum_t Planet_count
 
unsigned long newslength [4]
 
unsigned long segments
 

Variable Documentation

◆ avg_mob

unsigned long avg_mob[MAXPLAYERS]

Definition at line 76 of file globals.h.

◆ Blocks

struct block Blocks[MAXPLAYERS]

Definition at line 21 of file globals.h.

◆ buf

char buf[2047]

Definition at line 26 of file globals.h.

◆ Claims

unsigned char Claims

Definition at line 78 of file globals.h.

◆ Commod

const char* Commod[] = {"resources", "destruct", "fuel", "crystals"}

Definition at line 38 of file globals.h.

◆ Compat

double Compat[MAXPLAYERS]

Definition at line 83 of file globals.h.

◆ Defensedata

const int Defensedata[] = {1, 1, 3, 2, 2, 3, 2, 4, 0}

Definition at line 35 of file globals.h.

◆ Desnames

const char* Desnames[]
Initial value:
= {"ocean", "land", "mountainous", "gaseous", "ice",
"forest", "desert", "plated", "wasted"}

Definition at line 54 of file globals.h.

◆ Dessymbols

const char Dessymbols[]
Initial value:
const char CHAR_PLATED
Definition: tweakables.h:47
const char CHAR_FOREST
Definition: tweakables.h:54
const char CHAR_LAND
Definition: tweakables.h:43
const char CHAR_DESERT
Definition: tweakables.h:53
const char CHAR_WASTED
Definition: tweakables.h:48
const char CHAR_MOUNT
Definition: tweakables.h:45
const char CHAR_GAS
Definition: tweakables.h:49
const char CHAR_SEA
Definition: tweakables.h:44
const char CHAR_ICE
Definition: tweakables.h:51

Definition at line 57 of file globals.h.

◆ ground_assaults

unsigned char ground_assaults[MAXPLAYERS][MAXPLAYERS][NUMSTARS]

Definition at line 81 of file globals.h.

◆ inhabited

unsigned long inhabited[NUMSTARS][2]

Definition at line 82 of file globals.h.

◆ long_buf

char long_buf[1024]

Definition at line 27 of file globals.h.

◆ newslength

unsigned long newslength[4]

Definition at line 88 of file globals.h.

◆ next_segment_time

time_t next_segment_time

Definition at line 50 of file globals.h.

◆ next_update_time

time_t next_update_time

Definition at line 49 of file globals.h.

◆ nsegments_done

segments_t nsegments_done

Definition at line 52 of file globals.h.

◆ Nuked

unsigned char Nuked[MAXPLAYERS]

Definition at line 63 of file globals.h.

◆ Num_commods

unsigned long Num_commods

Definition at line 85 of file globals.h.

◆ Num_races

player_t Num_races

Definition at line 84 of file globals.h.

◆ Num_ships

shipnum_t Num_ships

Definition at line 86 of file globals.h.

◆ Planet_count

planetnum_t Planet_count

Definition at line 87 of file globals.h.

◆ Planet_types

const char* Planet_types[]
Initial value:
= {"Class M", "Asteroid", "Airless", "Iceball",
"Jovian", "Waterball", "Forest", "Desert"}

Definition at line 46 of file globals.h.

◆ planets

Definition at line 80 of file globals.h.

◆ Power

struct power Power[MAXPLAYERS]

Definition at line 20 of file globals.h.

◆ Power_blocks

struct power_blocks Power_blocks

Definition at line 22 of file globals.h.

◆ prod_crystals

unsigned long prod_crystals[MAXPLAYERS]

Definition at line 74 of file globals.h.

◆ prod_destruct

unsigned long prod_destruct[MAXPLAYERS]

Definition at line 73 of file globals.h.

◆ prod_eff

unsigned long prod_eff

Definition at line 72 of file globals.h.

◆ prod_fuel

unsigned long prod_fuel[MAXPLAYERS]

Definition at line 73 of file globals.h.

◆ prod_mob

unsigned long prod_mob

Definition at line 75 of file globals.h.

◆ prod_money

unsigned long prod_money[MAXPLAYERS]

Definition at line 74 of file globals.h.

◆ prod_res

unsigned long prod_res[MAXPLAYERS]

Definition at line 72 of file globals.h.

◆ Psymbol

const char Psymbol[] = {'@', 'o', 'O', '#', '~', '.', ')', '-'}

Definition at line 45 of file globals.h.

◆ races

std::vector<Race *> races

Definition at line 24 of file globals.h.

◆ Sdata

struct stardata Sdata

Definition at line 61 of file globals.h.

◆ Sdatanumships

unsigned short Sdatanumships[MAXPLAYERS]

Definition at line 67 of file globals.h.

◆ Sdatapopns

unsigned long Sdatapopns[MAXPLAYERS]

Definition at line 68 of file globals.h.

◆ Sectinfo

struct sectinfo Sectinfo[MAX_X][MAX_Y]

Definition at line 43 of file globals.h.

◆ sects_gained

unsigned char sects_gained[MAXPLAYERS]

Definition at line 77 of file globals.h.

◆ sects_lost

unsigned char sects_lost[MAXPLAYERS]

Definition at line 77 of file globals.h.

◆ segments

unsigned long segments

Definition at line 90 of file globals.h.

◆ ships

Ship** ships

Definition at line 32 of file globals.h.

◆ ShipVector

int ShipVector[NUMSTYPES]

Definition at line 31 of file globals.h.

◆ short_buf

char short_buf[256]

Definition at line 27 of file globals.h.

◆ starnumships

unsigned short starnumships[NUMSTARS][MAXPLAYERS]

Definition at line 69 of file globals.h.

◆ starpopns

unsigned long starpopns[NUMSTARS][MAXPLAYERS]

Definition at line 70 of file globals.h.

◆ Stars

startype* Stars[NUMSTARS]

Definition at line 66 of file globals.h.

◆ StarsExpl

unsigned long StarsExpl[NUMSTARS]

Definition at line 65 of file globals.h.

◆ StarsInhab

unsigned long StarsInhab[NUMSTARS]

Definition at line 64 of file globals.h.

◆ Stinfo

struct stinfo Stinfo[NUMSTARS][MAXPLANETS]

Definition at line 41 of file globals.h.

◆ telegram_buf

char telegram_buf[AUTO_TELEG_SIZE]

Definition at line 28 of file globals.h.

◆ temp

char temp[128]

Definition at line 29 of file globals.h.

◆ tot_captured

unsigned long tot_captured

Definition at line 75 of file globals.h.

◆ tot_resdep

unsigned long tot_resdep

Definition at line 72 of file globals.h.

◆ update_time

unsigned int update_time

Definition at line 51 of file globals.h.

◆ VN_brain

struct vnbrain VN_brain

Definition at line 42 of file globals.h.