Freeciv-3.1
|
#include "fc_prehdrs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "astring.h"
#include "bitvector.h"
#include "deprecations.h"
#include "fc_cmdline.h"
#include "fciconv.h"
#include "fcintl.h"
#include "log.h"
#include "mem.h"
#include "rand.h"
#include "registry.h"
#include "support.h"
#include "timing.h"
#include "section_file.h"
#include "capability.h"
#include "events.h"
#include "fc_types.h"
#include "featured_text.h"
#include "game.h"
#include "map.h"
#include "mapimg.h"
#include "packets.h"
#include "player.h"
#include "research.h"
#include "rgbcolor.h"
#include "srvdefs.h"
#include "unitlist.h"
#include "version.h"
#include "aiiface.h"
#include "citytools.h"
#include "connecthand.h"
#include "diplhand.h"
#include "gamehand.h"
#include "mapgen.h"
#include "maphand.h"
#include "meta.h"
#include "notify.h"
#include "plrhand.h"
#include "report.h"
#include "ruleset.h"
#include "sanitycheck.h"
#include "score.h"
#include "sernet.h"
#include "settings.h"
#include "srv_log.h"
#include "srv_main.h"
#include "techtools.h"
#include "voting.h"
#include "savemain.h"
#include "script_server.h"
#include "script_fcdb.h"
#include "difficulty.h"
#include "handicaps.h"
#include "stdinhand.h"
#include "spechash.h"
#include "specenum_gen.h"
Go to the source code of this file.
Macros | |
#define | OPTION_NAME_SPACE 25 |
#define | SPECHASH_TAG kick |
#define | SPECHASH_ASTR_KEY_TYPE |
#define | SPECHASH_IDATA_TYPE time_t * |
#define | SPECHASH_UDATA_TYPE time_t |
#define | SPECHASH_IDATA_COPY time_duplicate |
#define | SPECHASH_IDATA_FREE (kick_hash_data_free_fn_t) free |
#define | SPECHASH_UDATA_TO_IDATA(t) (&(t)) |
#define | SPECHASH_IDATA_TO_UDATA(p) (NULL != p ? *p : 0) |
#define | LOOKUP_OPTION_NO_RESULT (-1) |
#define | LOOKUP_OPTION_AMBIGUOUS (-2) |
#define | LOOKUP_OPTION_LEVEL_NAME (-3) |
#define | LOOKUP_OPTION_RULESETDIR (-4) |
#define | cmd_reply_show(string) cmd_reply(called_as, caller, C_COMMENT, "%s", string) |
#define | SPECENUM_NAME reset_args |
#define | SPECENUM_VALUE0 RESET_GAME |
#define | SPECENUM_VALUE0NAME "game" |
#define | SPECENUM_VALUE1 RESET_RULESET |
#define | SPECENUM_VALUE1NAME "ruleset" |
#define | SPECENUM_VALUE2 RESET_SCRIPT |
#define | SPECENUM_VALUE2NAME "script" |
#define | SPECENUM_VALUE3 RESET_DEFAULT |
#define | SPECENUM_VALUE3NAME "default" |
#define | SPECENUM_NAME lua_args |
#define | SPECENUM_VALUE0 LUA_CMD |
#define | SPECENUM_VALUE0NAME "cmd" |
#define | SPECENUM_VALUE1 LUA_FILE |
#define | SPECENUM_VALUE1NAME "file" |
#define | SPECENUM_VALUE2 LUA_UNSAFE_CMD |
#define | SPECENUM_VALUE2NAME "unsafe-cmd" |
#define | SPECENUM_VALUE3 LUA_UNSAFE_FILE |
#define | SPECENUM_VALUE3NAME "unsafe-file" |
#define | SPECENUM_NAME delegate_args |
#define | SPECENUM_VALUE0 DELEGATE_CANCEL |
#define | SPECENUM_VALUE0NAME "cancel" |
#define | SPECENUM_VALUE1 DELEGATE_RESTORE |
#define | SPECENUM_VALUE1NAME "restore" |
#define | SPECENUM_VALUE2 DELEGATE_SHOW |
#define | SPECENUM_VALUE2NAME "show" |
#define | SPECENUM_VALUE3 DELEGATE_TAKE |
#define | SPECENUM_VALUE3NAME "take" |
#define | SPECENUM_VALUE4 DELEGATE_TO |
#define | SPECENUM_VALUE4NAME "to" |
#define | SPECENUM_NAME mapimg_args |
#define | SPECENUM_VALUE0 MAPIMG_COLORTEST |
#define | SPECENUM_VALUE0NAME "colortest" |
#define | SPECENUM_VALUE1 MAPIMG_CREATE |
#define | SPECENUM_VALUE1NAME "create" |
#define | SPECENUM_VALUE2 MAPIMG_DEFINE |
#define | SPECENUM_VALUE2NAME "define" |
#define | SPECENUM_VALUE3 MAPIMG_DELETE |
#define | SPECENUM_VALUE3NAME "delete" |
#define | SPECENUM_VALUE4 MAPIMG_SHOW |
#define | SPECENUM_VALUE4NAME "show" |
#define | SPECENUM_COUNT MAPIMG_COUNT |
#define | SPECENUM_NAME fcdb_args |
#define | SPECENUM_VALUE0 FCDB_RELOAD |
#define | SPECENUM_VALUE0NAME "reload" |
#define | SPECENUM_VALUE1 FCDB_LUA |
#define | SPECENUM_VALUE1NAME "lua" |
#define | SPECENUM_COUNT FCDB_COUNT |
#define | SPECENUM_NAME help_general_args |
#define | SPECENUM_VALUE0 HELP_GENERAL_COMMANDS |
#define | SPECENUM_VALUE0NAME "commands" |
#define | SPECENUM_VALUE1 HELP_GENERAL_OPTIONS |
#define | SPECENUM_VALUE1NAME "options" |
#define | SPECENUM_COUNT HELP_GENERAL_COUNT |
#define | HELP_ARG_NUM (CMD_NUM + HELP_GENERAL_COUNT + settings_number()) |
#define | SPECENUM_NAME list_args |
#define | SPECENUM_VALUE0 LIST_COLORS |
#define | SPECENUM_VALUE0NAME "colors" |
#define | SPECENUM_VALUE1 LIST_CONNECTIONS |
#define | SPECENUM_VALUE1NAME "connections" |
#define | SPECENUM_VALUE2 LIST_DELEGATIONS |
#define | SPECENUM_VALUE2NAME "delegations" |
#define | SPECENUM_VALUE3 LIST_IGNORE |
#define | SPECENUM_VALUE3NAME "ignored users" |
#define | SPECENUM_VALUE4 LIST_MAPIMG |
#define | SPECENUM_VALUE4NAME "map image definitions" |
#define | SPECENUM_VALUE5 LIST_PLAYERS |
#define | SPECENUM_VALUE5NAME "players" |
#define | SPECENUM_VALUE6 LIST_RULESETS |
#define | SPECENUM_VALUE6NAME "rulesets" |
#define | SPECENUM_VALUE7 LIST_SCENARIOS |
#define | SPECENUM_VALUE7NAME "scenarios" |
#define | SPECENUM_VALUE8 LIST_NATIONSETS |
#define | SPECENUM_VALUE8NAME "nationsets" |
#define | SPECENUM_VALUE9 LIST_TEAMS |
#define | SPECENUM_VALUE9NAME "teams" |
#define | SPECENUM_VALUE10 LIST_VOTES |
#define | SPECENUM_VALUE10NAME "votes" |
Functions | |
static time_t * | time_duplicate (const time_t *t) |
static bool | cut_client_connection (struct connection *caller, char *name, bool check) |
static bool | show_help (struct connection *caller, char *arg) |
static bool | show_list (struct connection *caller, char *arg) |
static void | show_colors (struct connection *caller) |
static bool | set_ai_level_named (struct connection *caller, const char *name, const char *level_name, bool check) |
static bool | set_ai_level (struct connection *caller, const char *name, enum ai_level level, bool check) |
static bool | away_command (struct connection *caller, bool check) |
static bool | set_rulesetdir (struct connection *caller, char *str, bool check, int read_recursion) |
static bool | show_command (struct connection *caller, char *str, bool check) |
static bool | show_settings (struct connection *caller, enum command_id called_as, char *str, bool check) |
static void | show_settings_one (struct connection *caller, enum command_id cmd, struct setting *pset) |
static void | show_ruleset_info (struct connection *caller, enum command_id cmd, bool check, int read_recursion) |
static void | show_mapimg (struct connection *caller, enum command_id cmd) |
static bool | set_command (struct connection *caller, char *str, bool check) |
static bool | create_command (struct connection *caller, const char *str, bool check) |
static bool | end_command (struct connection *caller, char *str, bool check) |
static bool | surrender_command (struct connection *caller, char *str, bool check) |
static bool | handle_stdin_input_real (struct connection *caller, char *str, bool check, int read_recursion) |
static bool | read_init_script_real (struct connection *caller, char *script_filename, bool from_cmdline, bool check, int read_recursion) |
static bool | reset_command (struct connection *caller, char *arg, bool check, int read_recursion) |
static bool | default_command (struct connection *caller, char *arg, bool check) |
static bool | lua_command (struct connection *caller, char *arg, bool check, int read_recursion) |
static bool | kick_command (struct connection *caller, char *name, bool check) |
static bool | delegate_command (struct connection *caller, char *arg, bool check) |
static const char * | delegate_player_str (struct player *pplayer, bool observer) |
static bool | aicmd_command (struct connection *caller, char *arg, bool check) |
static bool | fcdb_command (struct connection *caller, char *arg, bool check) |
static const char * | fcdb_accessor (int i) |
static char | setting_status (struct connection *caller, const struct setting *pset) |
static bool | player_name_check (const char *name, char *buf, size_t buflen) |
static bool | playercolor_command (struct connection *caller, char *str, bool check) |
static bool | playernation_command (struct connection *caller, char *str, bool check) |
static bool | mapimg_command (struct connection *caller, char *arg, bool check) |
static const char * | mapimg_accessor (int i) |
static void | show_delegations (struct connection *caller) |
static bool | is_restricted (struct connection *caller) |
static enum command_id | command_named (const char *token, bool accept_ambiguity) |
void | stdinhand_init (void) |
void | stdinhand_turn (void) |
void | stdinhand_free (void) |
static bool | may_use (struct connection *caller, enum command_id cmd) |
static bool | may_use_nothing (struct connection *caller) |
static void | cmd_reply_line (enum command_id cmd, struct connection *caller, enum rfc_status rfc_status, const char *prefix, const char *line) |
static void | vcmd_reply_prefix (enum command_id cmd, struct connection *caller, enum rfc_status rfc_status, const char *prefix, const char *format, va_list ap) |
static void | cmd_reply_prefix (enum command_id cmd, struct connection *caller, enum rfc_status rfc_status, const char *prefix, const char *format,...) fc__attribute((__format__(__printf__ |
static void static void | cmd_reply_prefix (enum command_id cmd, struct connection *caller, enum rfc_status rfc_status, const char *prefix, const char *format,...) |
void | cmd_reply (enum command_id cmd, struct connection *caller, enum rfc_status rfc_status, const char *format,...) |
static void | cmd_reply_no_such_player (enum command_id cmd, struct connection *caller, const char *name, enum m_pre_result match_result) |
static void | cmd_reply_no_such_conn (enum command_id cmd, struct connection *caller, const char *name, enum m_pre_result match_result) |
static void | open_metaserver_connection (struct connection *caller, bool persistent) |
static void | close_metaserver_connection (struct connection *caller) |
static bool | metaconnection_command (struct connection *caller, char *arg, bool check) |
static bool | metapatches_command (struct connection *caller, char *arg, bool check) |
static bool | metamessage_command (struct connection *caller, char *arg, bool check) |
static bool | metaserver_command (struct connection *caller, char *arg, bool check) |
static bool | show_serverid (struct connection *caller, char *arg) |
static bool | save_command (struct connection *caller, char *arg, bool check) |
static bool | scensave_command (struct connection *caller, char *arg, bool check) |
void | toggle_ai_player_direct (struct connection *caller, struct player *pplayer) |
static bool | toggle_ai_command (struct connection *caller, char *arg, bool check) |
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) |
enum rfc_status | create_command_pregame (const char *name, const char *ai, bool check, struct player **newplayer, char *buf, size_t buflen) |
static bool | remove_player_command (struct connection *caller, char *arg, bool check) |
static bool | read_command (struct connection *caller, char *arg, bool check, int read_recursion) |
bool | read_init_script (struct connection *caller, char *script_filename, bool from_cmdline, bool check) |
struct strvec * | get_init_script_choices (void) |
static bool | write_init_script (char *script_filename) |
static bool | write_command (struct connection *caller, char *arg, bool check) |
static bool | set_cmdlevel (struct connection *caller, struct connection *ptarget, enum cmdlevel level) |
static bool | a_connection_exists (void) |
static bool | is_first_access_level_taken (void) |
enum cmdlevel | access_level_for_next_connection (void) |
void | notify_if_first_access_level_is_available (void) |
static bool | cmdlevel_command (struct connection *caller, char *str, bool check) |
static bool | firstlevel_command (struct connection *caller, bool check) |
void | set_running_game_access_level (void) |
static const char * | optname_accessor (int i) |
static bool | timeout_command (struct connection *caller, char *str, bool check) |
static enum sset_level | lookup_option_level (const char *name) |
static int | lookup_option (const char *name) |
static void | show_help_option (struct connection *caller, enum command_id help_cmd, int id) |
static void | show_help_option_list (struct connection *caller, enum command_id help_cmd) |
static bool | explain_option (struct connection *caller, char *str, bool check) |
static bool | wall (char *str, bool check) |
static bool | connectmsg_command (struct connection *caller, char *str, bool check) |
static enum command_id | cmd_of_level (enum ai_level level) |
void | set_ai_level_direct (struct player *pplayer, enum ai_level level) |
static bool | team_command (struct connection *caller, char *str, bool check) |
static void | show_votes (struct connection *caller) |
static const char * | vote_arg_accessor (int i) |
static bool | vote_command (struct connection *caller, char *str, bool check) |
static bool | cancelvote_command (struct connection *caller, char *arg, bool check) |
static bool | debug_command (struct connection *caller, char *str, bool check) |
static struct setting * | validate_setting_arg (enum command_id cmd, struct connection *caller, char *arg) |
static bool | is_allowed_to_take (struct connection *requester, struct connection *taker, struct player *pplayer, bool will_obs, char *msg, size_t msg_len) |
static bool | observe_command (struct connection *caller, char *str, bool check) |
static bool | take_command (struct connection *caller, char *str, bool check) |
static bool | detach_command (struct connection *caller, char *str, bool check) |
bool | load_command (struct connection *caller, const char *filename, bool check, bool cmdline_load) |
static bool | ignore_command (struct connection *caller, char *str, bool check) |
static bool | unignore_command (struct connection *caller, char *str, bool check) |
static bool | quit_game (struct connection *caller, bool check) |
bool | handle_stdin_input (struct connection *caller, char *str) |
bool | handle_stdin_input_free (struct connection *caller, char *str) |
static const char * | reset_accessor (int i) |
static const char * | lua_accessor (int i) |
static const char * | delegate_accessor (int i) |
static void | start_cmd_reply (struct connection *caller, bool notify, char *msg) |
bool | start_command (struct connection *caller, bool check, bool notify) |
bool | conn_is_kicked (struct connection *pconn, int *time_remaining) |
static void | show_help_intro (struct connection *caller, enum command_id help_cmd) |
static void | show_help_command (struct connection *caller, enum command_id help_cmd, enum command_id id) |
static void | show_help_command_list (struct connection *caller, enum command_id help_cmd) |
static void | cmd_reply_matches (enum command_id cmd, struct connection *caller, m_pre_accessor_fn_t accessor_fn, int *matches, int num_matches) |
static const char * | helparg_accessor (int i) |
static void | show_connections (struct connection *caller) |
static bool | show_ignore (struct connection *caller) |
void | show_players (struct connection *caller) |
static void | show_rulesets (struct connection *caller) |
static void | show_scenarios (struct connection *caller) |
static void | show_nationsets (struct connection *caller) |
static void | show_teams (struct connection *caller) |
static const char * | list_accessor (int i) |
Variables | |
static enum cmdlevel | default_access_level = ALLOW_BASIC |
static enum cmdlevel | first_access_level = ALLOW_BASIC |
const char * | script_extension = ".serv" |
static struct kick_hash * | kick_table_by_addr = NULL |
static struct kick_hash * | kick_table_by_user = NULL |
static const char | horiz_line [] |
static const char *const | vote_args [] |
#define HELP_ARG_NUM (CMD_NUM + HELP_GENERAL_COUNT + settings_number()) |
Definition at line 6507 of file stdinhand.c.
#define LOOKUP_OPTION_AMBIGUOUS (-2) |
Definition at line 1729 of file stdinhand.c.
#define LOOKUP_OPTION_LEVEL_NAME (-3) |
Definition at line 1730 of file stdinhand.c.
#define LOOKUP_OPTION_NO_RESULT (-1) |
Definition at line 1728 of file stdinhand.c.
#define LOOKUP_OPTION_RULESETDIR (-4) |
Definition at line 1731 of file stdinhand.c.
#define OPTION_NAME_SPACE 25 |
Definition at line 95 of file stdinhand.c.
#define SPECENUM_COUNT MAPIMG_COUNT |
Definition at line 5607 of file stdinhand.c.
#define SPECENUM_COUNT FCDB_COUNT |
Definition at line 5607 of file stdinhand.c.
#define SPECENUM_COUNT HELP_GENERAL_COUNT |
Definition at line 5607 of file stdinhand.c.
#define SPECENUM_NAME reset_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_NAME lua_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_NAME delegate_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_NAME mapimg_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_NAME fcdb_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_NAME help_general_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_NAME list_args |
Definition at line 4750 of file stdinhand.c.
#define SPECENUM_VALUE0 RESET_GAME |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0 LUA_CMD |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0 DELEGATE_CANCEL |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0 MAPIMG_COLORTEST |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0 FCDB_RELOAD |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0 HELP_GENERAL_COMMANDS |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0 LIST_COLORS |
Definition at line 4751 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "game" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "cmd" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "cancel" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "colortest" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "reload" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "commands" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE0NAME "colors" |
Definition at line 4752 of file stdinhand.c.
#define SPECENUM_VALUE1 RESET_RULESET |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE1 LUA_FILE |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE1 DELEGATE_RESTORE |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE1 MAPIMG_CREATE |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE1 FCDB_LUA |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE1 HELP_GENERAL_OPTIONS |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE1 LIST_CONNECTIONS |
Definition at line 4753 of file stdinhand.c.
#define SPECENUM_VALUE10 LIST_VOTES |
Definition at line 6955 of file stdinhand.c.
#define SPECENUM_VALUE10NAME "votes" |
Definition at line 6956 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "ruleset" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "file" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "restore" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "create" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "lua" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "options" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE1NAME "connections" |
Definition at line 4754 of file stdinhand.c.
#define SPECENUM_VALUE2 RESET_SCRIPT |
Definition at line 4755 of file stdinhand.c.
#define SPECENUM_VALUE2 LUA_UNSAFE_CMD |
Definition at line 4755 of file stdinhand.c.
#define SPECENUM_VALUE2 DELEGATE_SHOW |
Definition at line 4755 of file stdinhand.c.
#define SPECENUM_VALUE2 MAPIMG_DEFINE |
Definition at line 4755 of file stdinhand.c.
#define SPECENUM_VALUE2 LIST_DELEGATIONS |
Definition at line 4755 of file stdinhand.c.
#define SPECENUM_VALUE2NAME "script" |
Definition at line 4756 of file stdinhand.c.
#define SPECENUM_VALUE2NAME "unsafe-cmd" |
Definition at line 4756 of file stdinhand.c.
#define SPECENUM_VALUE2NAME "show" |
Definition at line 4756 of file stdinhand.c.
#define SPECENUM_VALUE2NAME "define" |
Definition at line 4756 of file stdinhand.c.
#define SPECENUM_VALUE2NAME "delegations" |
Definition at line 4756 of file stdinhand.c.
#define SPECENUM_VALUE3 RESET_DEFAULT |
Definition at line 4757 of file stdinhand.c.
#define SPECENUM_VALUE3 LUA_UNSAFE_FILE |
Definition at line 4757 of file stdinhand.c.
#define SPECENUM_VALUE3 DELEGATE_TAKE |
Definition at line 4757 of file stdinhand.c.
#define SPECENUM_VALUE3 MAPIMG_DELETE |
Definition at line 4757 of file stdinhand.c.
#define SPECENUM_VALUE3 LIST_IGNORE |
Definition at line 4757 of file stdinhand.c.
#define SPECENUM_VALUE3NAME "default" |
Definition at line 4758 of file stdinhand.c.
#define SPECENUM_VALUE3NAME "unsafe-file" |
Definition at line 4758 of file stdinhand.c.
#define SPECENUM_VALUE3NAME "take" |
Definition at line 4758 of file stdinhand.c.
#define SPECENUM_VALUE3NAME "delete" |
Definition at line 4758 of file stdinhand.c.
#define SPECENUM_VALUE3NAME "ignored users" |
Definition at line 4758 of file stdinhand.c.
#define SPECENUM_VALUE4 DELEGATE_TO |
Definition at line 5107 of file stdinhand.c.
#define SPECENUM_VALUE4 MAPIMG_SHOW |
Definition at line 5107 of file stdinhand.c.
#define SPECENUM_VALUE4 LIST_MAPIMG |
Definition at line 5107 of file stdinhand.c.
#define SPECENUM_VALUE4NAME "to" |
Definition at line 5108 of file stdinhand.c.
#define SPECENUM_VALUE4NAME "show" |
Definition at line 5108 of file stdinhand.c.
#define SPECENUM_VALUE4NAME "map image definitions" |
Definition at line 5108 of file stdinhand.c.
#define SPECENUM_VALUE5 LIST_PLAYERS |
Definition at line 6945 of file stdinhand.c.
#define SPECENUM_VALUE5NAME "players" |
Definition at line 6946 of file stdinhand.c.
#define SPECENUM_VALUE6 LIST_RULESETS |
Definition at line 6947 of file stdinhand.c.
#define SPECENUM_VALUE6NAME "rulesets" |
Definition at line 6948 of file stdinhand.c.
#define SPECENUM_VALUE7 LIST_SCENARIOS |
Definition at line 6949 of file stdinhand.c.
#define SPECENUM_VALUE7NAME "scenarios" |
Definition at line 6950 of file stdinhand.c.
#define SPECENUM_VALUE8 LIST_NATIONSETS |
Definition at line 6951 of file stdinhand.c.
#define SPECENUM_VALUE8NAME "nationsets" |
Definition at line 6952 of file stdinhand.c.
#define SPECENUM_VALUE9 LIST_TEAMS |
Definition at line 6953 of file stdinhand.c.
#define SPECENUM_VALUE9NAME "teams" |
Definition at line 6954 of file stdinhand.c.
#define SPECHASH_ASTR_KEY_TYPE |
Definition at line 104 of file stdinhand.c.
#define SPECHASH_IDATA_COPY time_duplicate |
Definition at line 107 of file stdinhand.c.
#define SPECHASH_IDATA_FREE (kick_hash_data_free_fn_t) free |
Definition at line 108 of file stdinhand.c.
#define SPECHASH_IDATA_TO_UDATA | ( | p | ) | (NULL != p ? *p : 0) |
Definition at line 110 of file stdinhand.c.
#define SPECHASH_IDATA_TYPE time_t * |
Definition at line 105 of file stdinhand.c.
#define SPECHASH_TAG kick |
Definition at line 103 of file stdinhand.c.
#define SPECHASH_UDATA_TO_IDATA | ( | t | ) | (&(t)) |
Definition at line 109 of file stdinhand.c.
#define SPECHASH_UDATA_TYPE time_t |
Definition at line 106 of file stdinhand.c.
|
static |
Returns true if there is at least one established connection.
Definition at line 1413 of file stdinhand.c.
Referenced by access_level_for_next_connection().
enum cmdlevel access_level_for_next_connection | ( | void | ) |
Return access level for next connection
Definition at line 1435 of file stdinhand.c.
Referenced by server_make_connection().
|
static |
Execute a command in the context of the AI of the player.
Definition at line 5847 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Set user to away mode.
Definition at line 2084 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Cancel a vote... /cancelvote [vote number]|all.
Definition at line 2627 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Stop sending game info to metaserver.
Definition at line 514 of file stdinhand.c.
Referenced by metaconnection_command(), and metaserver_command().
|
static |
Translate an AI level back to its CMD_* value. If we just used /set ailevel [num] we wouldn't have to do this - rp
Definition at line 1981 of file stdinhand.c.
Referenced by set_ai_level(), and set_ai_level_direct().
void cmd_reply | ( | enum command_id | cmd, |
struct connection * | caller, | ||
enum rfc_status rfc_status | , | ||
const char * | format, | ||
... | |||
) |
var-args version as above, no prefix
Definition at line 418 of file stdinhand.c.
Referenced by aicmd_command(), away_command(), cancelvote_command(), close_metaserver_connection(), cmd_reply_matches(), cmd_reply_no_such_conn(), cmd_reply_no_such_player(), cmdlevel_command(), connectmsg_command(), create_command(), cut_client_connection(), debug_command(), default_command(), delegate_command(), detach_command(), end_command(), explain_option(), fcdb_command(), firstlevel_command(), handle_stdin_input_real(), ignore_command(), kick_command(), load_command(), lua_command(), mapimg_command(), metaconnection_command(), metamessage_command(), metapatches_command(), metaserver_command(), observe_command(), open_metaserver_connection(), playercolor_command(), playernation_command(), quit_game(), read_init_script_real(), remove_player_command(), reset_command(), save_command(), scensave_command(), script_server_cmd_reply(), set_ai_level(), set_ai_level_direct(), set_cmdlevel(), set_command(), set_rulesetdir(), show_colors(), show_connections(), show_delegations(), show_help(), show_help_command(), show_help_command_list(), show_help_intro(), show_help_option(), show_help_option_list(), show_ignore(), show_list(), show_mapimg(), show_nationsets(), show_players(), show_ruleset_info(), show_rulesets(), show_scenarios(), show_serverid(), show_settings(), show_teams(), show_votes(), start_cmd_reply(), surrender_command(), take_command(), team_command(), timeout_command(), toggle_ai_player_direct(), unignore_command(), validate_setting_arg(), vote_command(), and write_command().
|
static |
feedback related to server commands caller == NULL means console. No longer duplicate all output to console.
This lowlevel function takes a single line; prefix is prepended to line.
Definition at line 331 of file stdinhand.c.
Referenced by vcmd_reply_prefix().
|
static |
Send a reply to the caller listing the matched names from an ambiguous prefix.
Definition at line 6456 of file stdinhand.c.
Referenced by show_help().
|
static |
Command specific argument parsing has detected that connection argument is invalid. This function is common handling for that situation.
Definition at line 466 of file stdinhand.c.
Referenced by cmdlevel_command(), cut_client_connection(), detach_command(), kick_command(), observe_command(), and take_command().
|
static |
Command specific argument parsing has detected that player argument is invalid. This function is common handling for that situation.
Definition at line 431 of file stdinhand.c.
Referenced by aicmd_command(), debug_command(), delegate_command(), observe_command(), playercolor_command(), playernation_command(), remove_player_command(), set_ai_level(), take_command(), team_command(), and toggle_ai_command().
|
static |
Definition at line 405 of file stdinhand.c.
|
static |
var-args version of above duplicate declaration required for attribute to work...
Referenced by show_help_command(), show_help_option(), show_nationsets(), and show_settings_one().
|
static |
Change command access level for individual player, or all, or new.
Definition at line 1463 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Convert a named command into an id. If accept_ambiguity is true, return the first command in the enum list which matches, else return CMD_AMBIGUOUS on ambiguity. (This is a trick to allow ambiguity to be handled in a flexible way without importing notify_player() messages inside this routine - rp)
Definition at line 221 of file stdinhand.c.
Referenced by handle_stdin_input_real().
bool conn_is_kicked | ( | struct connection * | pconn, |
int * | time_remaining | ||
) |
Returns FALSE if the connection isn't kicked and can connect the server normally.
Definition at line 6210 of file stdinhand.c.
Referenced by handle_login_request().
|
static |
Set message to send to all new connections
Definition at line 1940 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Creates a named AI player. The function can be called before the start of the game (see create_command_pregame()) and for a running game (see create_command_newcomer(). In the later case, first free player slots are used before the slots of dead players are (re)used.
Definition at line 752 of file stdinhand.c.
Referenced by handle_stdin_input_real().
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:
If 'pnation' is defined this nation is used for the new player.
Definition at line 810 of file stdinhand.c.
Referenced by api_edit_create_player(), and create_command().
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.
Definition at line 994 of file stdinhand.c.
Referenced by api_edit_create_player(), and create_command().
|
static |
Handle cut command
Definition at line 6167 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Turn on selective debugging.
Definition at line 2722 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Set a setting to its default value
Definition at line 4881 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Returns possible parameters for the 'delegate' command.
Definition at line 5114 of file stdinhand.c.
Referenced by delegate_command().
|
static |
Handle delegation of control.
Definition at line 5123 of file stdinhand.c.
Referenced by handle_stdin_input_real().
Return static string describing what a connection is connected to.
Definition at line 5574 of file stdinhand.c.
Referenced by delegate_command().
|
static |
Detach from a player. if that player wasn't /created and you were controlling the player, remove it (and then detach any observers as well).
If called for a global observer connection (where pconn->playing is NULL) then it will correctly detach from observing mode.
Definition at line 3627 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
End the game immediately in a draw.
Definition at line 4691 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Handle explain command
Definition at line 1895 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Returns possible parameters for the fcdb command.
Definition at line 5921 of file stdinhand.c.
Referenced by fcdb_command().
|
static |
Handle the freeciv database script module.
Definition at line 5930 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
This special command to set the command access level is not included into cmdlevel_command because of its lower access level: it can be used to promote one's own connection to 'first come' cmdlevel if that isn't already taken.
Definition at line 1606 of file stdinhand.c.
Referenced by handle_stdin_input_real().
struct strvec * get_init_script_choices | ( | void | ) |
Return a list of init scripts found on the data path. Caller should free. These are conventionally scripts that load rulesets (generally containing just a 'rulesetdir' command).
Definition at line 1268 of file stdinhand.c.
Referenced by send_ruleset_choices(), and show_rulesets().
bool handle_stdin_input | ( | struct connection * | caller, |
char * | str | ||
) |
Main entry point for "command input". Version to be used with statically allocated 'str'
Definition at line 4362 of file stdinhand.c.
Referenced by check_vote(), and handle_chat_msg_req().
bool handle_stdin_input_free | ( | struct connection * | caller, |
char * | str | ||
) |
Entry point for "command input". Version that frees 'str' in the end.
Definition at line 4370 of file stdinhand.c.
Referenced by server_sniff_all_input().
|
static |
Handle "command input", which could really come from stdin on console, or from client chat command, or read from file with -r, etc. caller == NULL means console, str is the input, which may optionally start with SERVER_COMMAND_PREFIX character.
If check is TRUE, then do nothing, just check syntax.
Definition at line 4389 of file stdinhand.c.
Referenced by handle_stdin_input(), handle_stdin_input_free(), handle_stdin_input_real(), and read_init_script_real().
|
static |
Convert unified helparg index to string; see above.
Definition at line 6512 of file stdinhand.c.
Referenced by show_help().
|
static |
/ignore command handler.
Definition at line 4013 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Check game.allow_take and fcdb if enabled for permission to take or observe a player.
NB: If this function returns FALSE, then callers expect that 'msg' will be filled in with a NULL-terminated string containing the reason.
Definition at line 3148 of file stdinhand.c.
Referenced by observe_command(), and take_command().
|
static |
Return whether first access level is already taken.
Definition at line 1421 of file stdinhand.c.
Referenced by firstlevel_command(), and notify_if_first_access_level_is_available().
|
static |
Are we operating under a restricted security regime? For now this does not do much.
Definition at line 182 of file stdinhand.c.
Referenced by connectmsg_command(), load_command(), lua_command(), read_init_script_real(), save_command(), scensave_command(), set_rulesetdir(), and write_command().
|
static |
Kick command handler.
Definition at line 6258 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Returns possible parameters for the list command.
Definition at line 6962 of file stdinhand.c.
Referenced by show_list().
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.
caller is the connection requesting the load, or NULL for a command-line load. Error messages are sent back to the caller and an access check is done to make sure they are allowed to load.
filename is simply the name of the file to be loaded. This may be approximate; the function will look for appropriate suffixes and will check in the various directories to see if the file is found.
if check is set then only a test run is done and no actual loading is attempted.
The return value is true if the load succeeds, or would succeed; false if there's an error in the file or file name. Some errors in loading however could be unrecoverable (if the save game is legitimate but has inconsistencies) and would lead to a broken server afterwards.
Definition at line 3733 of file stdinhand.c.
Referenced by handle_stdin_input_real(), and srv_prepare().
|
static |
Find option index by name. Return index (>=0) on success, else returned
Definition at line 1740 of file stdinhand.c.
Referenced by explain_option(), show_settings(), and validate_setting_arg().
|
static |
Find option level number by name.
Definition at line 1714 of file stdinhand.c.
Referenced by lookup_option(), and show_settings().
|
static |
Returns possible parameters for the reset command.
Definition at line 4924 of file stdinhand.c.
Referenced by lua_command().
|
static |
Evaluate a line of lua script or a lua script file.
Definition at line 4933 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Returns possible parameters for the mapimg command.
Definition at line 5613 of file stdinhand.c.
Referenced by mapimg_command().
|
static |
Handle mapimg command
Definition at line 5622 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Whether the caller can use the specified command. caller == NULL means console.
Definition at line 281 of file stdinhand.c.
Referenced by show_help_command_list().
|
static |
Whether the caller cannot use any commands at all. caller == NULL means console.
Definition at line 293 of file stdinhand.c.
Referenced by handle_stdin_input_real(), and show_help().
|
static |
Handle metaconnection command.
Definition at line 527 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Handle metamessage command.
Definition at line 608 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Handle metapatches command.
Definition at line 583 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Handle metaserver command.
Definition at line 642 of file stdinhand.c.
Referenced by handle_stdin_input_real().
void notify_if_first_access_level_is_available | ( | void | ) |
Check if first access level is available and if it is, notify connections about it.
Definition at line 1449 of file stdinhand.c.
Referenced by lost_connection_to_client().
|
static |
Observe another player. If we were already attached, detach (see connection_detach()). The console and those with ALLOW_HACK can use the two-argument command and force others to observe.
Definition at line 3290 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Start sending game info to metaserver.
Definition at line 500 of file stdinhand.c.
Referenced by metaconnection_command().
|
static |
Returns possible parameters for the commands that take server options as parameters (CMD_EXPLAIN and CMD_SET).
Definition at line 1646 of file stdinhand.c.
Referenced by helparg_accessor(), and lookup_option().
|
static |
Check the player name. Returns TRUE if the player name is valid else an error message is saved in 'buf'.
Definition at line 191 of file stdinhand.c.
Referenced by create_command_newcomer(), and create_command_pregame().
|
static |
/playercolor command handler.
Definition at line 4137 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
/playernation command handler.
Definition at line 4222 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Definition at line 4349 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Main entry point for the read command.
Definition at line 1158 of file stdinhand.c.
Referenced by handle_stdin_input_real().
bool read_init_script | ( | struct connection * | caller, |
char * | script_filename, | ||
bool | from_cmdline, | ||
bool | check | ||
) |
Main entry point for reading an init script.
Definition at line 1167 of file stdinhand.c.
Referenced by srv_main().
|
static |
Returns FALSE iff there was an error.
Security: We will look for a file with mandatory extension '.serv', and on public servers we will not look outside the data directories. As long as the user cannot create files with arbitrary names in the root of the data directories, this should ensure that we will not be tricked into loading non-approved content. The script is read with the permissions of the caller, so it will in any case not lead to elevated permissions unless there are other bugs.
Definition at line 1185 of file stdinhand.c.
Referenced by read_command(), read_init_script(), and reset_command().
|
static |
Handle remove command.
Definition at line 1121 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Returns possible parameters for the reset command.
Definition at line 4764 of file stdinhand.c.
Referenced by reset_command().
|
static |
Reload the game settings from the ruleset and reload the init script if one was used.
Definition at line 4774 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
For command "save foo"; Save the game, with filename=arg, provided server state is ok.
Definition at line 671 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
For command "scensave foo"; Save the game, with filename=arg, provided server state is ok.
Definition at line 688 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
void set_ai_level_direct | ( | struct player * | pplayer, |
enum ai_level | level | ||
) |
Set an AI level from the server prompt.
Definition at line 2003 of file stdinhand.c.
Referenced by split_player(), and srv_ready().
|
static |
Handle a user command to set an AI level.
Definition at line 2017 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Set ptarget's cmdlevel to level if caller is allowed to do so
Definition at line 1378 of file stdinhand.c.
Referenced by cmdlevel_command().
|
static |
Handle set command
Definition at line 2964 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Load rulesets from a given ruleset directory.
Security: There are some rudimentary checks in load_rulesets() to see if this directory really is a viable ruleset directory. For public servers, we check against directory redirection (is_safe_filename) and other bad stuff in the directory name, and will only use directories inside the data directories.
Definition at line 3920 of file stdinhand.c.
Referenced by handle_stdin_input_real().
void set_running_game_access_level | ( | void | ) |
Adjust default command level on game start.
Definition at line 1633 of file stdinhand.c.
Referenced by start_game().
|
static |
Return the status of the setting (changeable, locked, fixed). caller == NULL means console.
Definition at line 305 of file stdinhand.c.
Referenced by show_settings_one().
|
static |
Show a list of all players with the assigned color.
Definition at line 6915 of file stdinhand.c.
Referenced by show_list().
|
static |
/show command: show settings and their values.
Definition at line 2150 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
List connections; initially mainly for debugging
Definition at line 6592 of file stdinhand.c.
Referenced by show_list().
|
static |
List all delegations of the current game.
Definition at line 6618 of file stdinhand.c.
Referenced by show_list().
|
static |
Handle help command
Definition at line 6530 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Show the caller detailed help for the single COMMAND given by id. help_cmd is the command the player used.
Definition at line 6372 of file stdinhand.c.
Referenced by show_help().
|
static |
Show the caller list of COMMANDS. help_cmd is the command the player used.
Definition at line 6418 of file stdinhand.c.
Referenced by show_help().
|
static |
Show caller introductory help about the server. help_cmd is the command the player used.
Definition at line 6339 of file stdinhand.c.
Referenced by show_help().
|
static |
Show the caller detailed help for the single OPTION given by id. help_cmd is the command the player used. Only show option values for options which the caller can SEE.
Definition at line 1769 of file stdinhand.c.
Referenced by explain_option(), and show_help().
|
static |
Show the caller list of OPTIONS. help_cmd is the command the player used. Only show options which the caller can SEE.
Definition at line 1859 of file stdinhand.c.
Referenced by explain_option(), and show_help().
|
static |
|
static |
Show list of players or connections, or connection statistics.
Definition at line 6971 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Show a list of all map image definitions on the command line.
Definition at line 6894 of file stdinhand.c.
Referenced by mapimg_command(), and show_list().
|
static |
List nation sets in the current ruleset.
Definition at line 6827 of file stdinhand.c.
Referenced by show_list().
void show_players | ( | struct connection * | caller | ) |
Show the list of the players of the game.
Definition at line 6682 of file stdinhand.c.
Referenced by show_list().
|
static |
Show changed settings and ruleset summary.
Definition at line 2125 of file stdinhand.c.
Referenced by read_init_script_real(), reset_command(), and set_rulesetdir().
|
static |
List rulesets (strictly, .serv init script files that conventionally accompany rulesets).
Definition at line 6779 of file stdinhand.c.
Referenced by show_list().
|
static |
List scenarios. We look both in the DATA_PATH and DATA_PATH/scenario
Definition at line 6801 of file stdinhand.c.
Referenced by show_list().
|
static |
Returns the serverid
Definition at line 660 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Print a summary of the settings and their values. Note that most values are at most 4 digits, except seeds, which we let overflow their columns, plus a sign character. Only show options which the caller can SEE.
Definition at line 2160 of file stdinhand.c.
Referenced by show_command(), and show_ruleset_info().
|
static |
Show one setting.
Each option value will be displayed as:
[OPTION_NAME_SPACE length for name] ## [value] ([min], [max])
where '##' is a combination of ' ', '!' or '+' followed by ' ', '*', or '=' with
Definition at line 2332 of file stdinhand.c.
Referenced by show_settings().
|
static |
Show a list of teams on the command line.
Definition at line 6864 of file stdinhand.c.
Referenced by show_list().
|
static |
List all running votes. Moved from /vote command.
Definition at line 2473 of file stdinhand.c.
Referenced by show_list(), and vote_command().
|
static |
Send start command related message
Definition at line 6033 of file stdinhand.c.
Referenced by start_command().
bool start_command | ( | struct connection * | caller, |
bool | check, | ||
bool | notify | ||
) |
Handle start command. Notify all players about errors if notify set.
Definition at line 6044 of file stdinhand.c.
Referenced by handle_observer_ready(), handle_player_ready(), and handle_stdin_input_real().
void stdinhand_free | ( | void | ) |
Deinitialize stuff related to this code module.
Definition at line 262 of file stdinhand.c.
Referenced by server_quit().
void stdinhand_init | ( | void | ) |
Initialize stuff related to this code module.
Definition at line 241 of file stdinhand.c.
Referenced by srv_prepare().
void stdinhand_turn | ( | void | ) |
Update stuff every turn that is related to this code module. Run this on turn end.
Definition at line 254 of file stdinhand.c.
Referenced by end_turn().
|
static |
Concede the game. You still continue playing until all but one player or team remains un-conceded.
Definition at line 4716 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Take over a player. If a connection already has control of that player, disallow it.
If there are two arguments, treat the first as the connection name and the second as the player name (only hack and the console can do this). Otherwise, there should be one argument, that being the player that the caller wants to take.
Definition at line 3438 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Handle team command
Definition at line 2396 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Utility for 'kick_hash' tables.
Definition at line 6199 of file stdinhand.c.
|
static |
Set timeout options.
Definition at line 1670 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Handle aitoggle command.
Definition at line 729 of file stdinhand.c.
Referenced by handle_stdin_input_real().
void toggle_ai_player_direct | ( | struct connection * | caller, |
struct player * | pplayer | ||
) |
Handle ai player ai toggling.
Definition at line 704 of file stdinhand.c.
Referenced by autotoggle_action(), connection_attach_real(), connection_detach(), srv_ready(), and toggle_ai_command().
|
static |
/unignore command handler.
Definition at line 4048 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Helper to validate an argument referring to a server setting. Sends error message and returns NULL on failure.
Definition at line 2930 of file stdinhand.c.
Referenced by default_command(), and set_command().
|
static |
va_list version which allow embedded newlines, and each line is sent separately. 'prefix' is prepended to every line after the first line.
Definition at line 378 of file stdinhand.c.
Referenced by cmd_reply(), and cmd_reply_prefix().
|
static |
Definition at line 2514 of file stdinhand.c.
Referenced by vote_command().
|
static |
Make or participate in a vote.
Definition at line 2522 of file stdinhand.c.
Referenced by handle_stdin_input_real().
Send a message to all players
Definition at line 1928 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Generate init script from settings currently in use
Definition at line 1339 of file stdinhand.c.
Referenced by handle_stdin_input_real().
|
static |
Write current settings to new init script.
(Should this take a 'caller' argument for output? –dwp)
Definition at line 1278 of file stdinhand.c.
Referenced by write_command().
|
static |
Definition at line 97 of file stdinhand.c.
Referenced by access_level_for_next_connection(), cmdlevel_command(), notify_if_first_access_level_is_available(), set_running_game_access_level(), and write_init_script().
|
static |
Definition at line 98 of file stdinhand.c.
Referenced by access_level_for_next_connection(), cmdlevel_command(), firstlevel_command(), is_first_access_level_taken(), notify_if_first_access_level_is_available(), and write_init_script().
|
static |
Definition at line 175 of file stdinhand.c.
Referenced by cmdlevel_command(), show_colors(), show_connections(), show_delegations(), show_help_command_list(), show_help_option_list(), show_ignore(), show_mapimg(), show_nationsets(), show_players(), show_ruleset_info(), show_rulesets(), show_scenarios(), show_settings(), and show_teams().
|
static |
Definition at line 115 of file stdinhand.c.
Referenced by conn_is_kicked(), kick_command(), stdinhand_free(), and stdinhand_init().
|
static |
Definition at line 116 of file stdinhand.c.
Referenced by conn_is_kicked(), kick_command(), stdinhand_free(), and stdinhand_init().
const char* script_extension = ".serv" |
Definition at line 113 of file stdinhand.c.
Referenced by read_init_script_real(), and write_command().
|
static |
Vote command argument definitions.
Definition at line 2508 of file stdinhand.c.
Referenced by vote_arg_accessor().