com.planet_ink.coffee_mud.Commands
Class Skills
java.lang.Object
com.planet_ink.coffee_mud.Commands.StdCommand
com.planet_ink.coffee_mud.Commands.Skills
- All Implemented Interfaces:
- Command, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>
- Direct Known Subclasses:
- Chants, Languages, Prayers, Qualify, Report, Songs, Spells, Stat, WillQualify
public class Skills
- extends StdCommand
| Fields inherited from class com.planet_ink.coffee_mud.Commands.StdCommand |
ID |
|
Method Summary |
boolean |
canBeOrdered()
Whether the a group leader or charmer can order their followers
to do this command. |
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. |
protected java.lang.StringBuffer |
getAbilities(MOB able,
int ofType,
int ofDomain,
boolean addQualLine,
int maxLevel)
|
protected java.lang.StringBuffer |
getAbilities(MOB able,
java.util.Vector 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. |
protected void |
parseDomainInfo(MOB mob,
java.util.Vector commands,
java.util.Vector 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.Vector acodes)
|
protected int |
parseOutLevel(java.util.Vector commands)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Skills
public Skills()
getAccessWords
public java.lang.String[] getAccessWords()
- Description copied from interface:
Command
- Returns the set of command words, with the most public one first,
that are entered by the user to initiate this command.
- Specified by:
getAccessWords in interface Command- Overrides:
getAccessWords in class StdCommand
- Returns:
- the set of command words that the user enters
parsedOutIndividualSkill
protected boolean parsedOutIndividualSkill(MOB mob,
java.lang.String qual,
int acode)
parsedOutIndividualSkill
protected boolean parsedOutIndividualSkill(MOB mob,
java.lang.String qual,
java.util.Vector acodes)
parseOutLevel
protected int parseOutLevel(java.util.Vector commands)
parseDomainInfo
protected void parseDomainInfo(MOB mob,
java.util.Vector commands,
java.util.Vector acodes,
int[] level,
int[] domain,
java.lang.String[] domainName)
getAbilities
protected java.lang.StringBuffer getAbilities(MOB able,
int ofType,
int ofDomain,
boolean addQualLine,
int maxLevel)
getAbilities
protected java.lang.StringBuffer getAbilities(MOB able,
java.util.Vector ofTypes,
int mask,
boolean addQualLine,
int maxLevel)
execute
public boolean execute(MOB mob,
java.util.Vector commands,
int metaFlags)
throws java.io.IOException
- Description copied from interface:
Command
- This method actually performs the command, when the given parsed
set of command-line words. The commands list is almost always the
set of strings, starting with the access word that triggered the
command. Some commands have custom APIs however, that allow almost
anything to be in the commands list, or even for the commands to be null.
This method is not allowed to be called until the player or mob has
satisfied the actionsCost requirements and the securityCheck
- Specified by:
execute in interface Command- Overrides:
execute in class StdCommand
- Parameters:
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 executed
- Returns:
- whether the command was successfully executed. Is almost meaningless.
- Throws:
java.io.IOException - usually means the player has dropped carrier- See Also:
Command.actionsCost(MOB, Vector),
Command.securityCheck(MOB)
canBeOrdered
public boolean canBeOrdered()
- Description copied from interface:
Command
- Whether the a group leader or charmer can order their followers
to do this command.
- Specified by:
canBeOrdered in interface Command- Overrides:
canBeOrdered in class StdCommand
- Returns:
- whether this command can be ordered.