Galactic Bloodshed
Classes | Macros | Functions
analysis.cc File Reference
#include "gb/commands/analysis.h"
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/files_shl.h"
#include "gb/getplace.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 analysis.cc:

Go to the source code of this file.

Classes

struct  anal_sect
 

Macros

#define CARE   5
 

Functions

static void do_analysis (GameObj &, int, int, int, starnum_t, planetnum_t)
 
static void Insert (int, struct anal_sect[], int, int, int, int)
 
static void PrintTop (GameObj &, struct anal_sect[], const char *)
 
void analysis (const command_t &argv, GameObj &g)
 

Macro Definition Documentation

◆ CARE

#define CARE   5

Definition at line 21 of file analysis.cc.

Function Documentation

◆ analysis()

void analysis ( const command_t argv,
GameObj g 
)

Definition at line 32 of file analysis.cc.

References do_analysis().

Here is the call graph for this function:

◆ do_analysis()

static void do_analysis ( GameObj g,
int  ThisPlayer,
int  mode,
int  sector_type,
starnum_t  Starnum,
planetnum_t  Planetnum 
)
static

Definition at line 119 of file analysis.cc.

References compatibility(), getplanet(), getsmap(), Insert(), maxsupport(), PrintTop(), and anal_sect::value.

Referenced by analysis().

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

◆ Insert()

static void Insert ( int  mode,
struct anal_sect  arr[],
int  x,
int  y,
int  des,
int  value 
)
static

Definition at line 318 of file analysis.cc.

References anal_sect::des, anal_sect::value, anal_sect::x, and anal_sect::y.

Referenced by do_analysis().

Here is the caller graph for this function:

◆ PrintTop()

static void PrintTop ( GameObj g,
struct anal_sect  arr[],
const char *  name 
)
static

Definition at line 332 of file analysis.cc.

References anal_sect::des, anal_sect::value, anal_sect::x, and anal_sect::y.

Referenced by do_analysis().

Here is the caller graph for this function: