|
Galactic Bloodshed
|
#include "gb/build.h"#include <cmath>#include <cstdio>#include <cstdlib>#include <cstring>#include <ctgmath>#include <optional>#include "gb/GB_server.h"#include "gb/buffers.h"#include "gb/config.h"#include "gb/files.h"#include "gb/files_shl.h"#include "gb/fire.h"#include "gb/getplace.h"#include "gb/land.h"#include "gb/races.h"#include "gb/shipdata.h"#include "gb/ships.h"#include "gb/shlmisc.h"#include "gb/shootblast.h"#include "gb/tele.h"#include "gb/tweakables.h"#include "gb/vars.h"Go to the source code of this file.
Namespaces | |
| anonymous_namespace{build.cc} | |
Functions | |
| static void | autoload_at_planet (int, Ship *, Planet *, Sector &, int *, double *) |
| static void | autoload_at_ship (Ship *, Ship *, int *, double *) |
| static std::optional< ScopeLevel > | build_at_ship (GameObj &, Ship *, int *, int *) |
| static int | can_build_at_planet (GameObj &, startype *, const Planet &) |
| static bool | can_build_this (const ShipType, const Race &, char *) |
| static int | can_build_on_ship (int, Race *, Ship *, char *) |
| static void | create_ship_by_planet (int, int, Race *, Ship *, Planet *, int, int, int, int) |
| static void | create_ship_by_ship (int, int, Race *, int, Planet *, Ship *, Ship *) |
| static std::optional< ShipType > | get_build_type (const char) |
| static int | getcount (const command_t &, const size_t) |
| static void | Getfactship (Ship *, Ship *) |
| static void | Getship (Ship *, ShipType, Race *) |
| static void | initialize_new_ship (GameObj &, Race *, Ship *, double, int) |
| bool | anonymous_namespace{build.cc}::can_build_on_sector (const int what, const racetype *Race, const Planet &planet, const Sector §or, const int x, const int y, char *string) |
| void | upgrade (const command_t &argv, GameObj &g) |
| void | make_mod (const command_t &argv, GameObj &g) |
| void | build (const command_t &argv, GameObj &g) |
| static int | can_build_on_ship (int what, racetype *Race, Ship *builder, char *string) |
| static void | initialize_new_ship (GameObj &g, racetype *Race, Ship *newship, double load_fuel, int load_crew) |
| static void | create_ship_by_planet (int Playernum, int Governor, racetype *Race, Ship *newship, Planet *planet, int snum, int pnum, int x, int y) |
| static void | create_ship_by_ship (int Playernum, int Governor, racetype *Race, int outside, Planet *planet, Ship *newship, Ship *builder) |
| int | Shipcost (ShipType i, Race *r) |
| void | sell (const command_t &argv, GameObj &g) |
| void | bid (const command_t &argv, GameObj &g) |
| int | shipping_cost (int to, int from, double *dist, int value) |
Definition at line 1586 of file build.cc.
References getcommod(), getplanet(), Numcommods(), putcommod(), and shipping_cost().
Definition at line 673 of file build.cc.
References autoload_at_planet(), can_build_at_planet(), create_ship_by_planet(), getplanet(), getsector(), initialize_new_ship(), putplanet(), putsdata(), putsector(), putship(), putstar(), and Shipcost().
|
static |
|
static |
|
static |
Definition at line 1275 of file build.cc.
References getdeadship(), and Numships().
Referenced by build().
|
static |
Definition at line 1327 of file build.cc.
References getdeadship(), and Numships().
|
static |
|
static |
Definition at line 1389 of file build.cc.
Referenced by Shipcost().
|
static |
Definition at line 1192 of file build.cc.
References tele_range().
Referenced by build().
Definition at line 1455 of file build.cc.
References deductAPs(), enufAP(), getdeadcommod(), getplanet(), Numcommods(), post(), putcommod(), and putplanet().
| int shipping_cost | ( | int | to, |
| int | from, | ||
| double * | dist, | ||
| int | value | ||
| ) |
1.8.13