public class Test extends StdCommand
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
maliciousSemiSpellList |
|
static java.lang.String[] |
maliciousspells |
|
static java.lang.String |
semiSpellList |
|
static java.lang.String[] |
spells |
idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
Test() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do this command.
|
void |
compareObjectsAndReport(java.lang.String rep,
MOB mob,
java.lang.String var,
java.lang.Object val1,
java.lang.Object val2) |
|
java.lang.String |
copyYahooGroupMsg(MOB mob,
int lastMsgNum) |
|
boolean |
effectCheck(java.lang.String[] spells,
MOB mob) |
|
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.
|
void |
giveAbility(Physical P,
Ability A) |
|
Item[] |
giveTo(Item I,
Ability A,
MOB mob1,
MOB mob2,
int code) |
|
boolean |
isAllAdjusted(MOB mob) |
|
boolean |
isAnyAdjusted(MOB mob) |
|
static java.lang.String |
maliciousSemiSpellList() |
|
int[] |
recoverMath(int level,
int con,
int inte,
int wis,
int str,
boolean isHungry,
boolean isThirsty,
boolean isFatigued,
boolean isSleeping,
boolean isSittingOrRiding,
boolean isFlying,
boolean isSwimming) |
|
void |
reset(MOB[] mobs,
MOB[] backups,
Room R,
Item[] IS,
Room R2) |
|
boolean |
securityCheck(MOB mob) |
Whether this command is available to the given player
|
static java.lang.String |
semiSpellList() |
|
java.lang.String |
spaceMoveError(java.lang.String pos,
SpaceShip o,
double[] dir,
double speedDiff,
double speed,
double distDiff,
double traveledDistance,
double distanceTravelled,
long[] oldCoords) |
|
boolean |
spellCheck(java.lang.String[] spells,
MOB mob) |
|
boolean |
testResistance(MOB mob) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
actionsCost, canBeCancelled, checkArguments, checkedActionsCost, combatActionsCost, compareTo, copyOf, executeInternal, getArgumentSetIndex, getVisibleRoomTarget, I, ID, initializeClass, isOccupiedWithOtherWork, L, name, newInstance, preExecute, putInCommandlist
public static final java.lang.String[] spells
public static java.lang.String semiSpellList
public static final java.lang.String[] maliciousspells
public static java.lang.String maliciousSemiSpellList
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
public static java.lang.String semiSpellList()
public static java.lang.String maliciousSemiSpellList()
public boolean isAllAdjusted(MOB mob)
public boolean isAnyAdjusted(MOB mob)
public void compareObjectsAndReport(java.lang.String rep, MOB mob, java.lang.String var, java.lang.Object val1, java.lang.Object val2)
public java.lang.String spaceMoveError(java.lang.String pos, SpaceShip o, double[] dir, double speedDiff, double speed, double distDiff, double traveledDistance, double distanceTravelled, long[] oldCoords)
public java.lang.String copyYahooGroupMsg(MOB mob, int lastMsgNum) throws java.lang.Exception
java.lang.Exception
public boolean testResistance(MOB mob)
public boolean spellCheck(java.lang.String[] spells, MOB mob)
public boolean effectCheck(java.lang.String[] spells, MOB mob)
public int[] recoverMath(int level, int con, int inte, int wis, int str, boolean isHungry, boolean isThirsty, boolean isFatigued, boolean isSleeping, boolean isSittingOrRiding, boolean isFlying, boolean isSwimming)
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 boolean canBeOrdered()
Command
canBeOrdered
in interface Command
canBeOrdered
in class StdCommand
public boolean securityCheck(MOB mob)
Command
securityCheck
in interface Command
securityCheck
in class StdCommand
mob
- the player mob who might not even know about this command