Galactic Bloodshed
Functions
land.cc File Reference
#include "gb/land.h"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#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/load.h"
#include "gb/max.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"
Include dependency graph for land.cc:

Go to the source code of this file.

Functions

static std::tuple< bool, int > crash (const Ship *s, const double fuel) noexcept
 Determine whether the ship crashed or not. More...
 
void land (const command_t &argv, GameObj &g)
 
int docked (Ship *s)
 
int overloaded (Ship *s)
 

Function Documentation

◆ crash()

static std::tuple<bool, int> crash ( const Ship s,
const double  fuel 
)
staticnoexcept

Determine whether the ship crashed or not.

Definition at line 35 of file land.cc.

◆ docked()

int docked ( Ship s)

Definition at line 422 of file land.cc.

Referenced by build_at_ship(), land(), and scrap().

Here is the caller graph for this function:

◆ land()

void land ( const command_t argv,
GameObj g 
)

Definition at line 46 of file land.cc.

References deductAPs(), do_shiplist(), docked(), enufAP(), getplanet(), getsector(), getsmap(), gravity(), overloaded(), post(), putplanet(), putsector(), putship(), putsmap(), shoot_ship_to_planet(), and use_fuel().

Here is the call graph for this function:

◆ overloaded()

int overloaded ( Ship s)

Definition at line 426 of file land.cc.

Referenced by land(), and load().

Here is the caller graph for this function: