|
Galactic Bloodshed
|
#include "gb/creator/makeplanet.h"#include <cmath>#include <cstdlib>#include <cstring>#include <iostream>#include <tuple>#include <vector>#include "gb/creator/makestar.h"#include "gb/files_shl.h"#include "gb/tweakables.h"#include "gb/utils/rand.h"#include "gb/vars.h"Go to the source code of this file.
Functions | |
| static int | neighbors (SectorMap &smap, int x, int y, int type) |
| Returns # of neighbors of a given designation that a sector has. More... | |
| static void | MakeEarthAtmosphere (Planet &, int) |
| static void | Makesurface (const Planet &, SectorMap &) |
| static int | SectTemp (const Planet &, const int) |
| static void | seed (SectorMap &smap, int type, int n) |
| Randomly places n sectors of designation type on a planet. More... | |
| static void | grow (SectorMap &, int, int, int) |
| Planet | Makeplanet (double dist, short stemp, PlanetType type) |
Variables | |
| static const int | xmin [] = {15, 2, 4, 4, 26, 12, 12, 12} |
| static const int | xmax [] = {23, 4, 8, 8, 32, 20, 20, 20} |
| static const int | x_chance [] = {5, 15, 10, 4, 5, 7, 6} |
| static const int | Fmin [][8] |
| static const int | Fmax [][8] |
| static const int | rmin [][8] |
| static const int | rmax [][8] |
| static const int | cond [] |
|
static |
Spread out a sector of a certain type over the planet. Rate is the number of adjacent sectors of the same type that must be found for the sector to become type.
Definition at line 298 of file makeplanet.cc.
References neighbors().
Referenced by Makeplanet().
|
static |
Definition at line 237 of file makeplanet.cc.
Referenced by Makeplanet().
| Planet Makeplanet | ( | double | dist, |
| short | stemp, | ||
| PlanetType | type | ||
| ) |
Definition at line 86 of file makeplanet.cc.
References cond, grow(), MakeEarthAtmosphere(), Makesurface(), putsmap(), seed(), Temperature(), xmax, and xmin.
Referenced by Makestar().
Definition at line 320 of file makeplanet.cc.
References Fmax, Fmin, rmax, rmin, SectTemp(), and x_chance.
Referenced by Makeplanet().
|
static |
Returns # of neighbors of a given designation that a sector has.
Definition at line 264 of file makeplanet.cc.
Referenced by grow().
|
static |
Definition at line 353 of file makeplanet.cc.
Referenced by Makesurface().
|
static |
Randomly places n sectors of designation type on a planet.
Definition at line 287 of file makeplanet.cc.
Referenced by Makeplanet().
|
static |
Definition at line 74 of file makeplanet.cc.
Referenced by Makeplanet().
|
static |
Definition at line 43 of file makeplanet.cc.
Referenced by Makesurface().
|
static |
Definition at line 33 of file makeplanet.cc.
Referenced by Makesurface().
|
static |
Definition at line 63 of file makeplanet.cc.
Referenced by Makesurface().
|
static |
Definition at line 53 of file makeplanet.cc.
Referenced by Makesurface().
|
static |
Definition at line 32 of file makeplanet.cc.
Referenced by Makesurface().
|
static |
Definition at line 24 of file makeplanet.cc.
Referenced by Makeplanet().
|
static |
Definition at line 23 of file makeplanet.cc.
Referenced by Makeplanet().
1.8.13