Account, Achievements, Activate, Affect, AFK, After, AHelp, Alias, Announce, ANSI, Areas, As, Assist, ASync, At, ATopics, AutoAffects, AutoAssist, AutoDraw, AutoExits, Autoforward, AutoGold, AutoGuard, AutoImprovement, AutoInvoke, AutoLoot, AutoMap, AutoMelee, AutoNotify, AutoRun, AutoWeather, Ban, Beacon, Bid, Boot, Borrow, Brief, Buy, CalendarCmd, Catalog, Channel, Channels, ChanWho, CharGen, ClanAccept, ClanApply, ClanAssign, ClanCreate, ClanDeclare, ClanDetails, ClanDonateSet, ClanDues, ClanExile, ClanHomeSet, ClanKills, ClanList, ClanMorgueSet, ClanMOTD, ClanPremise, ClanPVPKills, ClanQual, ClanReject, ClanResign, ClanTax, ClanVote, Cloak, Close, ColorSet, CommandJournal, Commands, Compare, Compress, Config, Consider, Copy, Create, Credits, Deactivate, DeferCmd, Deities, Deposit, Description, Destroy, Deviations, Dig, Disembark, Dismount, Display, Dress, DrinkCmd, Drop, Duel, DumpFile, Eat, Email, Emote, Equipment, Every, Examine, Exits, Experience, Expertises, Expire, Export, FactionList, Feed, Fill, Fire, Follow, Formation, Friends, Gain, Gait, GConsider, Generate, Get, Give, GModify, Go, Group, GTell, Help, HelpList, Hire, History, Hold, I3Cmd, Ignore, IMC2, Import, Inventory, JConsole, JRun, Kill, Knock, Learn, Leave, LineWrap, ListCmd, Load, Lock, Logoff, Look, Mend, Merge, MetaMsgCommand, Modify, Mood, MOTD, Mount, MPCommand, MPRun, MXP, NoANSI, NoBattleSpam, NoChannel, NOMXP, NoPurge, NoSell, NoSounds, NoTeach, Open, Order, OutFit, Package, PageBreak, Password, Pause, PlayerKill, PollCmd, Poof, Pose, Possess, Pour, Practice, PreviousCmd, Prompt, Purge, Put, Questwins, Quiet, Quit, Read, Rebuke, Remort, Remove, Replay, Reply, Reset, Restring, Retire, Rules, Save, Say, Sell, Serve, SetCmd, Sheath, Shell, Shutdown, Sit, Skills, Sleep, Sniff, Snoop, SocialsCmd, Sounds, Split, Stand, Subscribe, Switch, SysMsgs, Take, Teach, Tell, Template, Test, Throw, TickTock, Time, Title, Top, TrailTo, Train, Undress, UnLink, Unload, Unlock, Value, Vassals, Ver, View, Visible, Wake, Wear, Weather, Where, Whisper, Who, Wield, Wimpy, Withdraw, WizEmote, WizInv, WizList, Xml, Yellpublic class StdCommand extends java.lang.Object implements Command
| Modifier and Type | Field | Description | 
|---|---|---|
| protected java.lang.String | ID | |
| protected static Filterer<Environmental> | noCoinFilter | 
idConverter| Constructor | Description | 
|---|---|
| StdCommand() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| double | actionsCost(MOB mob,
           java.util.List<java.lang.String> cmds) | Returns the number of actions required to completely
 activate this command. | 
| boolean | canBeCancelled() | Returns true if the command will not be executed if all are true:
 1. | 
| boolean | canBeOrdered() | Whether a group leader or charmer can order their followers
 to do this command. | 
| boolean | checkArguments(java.lang.Class[][] fmt,
              java.lang.Object... args) | |
| double | checkedActionsCost(MOB mob,
                  java.util.List<java.lang.String> cmds) | Returns the number of actions required to completely
 activate this command. | 
| double | combatActionsCost(MOB mob,
                 java.util.List<java.lang.String> cmds) | Returns the number of actions required to completely
 activate this command. | 
| int | compareTo(CMObject o) | |
| CMObject | copyOf() | Similar to Cloneable.clone(), but does its best to make sure that
 any internal objects to this class are also copyOfed. | 
| boolean | execute(MOB mob,
       java.util.List<java.lang.String> commands,
       int metaFlags) | This method actually performs the command, when the given parsed
 set of command-line words. | 
| java.lang.Object | executeInternal(MOB mob,
               int metaFlags,
               java.lang.Object... args) | This method is used for making "insider" calls to the command. | 
| java.lang.String[] | getAccessWords() | Returns the set of command words, with the most public one first,
 that are entered by the user to initiate this command. | 
| int | getArgumentSetIndex(java.lang.Class[][] fmt,
                   java.lang.Object... args) | |
| protected MOB | getVisibleRoomTarget(MOB mob,
                    java.lang.String whom) | |
| static java.lang.String[] | I(java.lang.String[] str) | |
| java.lang.String | ID() | The CoffeeMud Java Class ID shared by all instances of
 this object. | 
| void | initializeClass() | Called ONCE after all objects are loaded, but before the map is read in
 during initialization. | 
| protected boolean | isOccupiedWithOtherWork(MOB mob) | |
| java.lang.String | L(java.lang.String str,
 java.lang.String... xs) | |
| java.lang.String | name() | The displayable name of this object. | 
| CMObject | newInstance() | Returns a new instance of this class. | 
| boolean | preExecute(MOB mob,
          java.util.List<java.lang.String> commands,
          int metaFlags,
          int secondsElapsed,
          double actionsRemaining) | This method is only called when the mob invoking this command
 does not have enough actions to complete it immediately. | 
| boolean | putInCommandlist() | Returns whether this commands`s access words should be
 places in the master list of commands. | 
| boolean | securityCheck(MOB mob) | Whether this command is available to the given player | 
protected final java.lang.String ID
protected static final Filterer<Environmental> noCoinFilter
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public java.lang.String[] getAccessWords()
CommandgetAccessWords in interface Commandpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic java.lang.String L(java.lang.String str,
                          java.lang.String... xs)
public static java.lang.String[] I(java.lang.String[] str)
public boolean execute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags) throws java.io.IOException
Commandexecute in interface Commandmob - the mob or player issueing the commandcommands - usually the command words and parameters; a set of stringsmetaFlags - flags denoting how the command is being executedjava.io.IOException - usually means the player has dropped carrierCommand.actionsCost(MOB, List), 
Command.securityCheck(MOB)public boolean preExecute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags, int secondsElapsed, double actionsRemaining) throws java.io.IOException
CommandpreExecute in interface Commandmob - the player or mob invoking the commandcommands - the parameters entered for the command (including the trigger word)metaFlags - flags denoting how the command is being executedsecondsElapsed - 0 at first, and increments every secondactionsRemaining - number of free actions the player is defficient.java.io.IOException - usually means the player has dropped carrierCommand.execute(MOB, List, int), 
Command.canBeCancelled()public java.lang.Object executeInternal(MOB mob, int metaFlags, java.lang.Object... args) throws java.io.IOException
CommandexecuteInternal in interface Commandmob - the mob or player issueing the commandmetaFlags - flags denoting how the command is being executedargs - a set of object parametersjava.io.IOException - usually means the player has dropped carrierpublic int getArgumentSetIndex(java.lang.Class[][] fmt,
                               java.lang.Object... args)
public boolean checkArguments(java.lang.Class[][] fmt,
                              java.lang.Object... args)
protected boolean isOccupiedWithOtherWork(MOB mob)
public double actionsCost(MOB mob, java.util.List<java.lang.String> cmds)
CommandactionsCost in interface Commandmob - the mob executing the command, if anycmds - the parameters to be passed to the command, if anyCommand.combatActionsCost(MOB, List), 
Command.checkedActionsCost(MOB, List)public double combatActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
CommandcombatActionsCost in interface Commandmob - the mob executing the command, if anycmds - the parameters to be passed to the command, if anyCommand.actionsCost(MOB, List), 
Command.checkedActionsCost(MOB, List)public boolean canBeCancelled()
CommandcanBeCancelled in interface CommandCommand.preExecute(MOB, List, int, int, double)public double checkedActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
CommandcheckedActionsCost in interface Commandmob - the mob executing the command, if anycmds - the parameters to be passed to the command, if anyCommand.combatActionsCost(MOB, List), 
Command.actionsCost(MOB, List)public boolean canBeOrdered()
CommandcanBeOrdered in interface Commandpublic boolean securityCheck(MOB mob)
CommandsecurityCheck in interface Commandmob - the player mob who might not even know about this commandpublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic CMObject copyOf()
CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public boolean putInCommandlist()
CommandputInCommandlist in interface CommandCommand.getAccessWords()