Galactic Bloodshed
Macros | Functions | Variables
survey.cc File Reference
#include "gb/survey.h"
#include <strings.h>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/csp.h"
#include "gb/csp_types.h"
#include "gb/files_shl.h"
#include "gb/fire.h"
#include "gb/getplace.h"
#include "gb/map.h"
#include "gb/max.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/tweakables.h"
#include "gb/vars.h"
Include dependency graph for survey.cc:

Go to the source code of this file.

Macros

#define MAX_SHIPS_PER_SECTOR   10
 

Functions

static void get4args (const char *, int *, int *, int *, int *)
 
void survey (const command_t &argv, GameObj &g)
 
void repair (const command_t &argv, GameObj &g)
 

Variables

static const char * Tox []
 

Macro Definition Documentation

◆ MAX_SHIPS_PER_SECTOR

#define MAX_SHIPS_PER_SECTOR   10

Definition at line 29 of file survey.cc.

Function Documentation

◆ get4args()

static void get4args ( const char *  s,
int *  xl,
int *  xh,
int *  yl,
int *  yh 
)
static

Definition at line 468 of file survey.cc.

◆ repair()

void repair ( const command_t argv,
GameObj g 
)

Definition at line 382 of file survey.cc.

References getplanet(), getsmap(), putplanet(), and putsector().

Here is the call graph for this function:

◆ survey()

void survey ( const command_t argv,
GameObj g 
)

Definition at line 47 of file survey.cc.

References compatibility(), desshow(), getplanet(), getsmap(), gravity(), maxsupport(), and Tox.

Here is the call graph for this function:

Variable Documentation

◆ Tox

const char* Tox[]
static
Initial value:
= {
"Stage 0, mild",
"Stage 1, mild",
"Stage 2, semi-mild",
"Stage 3, semi-semi mild",
"Stage 4, ecologically unsound",
"Stage 5: ecologically unsound",
"Stage 6: below birth threshold",
"Stage 7: ecologically unstable--below birth threshold",
"Stage 8: ecologically poisonous --below birth threshold",
"Stage 9: WARNING: nearing 100% toxicity",
"Stage 10: WARNING: COMPLETELY TOXIC!!!",
"???"}

Definition at line 31 of file survey.cc.

Referenced by survey().