public class OutFit extends StdCommand
idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
OutFit() |
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 |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
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.
|
protected Item |
findArmorWinner(MOB mob,
java.util.List<java.lang.String> useSkills,
long wornCode,
int material,
long positionsFound,
java.util.Map<java.lang.String,java.util.List<ItemCraftor.CraftedItem>> cache) |
|
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.
|
protected java.util.List<Item> |
metacraftArmorsFor(MOB mob) |
|
protected Item |
metacraftWeaponFor(MOB mob) |
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canBeCancelled, checkArguments, checkedActionsCost, compareTo, copyOf, executeInternal, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, putInCommandlist, securityCheck
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
public boolean preExecute(MOB mob, java.util.List<java.lang.String> commands, int metaFlags, int secondsElapsed, double actionsRemaining) throws java.io.IOException
Command
preExecute
in interface Command
preExecute
in class StdCommand
mob
- 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()
protected Item findArmorWinner(MOB mob, java.util.List<java.lang.String> useSkills, long wornCode, int material, long positionsFound, java.util.Map<java.lang.String,java.util.List<ItemCraftor.CraftedItem>> cache)
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 double combatActionsCost(MOB mob, java.util.List<java.lang.String> cmds)
Command
combatActionsCost
in interface Command
combatActionsCost
in class StdCommand
mob
- 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)
Command
actionsCost
in interface Command
actionsCost
in class StdCommand
mob
- 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()
Command
canBeOrdered
in interface Command
canBeOrdered
in class StdCommand