Galactic Bloodshed
Functions | Variables
makeuniv.cc File Reference
#include "gb/creator/makeuniv.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/build.h"
#include "gb/creator/makestar.h"
#include "gb/creator/namegen.h"
#include "gb/files.h"
#include "gb/files_shl.h"
#include "gb/globals.h"
#include "gb/map.h"
#include "gb/power.h"
#include "gb/races.h"
#include "gb/sql/sql.h"
#include "gb/tweakables.h"
#include "gb/utils/fileutils.h"
#include "gb/utils/rand.h"
#include "gb/vars.h"
Include dependency graph for makeuniv.cc:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 
void place_star (startype *star)
 

Variables

int autoname_star = -1
 
int autoname_plan = -1
 
int minplanets = -1
 
int maxplanets = -1
 
int printplaninfo = 0
 
int printstarinfo = 0
 
static int nstars = -1
 
static int occupied [100][100]
 
static int planetlesschance = 0
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 42 of file makeuniv.cc.

References autoname_plan, autoname_star, initsqldata(), Makeplanet_init(), Makestar(), Makestar_init(), maxplanets, minplanets, nstars, planetlesschance, printplaninfo, printstarinfo, PrintStatistics(), putsdata(), and putstar().

Here is the call graph for this function:

◆ place_star()

void place_star ( startype star)

Definition at line 228 of file makeuniv.cc.

References occupied.

Referenced by Makestar().

Here is the caller graph for this function:

Variable Documentation

◆ autoname_plan

int autoname_plan = -1

Definition at line 32 of file makeuniv.cc.

Referenced by main(), and NextPlanetName().

◆ autoname_star

int autoname_star = -1

Definition at line 31 of file makeuniv.cc.

Referenced by main(), and NextStarName().

◆ maxplanets

int maxplanets = -1

Definition at line 34 of file makeuniv.cc.

Referenced by main(), and Makestar().

◆ minplanets

int minplanets = -1

Definition at line 33 of file makeuniv.cc.

Referenced by main(), and Makestar().

◆ nstars

int nstars = -1
static

Definition at line 38 of file makeuniv.cc.

Referenced by main().

◆ occupied

int occupied[100][100]
static

Definition at line 39 of file makeuniv.cc.

Referenced by place_star().

◆ planetlesschance

int planetlesschance = 0
static

Definition at line 40 of file makeuniv.cc.

Referenced by main().

◆ printplaninfo

int printplaninfo = 0

Definition at line 35 of file makeuniv.cc.

Referenced by main(), and Makestar().

◆ printstarinfo

int printstarinfo = 0

Definition at line 36 of file makeuniv.cc.

Referenced by main(), and Makestar().