idConverterID, noCoinFilter| Constructor | Description |
|---|---|
Push() |
| 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.
|
Ability |
applyAnyAdjustment(MOB mob,
Quad<Physical,java.lang.String,java.lang.Integer,Environmental> args) |
|
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.
|
void |
clearAdjustment(MOB mob,
Ability adjA) |
|
double |
combatActionsCost(MOB mob,
java.util.List<java.lang.String> cmds) |
Returns the number of actions required to completely
activate this command.
|
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.
|
Quad<Physical,java.lang.String,java.lang.Integer,Environmental> |
getArgs(MOB mob,
java.util.List<java.lang.String> commands,
boolean quiet) |
|
protected Pair<java.lang.Integer,java.lang.Integer> |
getHelpAmounts(MOB mob,
Physical targetObj,
Environmental targetDir) |
|
protected java.util.List<Pair<MOB,Quad<Physical,java.lang.String,java.lang.Integer,Environmental>>> |
getHelpers(MOB mob,
Physical targetObj) |
|
Ability |
getStrAdjuster(int adjustment) |
|
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.
|
standIfNecessaryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckArguments, checkedActionsCost, compareTo, copyOf, executeInternal, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, putInCommandlist, securityCheckpublic java.lang.String[] getAccessWords()
CommandgetAccessWords in interface CommandgetAccessWords in class Gopublic Ability getStrAdjuster(int adjustment)
public Quad<Physical,java.lang.String,java.lang.Integer,Environmental> getArgs(MOB mob, java.util.List<java.lang.String> commands, boolean quiet)
protected java.util.List<Pair<MOB,Quad<Physical,java.lang.String,java.lang.Integer,Environmental>>> getHelpers(MOB mob, Physical targetObj)
protected Pair<java.lang.Integer,java.lang.Integer> getHelpAmounts(MOB mob, Physical targetObj, Environmental targetDir)
public Ability applyAnyAdjustment(MOB mob, Quad<Physical,java.lang.String,java.lang.Integer,Environmental> args)
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 CommandpreExecute in class StdCommandmob - 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 boolean execute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags) throws java.io.IOException
Commandexecute in interface Commandexecute in class Gomob - 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 double combatActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
CommandcombatActionsCost in interface CommandcombatActionsCost in class StdCommandmob - 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 double actionsCost(MOB mob, java.util.List<java.lang.String> cmds)
CommandactionsCost in interface CommandactionsCost in class Gomob - 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 boolean canBeOrdered()
CommandcanBeOrdered in interface CommandcanBeOrdered in class Gopublic boolean canBeCancelled()
CommandcanBeCancelled in interface CommandcanBeCancelled in class StdCommandCommand.preExecute(MOB, List, int, int, double)