|
Galactic Bloodshed
|
#include "gb/fire.h"#include <cstdio>#include <cstdlib>#include <cstring>#include "gb/GB_server.h"#include "gb/buffers.h"#include "gb/config.h"#include "gb/doship.h"#include "gb/files.h"#include "gb/files_shl.h"#include "gb/getplace.h"#include "gb/load.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"Go to the source code of this file.
Namespaces | |
| anonymous_namespace{fire.cc} | |
Functions | |
| static void | check_overload (Ship *, int, int *) |
| static void | check_retal_strength (Ship *, int *) |
| bool | anonymous_namespace{fire.cc}::has_planet_defense (const shipnum_t shipno, const player_t Playernum) |
| void | fire (const command_t &argv, GameObj &g) |
| void | bombard (const command_t &argv, GameObj &g) |
| void | defend (const command_t &argv, GameObj &g) |
| void | detonate (const command_t &argv, GameObj &g) |
| int | retal_strength (Ship *s) |
| int | adjacent (int fx, int fy, int tx, int ty, const Planet &p) |
| int adjacent | ( | int | fx, |
| int | fy, | ||
| int | tx, | ||
| int | ty, | ||
| const Planet & | p | ||
| ) |
Definition at line 758 of file fire.cc.
Referenced by bombard(), and move_popn().
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().
|
static |
|
static |
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().
Definition at line 691 of file fire.cc.
References do_shiplist(), and domine().
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().
| int retal_strength | ( | Ship * | s | ) |
Definition at line 731 of file fire.cc.
Referenced by check_retal_strength(), doabm(), mech_attack_people(), mech_defend(), people_attack_mech(), and walk().
1.8.13