public class Merge extends StdCommand
idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
Merge() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
boolean |
dbMerge(MOB mob,
java.lang.String name,
Modifiable dbM,
Modifiable M,
java.util.Set<java.lang.String> ignores) |
|
boolean |
doArchonDBCompare(MOB mob,
java.lang.String scope,
java.lang.String firstWord,
java.util.List<java.lang.String> commands) |
|
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.String[] |
getAccessWords() |
Returns the set of command words, with the most public one first,
that are entered by the user to initiate this command.
|
static java.lang.String |
getStat(Environmental E,
java.lang.String stat) |
|
static void |
mergedebugtell(MOB mob,
java.lang.String msg) |
|
boolean |
securityCheck(MOB mob) |
Whether this command is available to the given player
|
static void |
setStat(Environmental E,
java.lang.String stat,
java.lang.String value) |
|
void |
sortEnumeratedList(java.util.Enumeration<? extends Environmental> e,
java.util.List<java.lang.String> allKnownFields,
java.lang.StringBuffer allFieldsMsg) |
|
protected static boolean |
tryMerge(MOB mob,
Room room,
Environmental E,
java.util.List<?> things,
java.util.List<java.lang.String> changes,
java.util.List<java.lang.String> onfields,
java.util.List<java.lang.String> ignore,
boolean noisy) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionsCost, canBeCancelled, checkArguments, checkedActionsCost, combatActionsCost, compareTo, copyOf, executeInternal, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, preExecute, putInCommandlist
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
public static java.lang.String getStat(Environmental E, java.lang.String stat)
public static void setStat(Environmental E, java.lang.String stat, java.lang.String value)
public static void mergedebugtell(MOB mob, java.lang.String msg)
protected static boolean tryMerge(MOB mob, Room room, Environmental E, java.util.List<?> things, java.util.List<java.lang.String> changes, java.util.List<java.lang.String> onfields, java.util.List<java.lang.String> ignore, boolean noisy)
public void sortEnumeratedList(java.util.Enumeration<? extends Environmental> e, java.util.List<java.lang.String> allKnownFields, java.lang.StringBuffer allFieldsMsg)
public boolean execute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags) throws java.io.IOException
Command
execute
in interface Command
execute
in class StdCommand
mob
- 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 dbMerge(MOB mob, java.lang.String name, Modifiable dbM, Modifiable M, java.util.Set<java.lang.String> ignores) throws java.io.IOException, CMException
java.io.IOException
CMException
public boolean doArchonDBCompare(MOB mob, java.lang.String scope, java.lang.String firstWord, java.util.List<java.lang.String> commands) throws java.io.IOException
java.io.IOException
public boolean canBeOrdered()
Command
canBeOrdered
in interface Command
canBeOrdered
in class StdCommand
public boolean securityCheck(MOB mob)
Command
securityCheck
in interface Command
securityCheck
in class StdCommand
mob
- the player mob who might not even know about this command