public class Deviations extends StdCommand
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
Deviations.DeviationType |
|
protected static class |
Deviations.DevSortBy |
| Modifier and Type | Field | Description |
|---|---|---|
static Filterer<Environmental> |
FILTER_ALL |
a constant used in the Deviations to filter on only items
|
static Filterer<Environmental> |
FILTER_ARMORONLY |
a constant used in the Deviations to filter on only items
|
static Filterer<Environmental> |
FILTER_ITEMONLY |
a constant used in the Deviations to filter on only items
|
static Filterer<Environmental> |
FILTER_MOBONLY |
a constant used in the Deviations to filter on only items
|
static Filterer<Environmental> |
FILTER_WEAPONONLY |
a constant used in the Deviations to filter on only items
|
static java.util.Comparator<Environmental> |
SORTBY_LEVEL |
a constant used in the Deviations to filter on only items
|
static java.util.Comparator<Environmental> |
SORTBY_NAME |
a constant used in the Deviations to filter on only items
|
static java.util.Comparator<Environmental> |
SORTBY_PLEVEL |
a constant used in the Deviations to filter on only items
|
static java.util.Comparator<Environmental> |
SORTBY_TYPE |
a constant used in the Deviations to filter on only items
|
idConverterID, noCoinFilter| Constructor | Description |
|---|---|
Deviations() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
alreadyDone(Environmental E,
Environmental actualE,
java.util.List<Environmental> itemsDone,
java.util.Map<Environmental,java.util.Set<java.lang.String>> locMap) |
|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
java.lang.StringBuffer |
deviations(MOB mob,
Room mobR,
java.lang.String rest) |
|
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 |
getColor(Physical P) |
|
protected java.lang.String |
getDeviation(double val,
double val2) |
|
protected java.lang.String |
getDeviation(int val,
java.util.Map<java.lang.String,java.lang.String> vals,
java.lang.String key) |
|
protected java.lang.String |
itemHeader() |
|
protected java.lang.String |
mobHeader(Faction useFaction) |
|
boolean |
securityCheck(MOB mob) |
Whether this command is available to the given player
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionsCost, canBeCancelled, checkArguments, checkedActionsCost, combatActionsCost, compareTo, copyOf, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, preExecute, putInCommandlistpublic static final Filterer<Environmental> FILTER_ITEMONLY
public static final Filterer<Environmental> FILTER_MOBONLY
public static final Filterer<Environmental> FILTER_WEAPONONLY
public static final Filterer<Environmental> FILTER_ARMORONLY
public static final Filterer<Environmental> FILTER_ALL
public static final java.util.Comparator<Environmental> SORTBY_NAME
public static final java.util.Comparator<Environmental> SORTBY_LEVEL
public static final java.util.Comparator<Environmental> SORTBY_PLEVEL
public static final java.util.Comparator<Environmental> SORTBY_TYPE
public java.lang.String[] getAccessWords()
CommandgetAccessWords in interface CommandgetAccessWords in class StdCommandpublic boolean canBeOrdered()
CommandcanBeOrdered in interface CommandcanBeOrdered in class StdCommandprotected java.lang.String mobHeader(Faction useFaction)
protected java.lang.String itemHeader()
public boolean alreadyDone(Environmental E, Environmental actualE, java.util.List<Environmental> itemsDone, java.util.Map<Environmental,java.util.Set<java.lang.String>> locMap)
protected java.lang.String getDeviation(int val,
java.util.Map<java.lang.String,java.lang.String> vals,
java.lang.String key)
protected java.lang.String getDeviation(double val,
double val2)
public java.lang.String getColor(Physical P)
public boolean execute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags) throws java.io.IOException
Commandexecute in interface Commandexecute in class StdCommandmob - 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
CommandexecuteInternal in interface CommandexecuteInternal in class StdCommandmob - 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 securityCheck(MOB mob)
CommandsecurityCheck in interface CommandsecurityCheck in class StdCommandmob - the player mob who might not even know about this command