Galactic Bloodshed
Functions
fire.h File Reference
#include "gb/ships.h"
#include "gb/vars.h"
Include dependency graph for fire.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void fire (const command_t &, GameObj &)
 
void bombard (const command_t &, GameObj &)
 
void defend (const command_t &, GameObj &)
 
void detonate (const command_t &argv, GameObj &)
 
int retal_strength (Ship *)
 
int adjacent (int, int, int, int, const Planet &)
 

Function Documentation

◆ adjacent()

int adjacent ( int  ,
int  ,
int  ,
int  ,
const Planet  
)

Definition at line 758 of file fire.cc.

Referenced by bombard(), and move_popn().

Here is the caller graph for this function:

◆ bombard()

void bombard ( const command_t argv,
GameObj g 
)

Ship vs planet

Definition at line 305 of file fire.cc.

References adjacent(), check_overload(), check_retal_strength(), deductAPs(), do_shiplist(), enufAP(), getplanet(), getsmap(), anonymous_namespace{fire.cc}::has_planet_defense(), post(), putplanet(), putship(), putsmap(), shoot_planet_to_ship(), shoot_ship_to_planet(), shoot_ship_to_ship(), use_destruct(), and use_fuel().

Here is the call graph for this function:

◆ defend()

void defend ( const command_t argv,
GameObj g 
)

Planet vs ship

Definition at line 498 of file fire.cc.

References check_overload(), check_retal_strength(), deductAPs(), enufAP(), getplanet(), getsector(), getsmap(), post(), putplanet(), putship(), putsmap(), shoot_ship_to_planet(), use_destruct(), and use_fuel().

Here is the call graph for this function:

◆ detonate()

void detonate ( const command_t argv,
GameObj  
)

Definition at line 691 of file fire.cc.

References do_shiplist(), and domine().

Here is the call graph for this function:

◆ fire()

void fire ( const command_t argv,
GameObj g 
)

Ship vs ship

Definition at line 49 of file fire.cc.

References check_overload(), check_retal_strength(), deductAPs(), do_shiplist(), enufAP(), getplanet(), post(), putship(), shoot_ship_to_ship(), use_destruct(), and use_fuel().

Here is the call graph for this function:

◆ retal_strength()

int retal_strength ( Ship )

Definition at line 731 of file fire.cc.

Referenced by check_retal_strength(), doabm(), mech_attack_people(), mech_defend(), people_attack_mech(), and walk().

Here is the caller graph for this function: