Galactic Bloodshed
Namespaces | Functions
ships.cc File Reference
#include <boost/format.hpp>
#include <cmath>
#include "gb/defense.h"
#include "gb/ships.h"
#include "gb/files_shl.h"
Include dependency graph for ships.cc:

Go to the source code of this file.

Namespaces

 anonymous_namespace{ships.cc}
 

Functions

unsigned short speed_rating (const Ship &s)
 
bool has_switch (const Ship &s)
 
bool can_bombard (const Ship &s)
 
bool can_navigate (const Ship &s)
 
bool can_aim (const Ship &s)
 
unsigned long armor (const Ship &s)
 
long guns (const Ship &s)
 
population_t max_crew (const Ship &s)
 
population_t max_mil (const Ship &s)
 
long max_resource (const Ship &s)
 
int max_crystals (const Ship &)
 
long max_fuel (const Ship &s)
 
long max_destruct (const Ship &s)
 
long max_speed (const Ship &s)
 
long shipcost (const Ship &s)
 
double mass (const Ship &s)
 
long shipsight (const Ship &s)
 
long retaliate (const Ship &s)
 
int size (const Ship &s)
 
int shipbody (const Ship &s)
 
long hanger (const Ship &s)
 
long repair (const Ship &s)
 
int getdefense (const Ship &ship)
 
bool laser_on (const Ship &ship)
 
bool landed (const Ship &ship)
 
void capture_stuff (const Ship &ship, GameObj &g)
 
std::string ship_to_string (const Ship &s)
 
double getmass (const Ship &s)
 
unsigned int ship_size (const Ship &s)
 
double cost (const Ship &s)
 
void anonymous_namespace{ships.cc}::system_cost (double *advantage, double *disadvantage, int value, int base)
 
double complexity (const Ship &s)
 

Function Documentation

◆ armor()

unsigned long armor ( const Ship s)

Definition at line 38 of file ships.cc.

◆ can_aim()

bool can_aim ( const Ship s)

Definition at line 33 of file ships.cc.

◆ can_bombard()

bool can_bombard ( const Ship s)

Definition at line 22 of file ships.cc.

◆ can_navigate()

bool can_navigate ( const Ship s)

Definition at line 27 of file ships.cc.

◆ capture_stuff()

void capture_stuff ( const Ship ship,
GameObj g 
)

Definition at line 142 of file ships.cc.

References capture_stuff().

Referenced by capture_stuff().

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

◆ complexity()

double complexity ( const Ship s)

Definition at line 211 of file ships.cc.

References anonymous_namespace{ships.cc}::system_cost().

Here is the call graph for this function:

◆ cost()

double cost ( const Ship s)

Definition at line 172 of file ships.cc.

◆ getdefense()

int getdefense ( const Ship ship)

Definition at line 126 of file ships.cc.

References landed().

Here is the call graph for this function:

◆ getmass()

double getmass ( const Ship s)

Definition at line 158 of file ships.cc.

◆ guns()

long guns ( const Ship s)

Definition at line 43 of file ships.cc.

◆ hanger()

long hanger ( const Ship s)

Definition at line 99 of file ships.cc.

◆ has_switch()

bool has_switch ( const Ship s)

Definition at line 19 of file ships.cc.

◆ landed()

bool landed ( const Ship ship)

Definition at line 138 of file ships.cc.

Referenced by getdefense().

Here is the caller graph for this function:

◆ laser_on()

bool laser_on ( const Ship ship)

Definition at line 136 of file ships.cc.

◆ mass()

double mass ( const Ship s)

Definition at line 87 of file ships.cc.

◆ max_crew()

population_t max_crew ( const Ship s)

Definition at line 48 of file ships.cc.

Referenced by repair().

Here is the caller graph for this function:

◆ max_crystals()

int max_crystals ( const Ship )

Definition at line 64 of file ships.cc.

◆ max_destruct()

long max_destruct ( const Ship s)

Definition at line 71 of file ships.cc.

◆ max_fuel()

long max_fuel ( const Ship s)

Definition at line 66 of file ships.cc.

◆ max_mil()

population_t max_mil ( const Ship s)

Definition at line 54 of file ships.cc.

◆ max_resource()

long max_resource ( const Ship s)

Definition at line 60 of file ships.cc.

◆ max_speed()

long max_speed ( const Ship s)

Definition at line 76 of file ships.cc.

◆ repair()

long repair ( const Ship s)

Definition at line 101 of file ships.cc.

References max_crew().

Here is the call graph for this function:

◆ retaliate()

long retaliate ( const Ship s)

Definition at line 93 of file ships.cc.

◆ ship_size()

unsigned int ship_size ( const Ship s)

Definition at line 164 of file ships.cc.

◆ ship_to_string()

std::string ship_to_string ( const Ship s)

Definition at line 153 of file ships.cc.

◆ shipbody()

int shipbody ( const Ship s)

Definition at line 97 of file ships.cc.

◆ shipcost()

long shipcost ( const Ship s)

Definition at line 81 of file ships.cc.

◆ shipsight()

long shipsight ( const Ship s)

Definition at line 89 of file ships.cc.

◆ size()

int size ( const Ship s)

Definition at line 95 of file ships.cc.

◆ speed_rating()

unsigned short speed_rating ( const Ship s)

Definition at line 16 of file ships.cc.