Galactic Bloodshed
Functions | Variables
moveship.cc File Reference
#include "gb/moveship.h"
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/files_shl.h"
#include "gb/fire.h"
#include "gb/load.h"
#include "gb/max.h"
#include "gb/misc.h"
#include "gb/order.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/shlmisc.h"
#include "gb/tele.h"
#include "gb/tweakables.h"
#include "gb/vars.h"
Include dependency graph for moveship.cc:

Go to the source code of this file.

Functions

static int do_merchant (Ship *, Planet *)
 
void moveship (Ship *s, int mode, int send_messages, int checking_fuel)
 
void msg_OOF (Ship *s)
 
int followable (Ship *s1, Ship *s2)
 

Variables

static const double MoveConsts [] = {600.0, 300.0, 50.0}
 
static const double SpeedConsts []
 

Function Documentation

◆ do_merchant()

static int do_merchant ( Ship s,
Planet p 
)
static

Definition at line 388 of file moveship.cc.

References getsector(), gravity(), rcv_destruct(), rcv_fuel(), rcv_resource(), use_destruct(), use_fuel(), and use_resource().

Referenced by moveship().

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

◆ followable()

int followable ( Ship s1,
Ship s2 
)

Definition at line 362 of file moveship.cc.

Referenced by moveship().

Here is the caller graph for this function:

◆ moveship()

void moveship ( Ship s,
int  mode,
int  send_messages,
int  checking_fuel 
)

Definition at line 41 of file moveship.cc.

References do_merchant(), followable(), MoveConsts, msg_OOF(), SpeedConsts, and use_fuel().

Referenced by do_trip(), and doship().

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

◆ msg_OOF()

void msg_OOF ( Ship s)

Definition at line 355 of file moveship.cc.

Referenced by do_ap(), do_quarry(), doplanet(), moveship(), plow(), and terraform().

Here is the caller graph for this function:

Variable Documentation

◆ MoveConsts

const double MoveConsts[] = {600.0, 300.0, 50.0}
static

Definition at line 33 of file moveship.cc.

Referenced by moveship().

◆ SpeedConsts

const double SpeedConsts[]
static
Initial value:
= {0.0, 0.61, 1.26, 1.50, 1.73,
1.81, 1.90, 1.93, 1.96, 1.97}

Definition at line 35 of file moveship.cc.

Referenced by moveship().