37 bool from_cmdline,
bool check);
44 struct
player **newplayer,
char *buf,
47 bool check, struct
player **newplayer,
48 char *buf,
size_t buflen);
51 bool check,
bool cmdline_load);
struct setting_list * level[OLEVELS_NUM]
void notify_if_first_access_level_is_available()
Check if first access level is available and if it is, notify connections about it.
bool conn_is_kicked(struct connection *pconn, int *time_remaining)
Returns FALSE if the connection isn't kicked and can connect the server normally.
enum rfc_status create_command_newcomer(const char *name, const char *ai, bool check, struct nation_type *pnation, struct player **newplayer, char *buf, size_t buflen)
Try to add a player to a running game in the following order:
void cmd_reply(enum command_id cmd, struct connection *caller, enum rfc_status rfc_status, const char *format,...) fc__attribute((__format__(__printf__
char ** freeciv_completion(const char *text, int start, int end)
Attempt to complete on the contents of TEXT.
void show_players(struct connection *caller)
Show the list of the players of the game.
enum rfc_status create_command_pregame(const char *name, const char *ai, bool check, struct player **newplayer, char *buf, size_t buflen)
Create player in pregame.
void stdinhand_turn()
Update stuff every turn that is related to this code module.
void stdinhand_init()
Initialize stuff related to this code module.
void set_ai_level_direct(struct player *pplayer, enum ai_level level)
Set an AI level from the server prompt.
bool read_init_script(struct connection *caller, const char *script_filename, bool from_cmdline, bool check)
Main entry point for reading an init script.
enum cmdlevel access_level_for_next_connection()
Return access level for next connection.
bool load_command(struct connection *caller, const char *filename, bool check, bool cmdline_load)
Loads a file, complete with access checks and error messages sent back to the caller on failure.
bool start_command(struct connection *caller, bool check, bool notify)
Handle start command.
QVector< QString > * get_init_script_choices()
Return a list of init scripts found on the data path.
bool should_quit()
Returns whether the server should exit after a command.
void stdinhand_free()
Deinitialize stuff related to this code module.
void bool handle_stdin_input(struct connection *caller, char *str)
Main entry point for "command input".
void toggle_ai_player_direct(struct connection *caller, struct player *pplayer)
Handle ai player ai toggling.
void set_running_game_access_level()
Adjust default command level on game start.
int fc__attribute((nonnull(1, 3)))