/*
* Empire - A multi-player, client/server Internet based war game.
- * Copyright (C) 1986-2000, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ * Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
* Ken Stevens, Steve McClure
*
* This program is free software; you can redistribute it and/or modify
*
* ---
*
- * See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
- * related information and legal notices. It is expected that any future
- * projects/authors will amend these files as needed.
+ * See files README, COPYING and CREDITS in the root of the source
+ * tree for related information and legal notices. It is expected
+ * that future projects/authors will amend these files as needed.
*
* ---
*
* Steve McClure, 1996-2000
*/
-#include "misc.h"
+#include <config.h>
+
#include "com.h"
-#include "nat.h"
-#include "file.h"
-#include "commands.h"
+#include "prototypes.h"
struct cmndstr player_coms[] = {
/* command form cost addr permit */
{"harden <PLANES> <NUM>", 2, hard, C_MOD, NORM + MONEY + CAP},
{"help <topic>", 0, info, 0, VIS},
{"headlines [days]", 0, head, C_MOD, VIS},
- {"hidden <SECTS>", 0, hidd, 0, GOD},
{"improve <road|rail|defense> <SECTS> <NUM>", 1, improve, C_MOD,
NORM + MONEY + CAP},
{"info <topic>", 0, info, 0, VIS},
{"land <UNITS>", 0, land, C_MOD, NORM},
- {"launch <PLANES>", 3, laun, C_MOD, NORM + MONEY + CAP},
+ {"launch <PLANES> <SECT|SHIP>", 3, laun, C_MOD, NORM + MONEY + CAP},
{"lboard <to-LAND> [<from-sector>]", 3, lboa, C_MOD,
NORM + MONEY + CAP},
{"lcargo <UNITS>", 0, lcarg, 0, NORM},
NORM + CAP},
{"lunload <COMM|\"land\"|\"plane\"> <UNITS> <NUM|UNITS|PLANES>", 1,
lload, C_MOD, NORM + CAP},
- {"market [COMM]", 0, mark, 0, VIS},
+ {"market <COMM|\"all\">", 0, mark, 0, VIS},
{"map <SECTS|SHIP> [s|l|p|*|h]", 0, map, C_MOD, VIS},
{"march <UNITS> <PATH|DESTINATION>", 1, march, C_MOD, NORM + CAP},
{"mine <SHIPS>", 2, mine, C_MOD, NORM + MONEY + CAP},
{"mobupdate <MINUTES|check>", 0, mobupdate, C_MOD, GOD},
{"morale <UNITS> <retreat%>", 1, morale, C_MOD, NORM + CAP},
{"motd", 0, show_motd, C_MOD, VIS},
- {"move <c|m|s|g|p|i|o|b|f|r|u> <SECT> <NUM> <PATH|DESTINATION>", 1,
+ {"move <COMM> <SECT> <NUM> <PATH|DESTINATION>", 1,
move, C_MOD, NORM + CAP},
{"mquota <SHIPS> <value>", 2, mobq, C_MOD, NORM + CAP},
{"name <SHIPS> <NAME>", 0, name, C_MOD, NORM},
- {"nation", 0, nati, 0, VIS},
+ {"nation [as-COUNTRY]", 0, nati, 0, VIS},
{"navigate <SHIPS> <PATH|DESTINATION>", 1, navi, C_MOD, NORM + CAP},
{"ndump <SECTS>", 0, ndump, 0, NORM},
{"newcap <NAT> [<SECTOR>]", 0, new, C_MOD, GOD},
{"nuke <SECTS>", 0, nuke, 0, NORM},
{"offer <loan|treaty> <NAT> [<NUM> <DAYS> <IRATE>]", 1, offe, C_MOD,
NORM + MONEY + CAP},
- {"offset <SECT|NAT>", 0, offs, C_MOD, GOD},
{"order <SHIPS> <c|s|r|d|l> ", 1, orde, C_MOD, NORM + CAP},
- {"origin <SECT>", 1, orig, C_MOD, NORM},
+ {"origin <SECT|COUNTRY|~>", 1, orig, C_MOD, NORM},
{"paradrop <cargo-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION>", 3, para, C_MOD, NORM + MONEY + CAP},
{"path <SECT>", 0, path, 0, NORM},
{"payoff <SHIPS>", 0, payo, C_MOD, NORM},
{"pbmap <SECTS|UNIT> [s|l|p|r|t|*|h]", 0, map, C_MOD, NORM},
{"pboard <PLANES>", 3, pboa, C_MOD, NORM + MONEY + CAP},
{"pdump <PLANES> [<fields>]", 0, pdump, 0, NORM},
+ {"peek <SECTS>", 0, peek, 0, GOD},
{"plane <SECTS>", 0, plan, 0, NORM},
{"players", 0, play, 0, VIS},
{"pmap <SECTS|UNIT> [s|l|p|*|h]", 0, map, C_MOD, NORM},
{"quit", 0, quit, 0, VIS},
{"radar <SHIPS | SECTS>", 1, rada, 0, NORM + CAP},
{"range <PLANES> <range>", 1, range, C_MOD, NORM + CAP},
- {"read", 0, rea, C_MOD, VIS},
+ {"read [yes|no|<CNUM/CNAME>]", 0, rea, C_MOD, VIS},
{"realm <number> [<SECTS>]", 0, real, C_MOD, NORM},
{"recon <spy-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION>", 3,
reco, C_MOD, NORM + MONEY + CAP},
{"swapsector <SECT> <SECT>", 0, swaps, C_MOD, GOD},
{"sweep <sweep-PLANES> <fighter-PLANES> <ap-SECT> <PATH|DESTINATION>",
3, reco, C_MOD, NORM + MONEY + CAP},
- {"telegram <NAT>", 0, tele, C_MOD, NORM},
+ {"telegram <NATS>...", 0, tele, C_MOD, NORM},
{"tend <COMM|\"land\"> <tender-SHIPS> <NUM|UNIT> <dest-SHIPS>", 1,
tend, C_MOD, NORM + CAP},
{"territory <SECTS> <NUMBER> [<FIELD>]", 0, terr, C_MOD, NORM},
- {"test <c|m|s|g|p|i|o|b|f|r|u> <SECT> <NUM> <PATH|DESTINATION>", 1,
+ {"test <COMM> <SECT> <NUM> <PATH|DESTINATION>", 1,
move, 0, NORM + CAP},
{"threshold <COMM> <SECTS> <THRESH>", 1, thre, C_MOD, NORM},
{"toggle [inform|flash|beep|coastwatch|sonar|techlists] [on|off]", 0,
{"wipe <SECTS>", 1, wipe, C_MOD, NORM},
{"wire [yes|no|<days>]", 0, rea, C_MOD, VIS},
{"work <LAND UNITS> <AMOUNT>", 1, work, C_MOD, NORM + MONEY + CAP},
+ {"xdump [<TABLE-KIND>] <TABLE> [<ROWS>]", 0, xdump, 0, NORM},
{"zdone <y|n|c>", 0, zdon, C_MOD, NORM},
{0, 0, 0, 0, 0}
};