Galactic Bloodshed
Functions | Variables
prof.cc File Reference
#include "gb/prof.h"
#include <cstdio>
#include <cstdlib>
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/shlmisc.h"
#include "gb/shootblast.h"
#include "gb/tweakables.h"
#include "gb/vars.h"
Include dependency graph for prof.cc:

Go to the source code of this file.

Functions

static int round_perc (int, Race *, int)
 
static char * Estimate_f (double, Race *, int)
 
void whois (const command_t &argv, GameObj &g)
 
void treasury (const command_t &, GameObj &g)
 
void profile (const command_t &argv, GameObj &g)
 
char * Estimate_i (int data, Race *r, int p)
 

Variables

static char est_buf [20]
 

Function Documentation

◆ Estimate_f()

static char * Estimate_f ( double  data,
Race r,
int  p 
)
static

Definition at line 282 of file prof.cc.

References est_buf, and round_perc().

Referenced by profile().

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

◆ Estimate_i()

char* Estimate_i ( int  data,
Race r,
int  p 
)

Definition at line 301 of file prof.cc.

References est_buf, and round_perc().

Referenced by block(), prepare_output_line(), and profile().

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

◆ profile()

void profile ( const command_t argv,
GameObj g 
)

Definition at line 83 of file prof.cc.

References Estimate_f(), Estimate_i(), gun_range(), and tele_range().

Here is the call graph for this function:

◆ round_perc()

static int round_perc ( int  data,
Race r,
int  p 
)
static

Definition at line 320 of file prof.cc.

Referenced by Estimate_f(), and Estimate_i().

Here is the caller graph for this function:

◆ treasury()

void treasury ( const command_t ,
GameObj g 
)

Definition at line 54 of file prof.cc.

◆ whois()

void whois ( const command_t argv,
GameObj g 
)

Definition at line 24 of file prof.cc.

Variable Documentation

◆ est_buf

char est_buf[20]
static

Definition at line 280 of file prof.cc.

Referenced by Estimate_f(), and Estimate_i().