Galactic Bloodshed
Functions | Variables
dosector.cc File Reference
#include "gb/dosector.h"
#include "gb/doturn.h"
#include "gb/max.h"
#include "gb/races.h"
#include "gb/tweakables.h"
#include "gb/utils/rand.h"
#include "gb/vars.h"
Include dependency graph for dosector.cc:

Go to the source code of this file.

Functions

static void Migrate2 (const Planet &, int, int, Sector &, int *, SectorMap &)
 
static void plate (Sector &)
 
void produce (startype *star, const Planet &planet, Sector &s)
 
void spread (const Planet &pl, Sector &s, int x, int y, SectorMap &smap)
 
void explore (const Planet &planet, Sector &s, int x, int y, int p)
 

Variables

static const int x_adj [] = {-1, 0, 1, -1, 1, -1, 0, 1}
 
static const int y_adj [] = {1, 1, 1, 0, 0, -1, -1, -1}
 

Function Documentation

◆ explore()

void explore ( const Planet planet,
Sector s,
int  x,
int  y,
int  p 
)

Definition at line 170 of file dosector.cc.

Referenced by doplanet().

Here is the caller graph for this function:

◆ Migrate2()

static void Migrate2 ( const Planet planet,
int  xd,
int  yd,
Sector ps,
int *  people,
SectorMap smap 
)
static

Definition at line 139 of file dosector.cc.

Referenced by spread().

Here is the caller graph for this function:

◆ plate()

static void plate ( Sector s)
static

Definition at line 189 of file dosector.cc.

Referenced by produce().

Here is the caller graph for this function:

◆ produce()

void produce ( startype star,
const Planet planet,
Sector s 
)

Definition at line 21 of file dosector.cc.

References maxsupport(), and plate().

Referenced by doplanet().

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

◆ spread()

void spread ( const Planet pl,
Sector s,
int  x,
int  y,
SectorMap smap 
)

Definition at line 108 of file dosector.cc.

References Migrate2(), x_adj, and y_adj.

Referenced by doplanet().

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

Variable Documentation

◆ x_adj

const int x_adj[] = {-1, 0, 1, -1, 1, -1, 0, 1}
static

Definition at line 14 of file dosector.cc.

Referenced by spread().

◆ y_adj

const int y_adj[] = {1, 1, 1, 0, 0, -1, -1, -1}
static

Definition at line 15 of file dosector.cc.

Referenced by spread().