Galactic Bloodshed
Typedefs | Functions | Variables
GB_server.h File Reference
#include <string>
#include "gb/races.h"
#include "gb/ships.h"
#include "gb/vars.h"
Include dependency graph for GB_server.h:

Go to the source code of this file.

Typedefs

using segments_t = uint32_t
 

Functions

void notify_race (const player_t, const std::string &)
 
bool notify (const player_t, const governor_t, const std::string &)
 
void d_think (const player_t, const governor_t, const std::string &)
 
void d_broadcast (const player_t, const governor_t, const std::string &)
 
void d_shout (const player_t, const governor_t, const std::string &)
 
void d_announce (const player_t, const governor_t, const starnum_t, const std::string &)
 
void do_next_thing ()
 
void kill_ship (int, Ship *)
 
void compute_power_blocks ()
 
void insert_sh_univ (struct stardata *, Ship *)
 
void insert_sh_star (startype *, Ship *)
 
void insert_sh_plan (Planet *, Ship *)
 
void insert_sh_ship (Ship *, Ship *)
 
void remove_sh_star (Ship &)
 Remove a ship from the list of ships orbiting the star. More...
 
void remove_sh_plan (Ship &)
 Remove a ship from the list of ships orbiting the planet. More...
 
void remove_sh_ship (Ship &, Ship &)
 Remove a ship from the list of ships in the ship. More...
 
void warn_race (const player_t, const std::string &)
 
void warn (const player_t, const governor_t, const std::string &)
 
void warn_star (const player_t, const starnum_t, const std::string &)
 
void notify_star (const player_t, const governor_t, const starnum_t, const std::string &)
 
void adjust_morale (Race *, Race *, int)
 

Variables

time_t next_update_time
 
time_t next_segment_time
 
unsigned int update_time
 
segments_t nsegments_done
 
const char * Desnames []
 
const char Dessymbols []
 

Typedef Documentation

◆ segments_t

using segments_t = uint32_t

Definition at line 38 of file GB_server.h.

Function Documentation

◆ adjust_morale()

void adjust_morale ( Race ,
Race ,
int   
)

◆ compute_power_blocks()

void compute_power_blocks ( )

Definition at line 1469 of file GB_server.cc.

◆ d_announce()

void d_announce ( const player_t  ,
const governor_t  ,
const starnum_t  ,
const std::string &   
)

Definition at line 596 of file GB_server.cc.

◆ d_broadcast()

void d_broadcast ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 577 of file GB_server.cc.

◆ d_shout()

void d_shout ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 587 of file GB_server.cc.

◆ d_think()

void d_think ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 567 of file GB_server.cc.

◆ do_next_thing()

void do_next_thing ( )

Definition at line 728 of file GB_server.cc.

◆ insert_sh_plan()

void insert_sh_plan ( Planet ,
Ship  
)

Definition at line 1516 of file GB_server.cc.

◆ insert_sh_ship()

void insert_sh_ship ( Ship ,
Ship  
)

Definition at line 1522 of file GB_server.cc.

◆ insert_sh_star()

void insert_sh_star ( startype ,
Ship  
)

Definition at line 1510 of file GB_server.cc.

◆ insert_sh_univ()

void insert_sh_univ ( struct stardata ,
Ship  
)

Definition at line 1504 of file GB_server.cc.

◆ kill_ship()

void kill_ship ( int  ,
Ship  
)

Definition at line 1398 of file GB_server.cc.

◆ notify()

bool notify ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 497 of file enrol.cc.

◆ notify_race()

void notify_race ( const player_t  ,
const std::string &   
)

Definition at line 546 of file GB_server.cc.

◆ notify_star()

void notify_star ( const player_t  ,
const governor_t  ,
const starnum_t  ,
const std::string &   
)

Definition at line 1672 of file GB_server.cc.

◆ remove_sh_plan()

void remove_sh_plan ( Ship s)

Remove a ship from the list of ships orbiting the planet.

Definition at line 1563 of file GB_server.cc.

◆ remove_sh_ship()

void remove_sh_ship ( Ship s,
Ship host 
)

Remove a ship from the list of ships in the ship.

Definition at line 1592 of file GB_server.cc.

◆ remove_sh_star()

void remove_sh_star ( Ship s)

Remove a ship from the list of ships orbiting the star.

Definition at line 1534 of file GB_server.cc.

◆ warn()

void warn ( const player_t  ,
const governor_t  ,
const std::string &   
)

Definition at line 503 of file enrol.cc.

◆ warn_race()

void warn_race ( const player_t  ,
const std::string &   
)

Definition at line 1655 of file GB_server.cc.

◆ warn_star()

void warn_star ( const player_t  ,
const starnum_t  ,
const std::string &   
)

Definition at line 1666 of file GB_server.cc.

Variable Documentation

◆ Desnames

const char* Desnames[]

Definition at line 54 of file globals.h.

◆ Dessymbols

const char Dessymbols[]

Definition at line 57 of file globals.h.

◆ next_segment_time

time_t next_segment_time

Definition at line 50 of file globals.h.

◆ next_update_time

time_t next_update_time

Definition at line 49 of file globals.h.

◆ nsegments_done

segments_t nsegments_done

Definition at line 52 of file globals.h.

◆ update_time

unsigned int update_time

Definition at line 51 of file globals.h.