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

Go to the source code of this file.

Classes

struct  map
 

Functions

void PermuteSects (const Planet &planet)
 
int Getxysect (const Planet &p, int *x, int *y, int r)
 

Variables

static struct map xymap [(MAX_X+1) *(MAX_Y+1)]
 

Function Documentation

◆ Getxysect()

int Getxysect ( const Planet p,
int *  x,
int *  y,
int  r 
)

Definition at line 39 of file perm.cc.

References map::x, and map::y.

Referenced by bombard(), doplanet(), enroll_valid_race(), and main().

Here is the caller graph for this function:

◆ PermuteSects()

void PermuteSects ( const Planet planet)

Definition at line 16 of file perm.cc.

References map::x, and map::y.

Referenced by do_meta_infect(), doplanet(), enroll_valid_race(), and main().

Here is the caller graph for this function:

Variable Documentation

◆ xymap

struct map xymap[(MAX_X + 1) * (MAX_Y + 1)]
static