Galactic Bloodshed
Functions
anonymous_namespace{GB_server.cc} Namespace Reference

Functions

std::tuple< std::string, std::string > parse_connect (const std::string &message)
 Parse input string for player and governor password. More...
 
std::string do_prompt (DescriptorData &d)
 Create a prompt that shows the current AP and location of the player. More...
 

Function Documentation

◆ do_prompt()

std::string anonymous_namespace{GB_server.cc}::do_prompt ( DescriptorData d)

Create a prompt that shows the current AP and location of the player.

Parameters
dGame Object with player information
Returns
Prompt string for display to the user

Definition at line 349 of file GB_server.cc.

◆ parse_connect()

std::tuple<std::string, std::string> anonymous_namespace{GB_server.cc}::parse_connect ( const std::string &  message)

Parse input string for player and governor password.

Parameters
messageInput string from the user
Returns
player and governor password or empty strings if invalid

Definition at line 333 of file GB_server.cc.