Galactic Bloodshed
Functions
doplanet.cc File Reference
#include "gb/doplanet.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/GB_server.h"
#include "gb/VN.h"
#include "gb/bombard.h"
#include "gb/buffers.h"
#include "gb/build.h"
#include "gb/dosector.h"
#include "gb/doship.h"
#include "gb/doturn.h"
#include "gb/files_shl.h"
#include "gb/fire.h"
#include "gb/load.h"
#include "gb/max.h"
#include "gb/move.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/tech.h"
#include "gb/tele.h"
#include "gb/tweakables.h"
#include "gb/utils/rand.h"
#include "gb/vars.h"
Include dependency graph for doplanet.cc:

Go to the source code of this file.

Functions

static void do_dome (Ship *, SectorMap &)
 
static void do_quarry (Ship *, Planet *, SectorMap &)
 
static void do_berserker (Ship *, Planet *)
 
static void do_recover (Planet *, int, int)
 
static double est_production (const Sector &)
 
static int moveship_onplanet (Ship *, Planet *)
 
static void plow (Ship *, Planet *, SectorMap &)
 
static void terraform (Ship *, Planet *, SectorMap &)
 
int doplanet (const int starnum, Planet *planet, const int planetnum)
 

Function Documentation

◆ do_berserker()

static void do_berserker ( Ship ship,
Planet planet 
)
static

Definition at line 758 of file doplanet.cc.

Referenced by doplanet().

Here is the caller graph for this function:

◆ do_dome()

static void do_dome ( Ship ship,
SectorMap smap 
)
static

Definition at line 717 of file doplanet.cc.

References use_resource().

Referenced by doplanet().

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

◆ do_quarry()

static void do_quarry ( Ship ship,
Planet planet,
SectorMap smap 
)
static

Definition at line 733 of file doplanet.cc.

References msg_OOF().

Referenced by doplanet().

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

◆ do_recover()

static void do_recover ( Planet planet,
int  starnum,
int  planetnum 
)
static

Definition at line 769 of file doplanet.cc.

Referenced by doplanet().

Here is the caller graph for this function:

◆ doplanet()

int doplanet ( const int  starnum,
Planet planet,
const int  planetnum 
)

Definition at line 48 of file doplanet.cc.

References do_berserker(), do_dome(), do_quarry(), do_recover(), do_weapon_plant(), est_production(), explore(), getsmap(), Getxysect(), msg_OOF(), PermuteSects(), planet_guns(), plow(), produce(), putsmap(), rcv_fuel(), spread(), tech_prod(), and terraform().

Referenced by do_turn().

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

◆ est_production()

static double est_production ( const Sector s)
static

Definition at line 890 of file doplanet.cc.

Referenced by doplanet().

Here is the caller graph for this function:

◆ moveship_onplanet()

static int moveship_onplanet ( Ship ship,
Planet planet 
)
static

Definition at line 625 of file doplanet.cc.

References get_move().

Referenced by plow(), and terraform().

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

◆ plow()

static void plow ( Ship ship,
Planet planet,
SectorMap smap 
)
static

Definition at line 694 of file doplanet.cc.

References moveship_onplanet(), msg_OOF(), and use_fuel().

Referenced by doplanet().

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

◆ terraform()

static void terraform ( Ship ship,
Planet planet,
SectorMap smap 
)
static

Definition at line 663 of file doplanet.cc.

References moveship_onplanet(), msg_OOF(), and use_fuel().

Referenced by doplanet().

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