Galactic Bloodshed
Functions
doturncmd.cc File Reference
#include "gb/doturncmd.h"
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/build.h"
#include "gb/doplanet.h"
#include "gb/doship.h"
#include "gb/doturn.h"
#include "gb/files.h"
#include "gb/files_shl.h"
#include "gb/moveplanet.h"
#include "gb/power.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/shlmisc.h"
#include "gb/tele.h"
#include "gb/tweakables.h"
#include "gb/utils/rand.h"
#include "gb/vars.h"
Include dependency graph for doturncmd.cc:

Go to the source code of this file.

Functions

static constexpr void maintain (Race &r, Race::gov &governor, const money_t amount) noexcept
 
static int APadd (int, int, Race *)
 
static int attack_planet (Ship *)
 
static void fix_stability (startype *)
 
static int governed (Race *)
 
static void make_discoveries (Race *)
 
static void output_ground_attacks ()
 
static int planet_points (const Planet &)
 
void do_turn (int update)
 
void handle_victory ()
 

Function Documentation

◆ APadd()

static int APadd ( int  sh,
int  popn,
Race race 
)
static

Definition at line 477 of file doturncmd.cc.

References governed().

Here is the call graph for this function:

◆ attack_planet()

static int attack_planet ( Ship ship)
static

Definition at line 642 of file doturncmd.cc.

Referenced by do_turn().

Here is the caller graph for this function:

◆ do_turn()

void do_turn ( int  update)

Definition at line 53 of file doturncmd.cc.

References attack_planet(), clr_commodfree(), clr_shipfree(), doabm(), domass(), domine(), domissile(), doown(), doplanet(), doship(), fix_stability(), getcommod(), getplanet(), getsdata(), getstar(), makecommoddead(), makeshipdead(), moveplanet(), Numcommods(), Numships(), output_ground_attacks(), Putblock(), putcommod(), putplanet(), Putpower(), putsdata(), putship(), putstar(), and shipping_cost().

Here is the call graph for this function:

◆ fix_stability()

void fix_stability ( startype s)
static

Definition at line 502 of file doturncmd.cc.

Referenced by do_turn().

Here is the caller graph for this function:

◆ governed()

int governed ( Race race)
static

Definition at line 487 of file doturncmd.cc.

Referenced by APadd().

Here is the caller graph for this function:

◆ handle_victory()

void handle_victory ( )

Definition at line 543 of file doturncmd.cc.

◆ maintain()

static constexpr void maintain ( Race r,
Race::gov governor,
const money_t  amount 
)
staticnoexcept

Definition at line 34 of file doturncmd.cc.

◆ make_discoveries()

static void make_discoveries ( Race r)
static

Definition at line 593 of file doturncmd.cc.

◆ output_ground_attacks()

static void output_ground_attacks ( )
static

Definition at line 648 of file doturncmd.cc.

References post().

Referenced by do_turn().

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

◆ planet_points()

static int planet_points ( const Planet p)
static

Definition at line 665 of file doturncmd.cc.