|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Commands.StdCommand
com.planet_ink.coffee_mud.Commands.Consider
public class Consider
| Field Summary |
|---|
| Fields inherited from class com.planet_ink.coffee_mud.Commands.StdCommand |
|---|
ID |
| Fields inherited from interface com.planet_ink.coffee_mud.Commands.interfaces.Command |
|---|
METAFLAG_AS, METAFLAG_FORCED, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_SNOOPED |
| Constructor Summary | |
|---|---|
Consider()
|
|
| Method Summary | |
|---|---|
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 the 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. |
int |
doConsider(MOB mob,
Physical target)
|
boolean |
execute(MOB mob,
java.util.Vector 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. |
int |
relativeLevelDiff(MOB mob1,
MOB mob2)
|
| Methods inherited from class com.planet_ink.coffee_mud.Commands.StdCommand |
|---|
checkedActionsCost, compareTo, copyOf, ID, initializeClass, newInstance, preExecute, securityCheck, staffCommand |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Consider()
| Method Detail |
|---|
public java.lang.String[] getAccessWords()
Command
getAccessWords in interface CommandgetAccessWords in class StdCommand
public int relativeLevelDiff(MOB mob1,
MOB mob2)
public int doConsider(MOB mob,
Physical target)
public boolean execute(MOB mob,
java.util.Vector commands,
int metaFlags)
throws java.io.IOException
Command
execute 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 executed
java.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 CommandexecuteInternal in class StdCommandmob - the mob or player issueing the commandmetaFlags - flags denoting how the command is being executedargs - a set of object parameters
java.io.IOException - usually means the player has dropped carrier
public double combatActionsCost(MOB mob,
java.util.List<java.lang.String> cmds)
Command
combatActionsCost in interface CommandcombatActionsCost in class StdCommandmob - the mob executing the command, if anycmds - the parameters to be passed to the command, if any
Command.actionsCost(MOB, List),
Command.checkedActionsCost(MOB, List)
public double actionsCost(MOB mob,
java.util.List<java.lang.String> cmds)
Command
actionsCost in interface CommandactionsCost in class StdCommandmob - the mob executing the command, if anycmds - the parameters to be passed to the command, if any
Command.combatActionsCost(MOB, List),
Command.checkedActionsCost(MOB, List)public boolean canBeOrdered()
Command
canBeOrdered in interface CommandcanBeOrdered in class StdCommand
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||