Galactic Bloodshed
Functions | Variables
orbit.cc File Reference
#include "gb/commands/orbit.h"
#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/getplace.h"
#include "gb/map.h"
#include "gb/max.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/tweakables.h"
#include "gb/vars.h"
Include dependency graph for orbit.cc:

Go to the source code of this file.

Functions

static void DispStar (const GameObj &, const ScopeLevel, startype *, int, Race *, char *)
 
static void DispPlanet (const GameObj &, const ScopeLevel, const Planet &, char *, int, Race *, char *)
 
static void DispShip (const GameObj &, placetype *, Ship *, Race *, char *, const Planet &=Planet())
 
void orbit (const command_t &argv, GameObj &g)
 

Variables

static double Lastx
 
static double Lasty
 
static double Zoom
 
static const int SCALE = 100
 

Function Documentation

◆ DispPlanet()

static void DispPlanet ( const GameObj g,
const ScopeLevel  level,
const Planet p,
char *  name,
int  ,
Race r,
char *  string 
)
static

Definition at line 237 of file orbit.cc.

References compatibility(), Lastx, Lasty, SCALE, and Zoom.

Here is the call graph for this function:

◆ DispShip()

static void DispShip ( const GameObj g,
placetype where,
Ship ship,
Race r,
char *  string,
const Planet pl = Planet() 
)
static

Definition at line 280 of file orbit.cc.

References getplanet(), Lastx, Lasty, SCALE, and Zoom.

Here is the call graph for this function:

◆ DispStar()

static void DispStar ( const GameObj g,
const ScopeLevel  level,
startype star,
int  ,
Race r,
char *  string 
)
static

Definition at line 199 of file orbit.cc.

References Lastx, Lasty, SCALE, and Zoom.

◆ orbit()

void orbit ( const command_t argv,
GameObj g 
)

Definition at line 45 of file orbit.cc.

References getplanet(), Lastx, Lasty, and Zoom.

Here is the call graph for this function:

Variable Documentation

◆ Lastx

double Lastx
static

Definition at line 25 of file orbit.cc.

Referenced by DispPlanet(), DispShip(), DispStar(), and orbit().

◆ Lasty

double Lasty
static

Definition at line 25 of file orbit.cc.

Referenced by DispPlanet(), DispShip(), DispStar(), and orbit().

◆ SCALE

const int SCALE = 100
static

Definition at line 26 of file orbit.cc.

Referenced by DispPlanet(), DispShip(), and DispStar().

◆ Zoom

double Zoom
static

Definition at line 25 of file orbit.cc.

Referenced by DispPlanet(), DispShip(), DispStar(), and orbit().