public class Train extends StdCommand
| Modifier and Type | Field | Description |
|---|---|---|
protected Pair<java.lang.String,java.util.Map<com.planet_ink.coffee_mud.Commands.Train.Trainable,Pair<java.lang.Integer,CostDef.Cost>>> |
trainCosts |
idConverterID, noCoinFilter| Constructor | Description |
|---|---|
Train() |
| 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.
|
java.lang.String |
filter(MOB mob,
java.lang.String s) |
|
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.util.List<java.lang.String> |
getAllPossibleThingsToTrainFor() |
|
java.util.Map<CharClass,java.lang.Integer> |
getAvailableCharClasses(MOB mob) |
|
Pair<java.lang.Integer,CostDef.Cost> |
getTrainCost(com.planet_ink.coffee_mud.Commands.Train.Trainable t) |
|
java.util.Map<com.planet_ink.coffee_mud.Commands.Train.Trainable,Pair<java.lang.Integer,CostDef.Cost>> |
getTrainCosts() |
|
java.lang.String |
plural(int amt,
java.lang.String wd) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanBeCancelled, checkArguments, checkedActionsCost, compareTo, copyOf, executeInternal, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, preExecute, putInCommandlist, securityCheckprotected Pair<java.lang.String,java.util.Map<com.planet_ink.coffee_mud.Commands.Train.Trainable,Pair<java.lang.Integer,CostDef.Cost>>> trainCosts
public java.lang.String[] getAccessWords()
CommandgetAccessWords in interface CommandgetAccessWords in class StdCommandpublic Pair<java.lang.Integer,CostDef.Cost> getTrainCost(com.planet_ink.coffee_mud.Commands.Train.Trainable t)
public java.util.Map<com.planet_ink.coffee_mud.Commands.Train.Trainable,Pair<java.lang.Integer,CostDef.Cost>> getTrainCosts()
public java.util.List<java.lang.String> getAllPossibleThingsToTrainFor()
public java.util.Map<CharClass,java.lang.Integer> getAvailableCharClasses(MOB mob)
public java.lang.String filter(MOB mob, java.lang.String s)
public java.lang.String plural(int amt,
java.lang.String wd)
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 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 StdCommandmob - 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 StdCommand