idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
Who() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
boolean |
checkWho(MOB seerM,
MOB seenM,
Filterer<MOB> mobFilter) |
|
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.
|
java.lang.String |
getHead(int[] colWidths) |
|
java.lang.String |
getPlainWhoName(MOB seenM) |
|
int[] |
getShortColWidths(MOB seer) |
|
java.lang.String |
getTail(int[] colWidths,
java.lang.String word,
int amt) |
|
java.lang.String |
getWho(MOB mob,
boolean emptyOnNone,
Filterer<MOB> mobFilter,
java.util.Comparator<MOB> mobSort,
java.lang.String tailStr) |
|
java.lang.String |
getWhoName(MOB seenM,
MOB viewerM) |
|
protected static java.lang.Integer |
nullObjectCompare(java.lang.Object o1,
java.lang.Object o2) |
|
java.lang.StringBuffer |
showWhoShort(MOB who,
MOB viewerM,
int[] colWidths) |
|
java.lang.StringBuffer |
showWhoSingle(MOB who,
MOB viewerM,
int[] colWidths) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionsCost, canBeCancelled, checkArguments, checkedActionsCost, combatActionsCost, compareTo, copyOf, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, preExecute, putInCommandlist, securityCheck
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
public int[] getShortColWidths(MOB seer)
public java.lang.String getHead(int[] colWidths)
public java.lang.String getTail(int[] colWidths, java.lang.String word, int amt)
public java.lang.String getPlainWhoName(MOB seenM)
public java.lang.String getWho(MOB mob, boolean emptyOnNone, Filterer<MOB> mobFilter, java.util.Comparator<MOB> mobSort, java.lang.String tailStr)
protected static java.lang.Integer nullObjectCompare(java.lang.Object o1, java.lang.Object o2)
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 java.lang.Object executeInternal(MOB mob, int metaFlags, java.lang.Object... args) throws java.io.IOException
Command
executeInternal
in interface Command
executeInternal
in class StdCommand
mob
- 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 boolean canBeOrdered()
Command
canBeOrdered
in interface Command
canBeOrdered
in class StdCommand