Modifier and Type | Field | Description |
---|---|---|
protected static java.util.Comparator<Ability> |
nameComparator |
|
protected static int[] |
playerAcodes |
idConverter
ID, noCoinFilter
Constructor | Description |
---|---|
Skills() |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canBeOrdered() |
Whether a group leader or charmer can order their followers
to do 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 java.lang.StringBuilder |
getAbilities(MOB viewerM,
MOB ableM,
int ofType,
int ofDomain,
boolean addQualLine,
int maxLevel) |
|
protected java.lang.StringBuilder |
getAbilities(MOB viewerM,
MOB ableM,
java.util.List<java.lang.Integer> ofTypes,
int mask,
boolean addQualLine,
int maxLevel) |
|
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.
|
boolean |
isDomainIncludedInAnyAbility(int domain,
int acode) |
Returns whether there are any crossings between a particular Ability type
and a particular Ability domain.
|
protected boolean |
isUnique(java.lang.String abilityID,
java.lang.String classID,
java.lang.String raceID) |
|
protected void |
parseDomainInfo(MOB mob,
java.util.List<java.lang.String> commands,
java.util.List<java.lang.Integer> acodes,
int[] level,
int[] domain,
java.lang.String[] domainName) |
|
protected boolean |
parsedOutIndividualSkill(MOB mob,
java.lang.String qual,
int acode) |
|
protected boolean |
parsedOutIndividualSkill(MOB mob,
java.lang.String qual,
java.util.List<java.lang.Integer> acodes) |
|
protected int |
parseOutLevel(java.util.List<java.lang.String> commands) |
|
protected void |
parseTypeInfo(MOB mob,
java.util.List<java.lang.String> commands,
int[] level,
int[] type,
java.lang.String[] typeName) |
|
protected boolean |
pickUniqueFlag(java.util.List<java.lang.String> commands,
boolean uniqueOnly) |
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, securityCheck
protected static final int[] playerAcodes
protected static final java.util.Comparator<Ability> nameComparator
public java.lang.String[] getAccessWords()
Command
getAccessWords
in interface Command
getAccessWords
in class StdCommand
protected boolean parsedOutIndividualSkill(MOB mob, java.lang.String qual, int acode)
protected boolean parsedOutIndividualSkill(MOB mob, java.lang.String qual, java.util.List<java.lang.Integer> acodes)
protected int parseOutLevel(java.util.List<java.lang.String> commands)
public boolean isDomainIncludedInAnyAbility(int domain, int acode)
domain
- the domain maskacode
- the ability codeAbility.abilityCode()
,
Ability.DOMAIN_DESCS
,
Ability.ACODE_DESCS
protected void parseDomainInfo(MOB mob, java.util.List<java.lang.String> commands, java.util.List<java.lang.Integer> acodes, int[] level, int[] domain, java.lang.String[] domainName)
protected boolean pickUniqueFlag(java.util.List<java.lang.String> commands, boolean uniqueOnly)
protected boolean isUnique(java.lang.String abilityID, java.lang.String classID, java.lang.String raceID)
protected void parseTypeInfo(MOB mob, java.util.List<java.lang.String> commands, int[] level, int[] type, java.lang.String[] typeName)
protected java.lang.StringBuilder getAbilities(MOB viewerM, MOB ableM, int ofType, int ofDomain, boolean addQualLine, int maxLevel)
protected java.lang.StringBuilder getAbilities(MOB viewerM, MOB ableM, java.util.List<java.lang.Integer> ofTypes, int mask, boolean addQualLine, int maxLevel)
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