Galactic Bloodshed
Functions | Variables
GB_racegen.cc File Reference
#include "gb/GB_racegen.h"
#include <unistd.h>
#include <csignal>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/build.h"
#include "gb/files_shl.h"
#include "gb/globals.h"
#include "gb/map.h"
#include "gb/max.h"
#include "gb/perm.h"
#include "gb/racegen.h"
#include "gb/races.h"
#include "gb/shipdata.h"
#include "gb/ships.h"
#include "gb/sql/sql.h"
#include "gb/tweakables.h"
#include "gb/utils/rand.h"
#include "gb/vars.h"
Include dependency graph for GB_racegen.cc:

Go to the source code of this file.

Functions

bool notify (const player_t, const governor_t, const std::string &)
 
void warn (const player_t, const governor_t, const std::string &)
 
void init_enroll ()
 
int enroll_valid_race ()
 

Variables

static const PlanetType planet_translate [N_HOME_PLANET_TYPES]
 

Function Documentation

◆ enroll_valid_race()

int enroll_valid_race ( )

Definition at line 48 of file GB_racegen.cc.

References getplanet(), getsdata(), getsmap(), getstar(), Getxysect(), maxsupport(), Numraces(), Numships(), PermuteSects(), planet_translate, putplanet(), putrace(), putsector(), putship(), and putstar().

Referenced by enroll(), and enroll_player_race().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_enroll()

void init_enroll ( )

Definition at line 44 of file GB_racegen.cc.

◆ notify()

bool notify ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 37 of file GB_racegen.cc.

◆ warn()

void warn ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 42 of file GB_racegen.cc.

Variable Documentation

◆ planet_translate

const PlanetType planet_translate[N_HOME_PLANET_TYPES]
static