Esempio n. 1
0
    const char *synopsis;   /* one or few-line summary of usage */
    const char *short_help; /* one line (about 70 chars) description */
    const char *extra_help; /* extra help information; will be line-wrapped */
    char *(*extra_help_func)(void);
    /* dynamically generated help; if non-NULL,
     * extra_help is ignored. Must be pre-translated. */
    enum cmd_echo echo;     /* Who will be notified when used. */
    int vote_flags;         /* how to handle votes */
    int vote_percent;       /* percent required, meaning depends on flags */
};

/* Commands must match the values in enum command_id. */
static struct command commands[] = {
    {   "start",	ALLOW_BASIC,
        /* no translatable parameters */
        SYN_ORIG_("start"),
        N_("Start the game, or restart after loading a savegame."),
        N_("This command starts the game. When starting a new game, "
        "it should be used after all human players have connected, and "
        "AI players have been created (if required), and any desired "
        "changes to initial server options have been made. "
        "After 'start', each human player will be able to "
        "choose their nation, and then the game will begin. "
        "This command is also required after loading a savegame "
        "for the game to recommence. Once the game is running this command "
        "is no longer available, since it would have no effect."), NULL,
        CMD_ECHO_NONE, VCF_NONE, 0
    },

    {   "help",	ALLOW_INFO,
        /* TRANS: translate text between <> only */
Esempio n. 2
0
struct command {
  const char *name;       /* name - will be matched by unique prefix   */
  enum cmdlevel_id level; /* access level required to use the command  */
  const char *synopsis;	  /* one or few-line summary of usage */
  const char *short_help; /* one line (about 70 chars) description */
  const char *extra_help; /* extra help information; will be line-wrapped */
  int vote_flags;         /* how to handle votes */
  int vote_percent;       /* percent required, meaning depends on flags */
};

/* Commands must match the values in enum command_id. */
static struct command commands[] = {
  {"start",	ALLOW_BASIC,
   /* no translatable parameters */
   SYN_ORIG_("start"),
   N_("Start the game, or restart after loading a savegame."),
   N_("This command starts the game.  When starting a new game, "
      "it should be used after all human players have connected, and "
      "AI players have been created (if required), and any desired "
      "changes to initial server options have been made.  "
      "After 'start', each human player will be able to "
      "choose their nation, and then the game will begin.  "
      "This command is also required after loading a savegame "
      "for the game to recommence.  Once the game is running this command "
      "is no longer available, since it would have no effect."),
   VCF_NONE, 0
  },

  {"help",	ALLOW_INFO,
   /* TRANS: translate text between <> only */