/* * Empire - A multi-player, client/server Internet based war game. * Copyright (C) 1986-2007, Dave Pare, Jeff Bailey, Thomas Ruschak, * Ken Stevens, Steve McClure * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * --- * * 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. * * --- * * empmod.c: List all commands for Empire * * Known contributors to this file: * Dave Pare, 1986 * Jeff Bailey * Thomas Ruschak, 1992 * Ken Stevens, 1995 * Steve McClure, 1996-2000 */ #include #include "com.h" #include "player.h" #include "prototypes.h" struct cmndstr player_coms[] = { /* command form cost addr permit */ {"accept [as-COUNTRY]", 0, acce, C_MOD, NORM}, {"add ", 0, add, C_MOD, GOD}, {"announce", 0, tele, C_MOD, VIS}, {"anti ", 3, anti, C_MOD, NORM + MONEY + CAP}, {"apropos ", 0, apro, 0, VIS}, {"arm ", 3, arm, C_MOD, NORM + MONEY + CAP}, {"army ", 0, army, C_MOD, NORM}, {"assault [ ]", 3, assa, C_MOD, NORM + MONEY + CAP}, {"attack [ ]", 3, atta, C_MOD, NORM + MONEY + CAP}, {"bdes ", 0, bdes, C_MOD, NORM}, {"bestpath ", 0, best, 0, NORM}, {"bmap [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM}, {"board [|]", 3, boar, C_MOD, NORM + MONEY + CAP}, {"bomb ", 2, bomb, C_MOD, NORM + MONEY + CAP}, {"break", 0, brea, C_MOD, SANCT}, {"budget", 1, budg, 0, NORM}, {"build [ ]", 1, buil, C_MOD, NORM + MONEY + CAP}, {"buy ", 1, buy, C_MOD, CAP + NORM + MONEY}, {"bye", 0, quit, 0, VIS}, {"capital ", 0, capi, C_MOD, NORM}, {"cargo ", 0, carg, 0, NORM}, #ifdef CEDE_IS_ALLOWED {"cede [se|sh]", 639, cede, C_MOD, NORM}, #endif /* CEDE_IS_ALLOWED */ {"census ", 0, cens, 0, VIS}, {"change ", 0, chan, C_MOD, VIS}, {"coastwatch ", 1, coas, C_MOD, NORM + CAP}, {"collect ", 2, coll, C_MOD, NORM + MONEY + CAP}, {"commodity ", 0, comm, 0, VIS}, {"consider ", 1, cons, C_MOD, NORM + CAP}, {"convert [sure?]", 2, conv, C_MOD, NORM + MONEY + CAP}, {"country ", 0, coun, 0, NORM}, {"cutoff ", 0, cuto, C_MOD, NORM}, {"declare ", 2, decl, C_MOD, NORM + CAP}, {"deliver [q|] []", 1, deli, C_MOD, NORM}, {"demobilize [sure?]", 1, demo, C_MOD, NORM + CAP}, {"designate [sure?]", 1, desi, C_MOD, NORM}, {"disable", 0, disa, C_MOD, GOD}, {"disarm ", 2, disarm, C_MOD, NORM + MONEY + CAP}, {"distribute ", 1, dist, C_MOD, NORM}, {"drop ", 1, drop, C_MOD, NORM + MONEY + CAP}, {"dump []", 0, dump, 0, NORM}, {"echo []", 0, echo, 0, NORM}, {"edit [ ]...", 0, edit, C_MOD, GOD}, {"enable", 0, enab, C_MOD, GOD}, {"enlist ", 2, enli, C_MOD, NORM + MONEY + CAP}, {"execute ", 0, execute, 0, VIS + EXEC }, {"explore ", 1, explore, C_MOD, NORM + MONEY + CAP}, {"financial", 0, fina, 0, NORM}, {"fire [TO-SECT | SHIP]", 1, multifire, C_MOD, NORM + MONEY + CAP}, {"flash []", 0, flash, 0, VIS}, {"fleetadd ", 0, flee, C_MOD, NORM}, {"fly ", 2, fly, C_MOD, NORM + MONEY + CAP}, {"follow ", 1, foll, C_MOD, NORM + CAP}, {"force", 0, force, C_MOD, GOD}, {"fortify ", 1, fort, C_MOD, NORM}, {"fuel []", 1, fuel, C_MOD, NORM}, {"give ", 0, give, C_MOD, GOD}, {"grind ", 1, grin, C_MOD, NORM + MONEY + CAP}, {"harden ", 2, hard, C_MOD, NORM + MONEY + CAP}, {"headlines [days]", 0, head, C_MOD, VIS}, {"help ", 0, info, 0, VIS}, {"improve ", 1, improve, C_MOD, NORM + MONEY + CAP}, {"info ", 0, info, 0, VIS}, {"land ", 0, land, C_MOD, NORM}, {"launch ", 3, laun, C_MOD, NORM + MONEY + CAP}, {"lbmap [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM}, {"lboard []", 3, lboa, C_MOD, NORM + MONEY + CAP}, {"lcargo ", 0, lcarg, 0, NORM}, {"ldump []", 0, ldump, 0, NORM}, {"ledger ", 0, ledg, 0, NORM}, {"level ", 0, leve, 0, NORM}, {"list", 0, explain, 0, VIS}, {"lload ", 1, lload, C_MOD, NORM + CAP}, {"llookout ", 1, llook, 0, NORM + CAP}, {"lmap [s|l|n|p|*|h]", 0, map, C_MOD, NORM}, {"lmine ", 2, landmine, C_MOD, NORM + MONEY + CAP}, {"load ", 1, load, C_MOD, NORM + CAP}, {"lookout ", 1, look, 0, NORM + CAP}, {"lost", 0, lost, 0, NORM}, {"lradar ", 1, lrad, 0, NORM + CAP}, {"lrange ", 1, lrange, C_MOD, NORM + CAP}, {"lretreat [i|h|b|c]", 1, lretr, C_MOD, NORM + CAP}, {"lstat ", 0, lsta, C_MOD, NORM}, {"ltend ", 1, ltend, C_MOD, NORM + CAP}, {"lunload ", 1, lload, C_MOD, NORM + CAP}, {"map [s|l|n|p|*|h]", 0, map, C_MOD, VIS}, {"march ", 1, march, C_MOD, NORM + CAP}, {"market ", 0, mark, 0, VIS}, {"mine ", 2, mine, C_MOD, NORM + MONEY + CAP}, {"mission []", 2, mission, C_MOD, NORM + CAP}, {"morale ", 1, morale, C_MOD, NORM + CAP}, {"motd", 0, show_motd, C_MOD, VIS}, {"move ", 1, move, C_MOD, NORM + CAP}, {"mquota ", 2, mobq, C_MOD, NORM + CAP}, {"name ", 0, name, C_MOD, NORM}, {"nation [as-COUNTRY]", 0, nati, 0, VIS}, {"navigate ", 1, navi, C_MOD, NORM + CAP}, {"nbmap [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM}, {"ndump ", 0, ndump, 0, NORM}, {"newcap []", 0, new, C_MOD, GOD}, {"neweff ", 0, newe, C_MOD, NORM}, {"newspaper [days]", 0, news, 0, VIS}, {"nmap [s|l|n|p|*|h]", 0, map, C_MOD, VIS}, {"nuke ", 0, nuke, 0, NORM}, {"offer [ ]", 1, offe, C_MOD, NORM + MONEY + CAP}, {"order ", 1, orde, C_MOD, NORM + CAP}, {"origin ", 1, orig, C_MOD, NORM}, {"paradrop ", 3, para, C_MOD, NORM + MONEY + CAP}, {"path ", 0, path, 0, NORM}, {"payoff ", 0, payo, C_MOD, NORM}, {"pbmap [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM}, {"pboard ", 3, pboa, C_MOD, NORM + MONEY + CAP}, {"pdump []", 0, pdump, 0, NORM}, {"peek ", 0, peek, 0, GOD}, {"plane ", 0, plan, 0, NORM}, {"players", 0, play, 0, VIS}, {"pmap [s|l|n|p|*|h]", 0, map, C_MOD, NORM}, {"power [\"new\"|\"update\"] [ | \"country\" ]", 0, powe, C_MOD, VIS}, {"pray", 0, tele, C_MOD, NORM}, {"production ", 0, prod, 0, NORM}, {"pstat ", 0, pstat, 0, NORM}, {"qorder ", 0, qorde, C_MOD, NORM + CAP}, {"quit", 0, quit, 0, VIS}, {"radar ", 1, rada, 0, NORM + CAP}, {"range ", 1, range, C_MOD, NORM + CAP}, {"read [yes|no|]", 0, rea, C_MOD, VIS}, {"realm []", 0, real, C_MOD, NORM}, {"recon ", 3, reco, C_MOD, NORM + MONEY + CAP}, {"reject ", 2, reje, C_MOD, NORM}, {"relations [as-COUNTRY]", 0, rela, 0, VIS}, {"reload", 0, relo, C_MOD, GOD}, {"repay ", 1, repa, C_MOD, NORM + MONEY + CAP}, {"report ", 0, repo, 0, VIS}, {"reset <0|price>", 1, rese, C_MOD, NORM + CAP}, {"resource ", 0, reso, 0, NORM}, {"retreat [i|t|s|h|b|d|u|c]", 1, retr, C_MOD, NORM + CAP}, {"route ", 1, rout, 0, NORM}, {"sabotage ", 1, sabo, C_MOD, NORM + MONEY + CAP}, {"sail ", 1, sail, C_MOD, NORM + CAP}, {"satellite [ [?cond&cond&...]]", 1, sate, 0, NORM + MONEY + CAP}, {"sbmap [s|l|n|p|r|t|*|h]", 0, map, C_MOD, NORM}, {"scrap ", 2, scra, C_MOD, NORM + MONEY + CAP}, {"scuttle ", 5, scut, C_MOD, NORM + CAP}, {"sdump []", 0, sdump, 0, NORM}, {"sect ", 0, sct, 0, NORM}, {"sell ", 1, sell, C_MOD, NORM + CAP}, {"set ", 1, set, C_MOD, NORM + CAP}, {"setresource ", 0, setres, C_MOD, GOD}, {"setsector ", 0, setsector, C_MOD, GOD}, {"sharebmap []", 0, shar, C_MOD, NORM}, {"shark ", 25, shark, C_MOD, NORM + MONEY + CAP}, {"ship ", 0, shi, 0, NORM}, {"shoot ", 3, shoo, C_MOD, NORM + MONEY + CAP}, {"show <\"build\"|\"stats\"|\"cap\"> []\n" "\tshow \n" "\tshow updates []>", 0, show, 0, VIS}, {"shutdown ", 0, shut, 0, GOD}, {"sinfrastructure ", 0, sinfra, 0, VIS}, {"skywatch ", 1, skyw, C_MOD, NORM + CAP}, {"smap [s|l|n|p|*|h]", 0, map, C_MOD, NORM}, {"sonar ", 1, sona, C_MOD, NORM + CAP}, {"sorder ", 0, sorde, C_MOD, NORM + CAP}, {"spy ", 1, spy, C_MOD, NORM + CAP}, {"sstat ", 0, sstat, 0, NORM}, {"start ", 1, start, C_MOD, NORM + CAP}, {"starvation [|l |s ]", 0, starve, 0, NORM}, {"stop ", 1, stop, C_MOD, NORM + CAP}, {"strength ", 1, stre, C_MOD, NORM}, {"supply ", 1, supp, C_MOD, NORM + CAP}, {"survey ", 0, surv, 0, NORM + CAP}, {"swapsector ", 0, swaps, C_MOD, GOD}, {"sweep ", 3, reco, C_MOD, NORM + MONEY + CAP}, {"telegram ...", 0, tele, C_MOD, NORM}, {"tend ", 1, tend, C_MOD, NORM + CAP}, {"territory []", 0, terr, C_MOD, NORM}, {"test ", 1, move, C_MOD, NORM + CAP}, {"threshold ", 1, thre, C_MOD, NORM}, {"toggle [inform|flash|beep|coastwatch|sonar|techlists] [on|off]", 0, togg, C_MOD, VIS}, {"torpedo ", 3, torp, C_MOD, NORM + MONEY + CAP}, {"trade", 1, trad, C_MOD, NORM + CAP + MONEY}, {"transport <\"nuke\"|\"plane\"> ", 1, tran, C_MOD, NORM + CAP}, {"treaty ", 0, trea, 0, NORM + MONEY + CAP}, {"turn <\"on\"|\"off\"|\"mess\">", 0, turn, C_MOD, GOD}, {"unload ", 1, load, C_MOD, NORM + CAP}, {"unsail ", 1, sail, C_MOD, NORM + CAP}, {"update", 0, upda, 0, VIS}, {"upgrade ", 1, upgr, C_MOD, NORM + MONEY + CAP}, {"version", 0, vers, 0, VIS}, {"wall []", 0, wall, C_MOD, NORM}, {"wingadd ", 1, wing, C_MOD, NORM}, {"wipe ", 1, wipe, C_MOD, NORM}, {"wire [yes|no|]", 0, rea, C_MOD, VIS}, {"work ", 1, work, C_MOD, NORM + MONEY + CAP}, {"xdump [\"meta\"] []", 0, xdump, 0, VIS}, {"zdone ", 0, zdon, C_MOD, NORM}, {0, 0, 0, 0, 0} };