Galactic Bloodshed
Functions
doship.cc File Reference
#include "gb/doship.h"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/GB_server.h"
#include "gb/VN.h"
#include "gb/buffers.h"
#include "gb/build.h"
#include "gb/doturn.h"
#include "gb/files.h"
#include "gb/files_shl.h"
#include "gb/fire.h"
#include "gb/load.h"
#include "gb/max.h"
#include "gb/moveship.h"
#include "gb/perm.h"
#include "gb/power.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/shlmisc.h"
#include "gb/shootblast.h"
#include "gb/tele.h"
#include "gb/tweakables.h"
#include "gb/utils/rand.h"
#include "gb/vars.h"
Include dependency graph for doship.cc:

Go to the source code of this file.

Functions

static double ap_planet_factor (Planet *)
 
static double crew_factor (Ship *)
 
static void do_ap (Ship *)
 
static void do_canister (Ship *)
 
static void do_greenhouse (Ship *)
 
static void do_god (Ship *)
 
static void do_habitat (Ship *)
 
static void do_meta_infect (int, Planet *)
 
static void do_mirror (Ship *)
 
static void do_oap (Ship *)
 
static void do_pod (Ship *)
 
static void do_repair (Ship *)
 
static int infect_planet (int, int, int)
 
void doship (Ship *ship, int update)
 
void domass (Ship *ship)
 
void doown (Ship *ship)
 
void domissile (Ship *ship)
 
void domine (int shipno, int detonate)
 
void doabm (Ship *ship)
 
int do_weapon_plant (Ship *ship)
 

Function Documentation

◆ ap_planet_factor()

static double ap_planet_factor ( Planet p)
static

Definition at line 739 of file doship.cc.

Referenced by do_ap().

Here is the caller graph for this function:

◆ crew_factor()

static double crew_factor ( Ship ship)
static

Definition at line 732 of file doship.cc.

Referenced by do_ap().

Here is the caller graph for this function:

◆ do_ap()

static void do_ap ( Ship ship)
static

Definition at line 706 of file doship.cc.

References ap_planet_factor(), crew_factor(), msg_OOF(), and use_fuel().

Referenced by doship().

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

◆ do_canister()

static void do_canister ( Ship ship)
static

Definition at line 584 of file doship.cc.

References prin_ship_orbits().

Referenced by doship().

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

◆ do_god()

static void do_god ( Ship ship)
static

Definition at line 697 of file doship.cc.

Referenced by doship().

Here is the caller graph for this function:

◆ do_greenhouse()

static void do_greenhouse ( Ship ship)
static

Definition at line 607 of file doship.cc.

References prin_ship_orbits().

Referenced by doship().

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

◆ do_habitat()

static void do_habitat ( Ship ship)
static

Definition at line 487 of file doship.cc.

References do_weapon_plant(), rcv_destruct(), rcv_resource(), and use_fuel().

Referenced by doship().

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

◆ do_meta_infect()

static void do_meta_infect ( int  who,
Planet p 
)
static

Definition at line 554 of file doship.cc.

References getsmap(), PermuteSects(), and putsmap().

Referenced by infect_planet().

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

◆ do_mirror()

static void do_mirror ( Ship ship)
static

Definition at line 630 of file doship.cc.

Referenced by doship().

Here is the caller graph for this function:

◆ do_oap()

static void do_oap ( Ship ship)
static

Definition at line 746 of file doship.cc.

Referenced by doship().

Here is the caller graph for this function:

◆ do_pod()

static void do_pod ( Ship ship)
static

Definition at line 515 of file doship.cc.

References infect_planet().

Referenced by doship().

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

◆ do_repair()

static void do_repair ( Ship ship)
static

Definition at line 456 of file doship.cc.

References use_resource().

Referenced by doship().

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

◆ do_weapon_plant()

int do_weapon_plant ( Ship ship)

Definition at line 752 of file doship.cc.

References use_fuel(), and use_resource().

Referenced by do_habitat(), and doplanet().

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

◆ doabm()

void doabm ( Ship ship)

Definition at line 419 of file doship.cc.

References post(), retal_strength(), and shoot_ship_to_ship().

Referenced by do_turn().

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

◆ domass()

void domass ( Ship ship)

Definition at line 204 of file doship.cc.

References domass().

Referenced by do_trip(), do_turn(), domass(), and proj_fuel().

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

◆ domine()

void domine ( int  shipno,
int  detonate 
)

Definition at line 316 of file doship.cc.

References post(), and putship().

Referenced by detonate(), and do_turn().

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

◆ domissile()

void domissile ( Ship ship)

Definition at line 237 of file doship.cc.

References getsmap(), post(), putsmap(), shoot_ship_to_planet(), and shoot_ship_to_ship().

Referenced by do_turn().

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

◆ doown()

void doown ( Ship ship)

Definition at line 226 of file doship.cc.

References doown().

Referenced by do_turn(), and doown().

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

◆ doship()

void doship ( Ship ship,
int  update 
)

Definition at line 50 of file doship.cc.

References do_ap(), do_canister(), do_god(), do_greenhouse(), do_habitat(), do_mirror(), do_oap(), do_pod(), do_repair(), and moveship().

Referenced by do_turn().

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

◆ infect_planet()

static int infect_planet ( int  who,
int  star,
int  p 
)
static

Definition at line 546 of file doship.cc.

References do_meta_infect().

Referenced by do_pod().

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