CMObject
, Tickable
, AbilityMapper
, CMLibrary
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class CMAbleMap extends StdLibrary implements AbilityMapper
AbilityMapper.AbilCostType, AbilityMapper.AbilityMapping, AbilityMapper.CompoundingRule, AbilityMapper.QualifyingID, AbilityMapper.SecretFlag
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
allows |
|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> |
completeAbleMap |
|
protected java.util.Map<java.lang.String,java.util.List<AbilityMapper.CompoundingRule>> |
compounders |
|
protected java.util.List<AbilityMapper.CompoundingRule> |
compoundingRules |
|
protected boolean |
compoundingRulesLoaded |
|
protected java.lang.Integer[] |
costOverrides |
|
protected java.util.List<AbilityMapper.AbilityMapping> |
eachClassSet |
|
static java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> |
emptyAbleMap |
|
protected java.util.Map<java.lang.String,java.lang.Integer> |
lowestQualifyingLevelMap |
|
protected java.util.Map<java.lang.String,java.lang.Integer> |
maxProficiencyMap |
|
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> |
reverseAbilityMap |
idConverter
isDebugging, name, serviceClient, tickStatus
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
CMAbleMap() |
Modifier and Type | Method | Description |
---|---|---|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
boolean autoGain) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
boolean autoGain,
java.lang.String extraMasks) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
boolean autoGain,
java.util.List<java.lang.String> skillPreReqs) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
boolean autoGain,
java.util.List<java.lang.String> skillPreReqs,
java.lang.String extraMasks) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
boolean autoGain) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
boolean autoGain,
java.lang.String extraMasks) |
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
boolean autoGain,
java.util.List<java.lang.String> skillPreReqs) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
int maxProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret) |
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
int maxProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
java.lang.String extraMasks) |
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
int maxProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
java.util.List<java.lang.String> preReqSkillsList,
java.lang.String extraMask) |
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
int maxProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
java.util.List<java.lang.String> preReqSkillsList,
java.lang.String extraMask,
java.lang.Integer[] costOverrides) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
java.lang.String defParm,
boolean autoGain) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
java.lang.String extraMasks) |
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
java.util.List<java.lang.String> preReqSkillsList,
java.lang.String extraMask) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
java.lang.String defParm,
boolean autoGain,
java.lang.String extraMasks) |
|
AbilityMapper.AbilityMapping |
addCharAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
java.lang.Integer[] costOverrides) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
AbilityMapper.AbilityMapping |
addDynaAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
java.lang.String extraMask) |
Adds a mapping between a charclass, race, or whatever, and an Ability, by String Ability ID.
|
void |
addPreRequisites(java.lang.String ID,
java.util.List<java.lang.String> preReqSkillsList,
java.lang.String extraMask) |
Adds to the list of allowed skills, expertises, etc that come from the requirements
listed for the given skill.
|
boolean |
availableToTheme(java.lang.String abilityID,
int theme,
boolean publicly) |
Discovers whether the given ability is qualified for by a class that
is available to the given theme id number.
|
java.lang.String |
buildAllQualifysSection(java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> map) |
|
boolean |
classOnly(MOB mob,
java.lang.String classID,
java.lang.String abilityID) |
Returns whether the given class qualifies for the given ability.
|
boolean |
classOnly(java.lang.String classID,
java.lang.String abilityID) |
Returns whether the given class qualifies for the given ability.
|
java.util.Enumeration<AbilityMapper.CompoundingRule> |
compoundingRules() |
Returns an enumeration of all defined compounding rules.
|
AbilityMapper.AbilityMapping |
delCharAbilityMapping(java.lang.String ID,
java.lang.String abilityID) |
Removes the specified mapping between charclass, race, or whatever, and an Ability, by String ability ID.
|
void |
delCharMappings(java.lang.String ID) |
Removes all ability mappings for the given charclass, race, or whatever.
|
void |
fillPreRequisites(Ability A,
DVector rawPreReqs) |
|
java.lang.String |
formatPreRequisites(DVector preReqs) |
Given a set of common Ability/skill pre-requisites
for learning, coded, this method will return those
pre-requisites formatted in a friendly, readable form.
|
java.util.Iterator<java.lang.String> |
getAbilityAllowsList(java.lang.String ableID) |
Returns an iterator over the list of expertises and skills which having the given
skill will allow.
|
AbilityMapper.AbilityMapping |
getAbleMap(java.lang.String ID,
java.lang.String abilityID) |
Returns the ability mapping that is defined by the given char class, race, or
clan ID for the given Ability ID(), or null.
|
java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> |
getAbleMapping(java.lang.String ID) |
Returns the raw Ability mappings for the given class, race, or clan ID.
|
java.util.List<AbilityMapper.AbilityMapping> |
getAllAbilityMappings(MOB mob,
java.lang.String abilityID) |
|
AbilityMapper.AbilityMapping |
getAllAbleMap(java.lang.String abilityID) |
Returns the ability mapping that is defined by the All Qualifies list for
the given Ability ID(), or null.
|
java.lang.Integer[] |
getAllCostOverrides(java.lang.String abilityID) |
Returns any All-Qualifies overrides to the standard system white
standards for casting costs (the amount of mana or moves to use a skill).
|
boolean |
getAllQualified(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns whether the given ability, for the given charclass, race, or clan
government ID, and optionally checking the All Qualifies list, is part
of the All Qualified list.
|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> |
getAllQualifiesMap(java.util.Map<java.lang.String,java.lang.Object> cache) |
Loads the All-Qualifies list from the filesystem.
|
AbilityMapper.SecretFlag |
getAllSecretSkill(java.lang.String abilityID) |
Returns whether the given Ability ID() is both mapped on the All Qualifies
list AND is a secret skill.
|
java.lang.String |
getApplicableMask(MOB studentM,
Ability A) |
Returns the first applicable zapper mask that applies to the given mob for
the given ability.
|
PairList<java.lang.String,java.lang.Integer> |
getAvailabilityList(Ability A,
int abbreviateAt) |
Returns a String list of all the classes and levels that qualify for the given
skill.
|
int |
getCalculatedMedianLowestQualifyingLevel() |
Returns the median lowest qualifying level for all abilities, given you
an idea of the middle-skill-gaining levels, for some reason.
|
java.util.Enumeration<AbilityMapper.AbilityMapping> |
getClassAbles(java.lang.String ID,
boolean addAll) |
Returns an enumeration of all the AbilityMapping object for all the abilities the
given class, race, whatever qualifies for ever.
|
java.util.List<AbilityMapper.QualifyingID> |
getClassAllowsList(java.lang.String classID) |
Returns the list of things allowed by skill which the given class/race/whatever
qualifies over their life, along with qualifying levels.
|
java.lang.String |
getCommonExtraMask(Ability A) |
Returns the general zapper mask that defines the requirements to learn
the given ability, by ID.
|
DVector |
getCommonPreRequisites(Ability A) |
Returns the coded form of the skill prerequisites for the
given ability.
|
DVector |
getCommonPreRequisites(MOB mob,
Ability A) |
Returns the coded form of the skill prerequisites for the
given ability that apply to the given mob by race or class.
|
AbilityMapper.CompoundingRule |
getCompoundingRule(MOB mob,
Ability A) |
Returns the applicable mana compounding rule for the given mob and ability.
|
java.lang.Integer[] |
getCostOverrides(MOB mob,
java.lang.String abilityID) |
Returns any mapping-based overrides to the standard system white
standards for casting costs (the amount of mana or moves to use a skill)
relevant to the given mob, based on their class, race, etc.
|
java.lang.Integer[] |
getCostOverrides(java.lang.String abilityID) |
Returns the first mapping-based override to the standard system white
standards for casting costs (the amount of mana or moves to use a skill).
|
java.lang.Integer[] |
getCostOverrides(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns any mapping-based overrides to the standard system white
standards for casting costs (the amount of mana or moves to use a skill).
|
java.util.List<java.lang.String> |
getCurrentlyQualifyingIDs(MOB studentM,
java.lang.String AID) |
Returns the list of CharClass IDs, or Race IDs, or Clan Govt IDs, or
whatever by which the given student might qualify for the given
Ability ID.
|
boolean |
getDefaultGain(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns whether the given ability, for the given charclass, race, or clan
government ID, and optionally checking the All Qualifies list, is gained
by default or must be trained.
|
java.lang.String |
getDefaultParm(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns the default argument/parameter to add to the given Ability by ID()
when gained by the class, race, clan ID, optionally also checking the
All-Qualifies list.
|
int |
getDefaultProficiency(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns the default proficiency to give to the given Ability by ID()
when gained by the class, race, clan ID, optionally also checking the
All-Qualifies list.
|
java.lang.String |
getExtraMask(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns the zapper mask that applies to the given class or race for the given
ability ID(), optionally checking the All-Qualifies list or not.
|
java.util.List<java.lang.String> |
getLevelListings(java.lang.String ID,
boolean checkAll,
int level) |
Returns the AbilityIDs of all the skills qualified for by the given
char class or race or whatever, at the given level, and optionally
including the all-qualified skills.
|
Converter<java.lang.String,AbilityMapper.AbilityMapping> |
getMapper(java.lang.String classID) |
Returns a converter from an ability id to an ability mapping
|
int |
getMaxProficiency(MOB mob,
boolean checkAll,
java.lang.String abilityID) |
Returns the max allowed proficiency for those with the given Ability by ID()
when carried by the mob by class, race, clan ID, optionally also checking the
All-Qualifies list.
|
int |
getMaxProficiency(java.lang.String abilityID) |
Returns the max allowed proficiency for those with the given Ability by ID()
when carried by any class, race, clan ID, while also checking the
All-Qualifies list.
|
int |
getMaxProficiency(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns the max allowed proficiency for those with the given Ability by ID()
when carried by the class, race, clan ID, optionally also checking the
All-Qualifies list.
|
protected java.util.List<java.lang.String> |
getOrSet(java.lang.String errStr,
java.lang.String abilityID) |
|
protected AbilityMapper.AbilityMapping |
getPersonalMapping(MOB studentM,
java.lang.String AID) |
|
java.lang.String |
getPreReqStrings(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Gets the raw pre-requisites definition for the given mapping by
class, race, clan ID and ability ID(), optionally also checking the
All-Qualifies list.
|
java.util.Set<java.lang.String> |
getQualifyingEntities(java.lang.String abilityID) |
Returns the set of entites (race, class, clan, etc) that qualifies for
the given ability.
|
int |
getQualifyingLevel(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns the level at which the given class or race qualifies for the given ability ID(),
optionally checking the All-Qualifies list or not.
|
AbilityMapper.AbilityMapping |
getQualifyingMapping(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns the mapping which the given class or race qualifies for the given ability ID(),
optionally checking the All-Qualifies list or not.
|
java.util.List<AbilityMapper.AbilityMapping> |
getQualifyingMappings(boolean checkAll,
java.lang.String abilityID) |
Returns the mappings which any class or race qualifies for the given ability ID(),
optionally checking the All-Qualifies list or not.
|
DVector |
getRawPreRequisites(MOB studentM,
Ability A) |
|
DVector |
getRawPreRequisites(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
|
boolean |
getSecretSkill(MOB mob,
java.lang.String abilityID) |
Returns whether the given ability ID() represents a skill that is secret to
the given mob, by whatever class, race, or clan they qualify for it by.
|
AbilityMapper.SecretFlag |
getSecretSkill(java.lang.String abilityID) |
Returns whether the given Ability ID() is secret in every mapping (race, class,
govt clan id, all qualifies) or not.
|
AbilityMapper.SecretFlag |
getSecretSkill(java.lang.String ID,
boolean checkAll,
java.lang.String abilityID) |
Returns whether the given ability, for the given charclass, race, or clan
government ID, and optionally checking the All Qualifies list, is a
secret skill, or whether it can be seen and known about.
|
DVector |
getUnmetPreRequisites(MOB studentM,
Ability A) |
Given a mob who wants to learn the given Ability skill, this
method will check the mob (by race/class/whatever) against the
ability they qualify for, determining if there are any pre-requisite
skills needed to learn this skill.
|
java.util.List<AbilityMapper.AbilityMapping> |
getUpToLevelListings(java.lang.String ID,
int level,
boolean ignoreAll,
boolean gainedOnly) |
Returns the full AbilityMappings of all the skills qualified for by the given
char class or race or whatever, at every level up to and including the
given level, and optionally excluding the all-qualified skills and
non-gained skills.
|
protected void |
handleEachAndClassAbility(java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> ableMap,
java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> allQualMap,
java.lang.String ID) |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
protected void |
loadCompoundingRules() |
|
CMObject |
lowestQualifyingClassRaceGovt(MOB studentM,
Ability A) |
Returns the class, race, or clan government object that qualifies
the given mob at the lowest level for the given ability.
|
int |
lowestQualifyingLevel(java.lang.String abilityID) |
Returns the lowest class level at which any class qualifies for the
given ability, returning 0 if non found.
|
AbilityMapper.AbilityMapping |
makeAbilityMapping(java.lang.String ID,
int qualLevel,
java.lang.String abilityID,
int defaultProficiency,
int maxProficiency,
java.lang.String defaultParam,
boolean autoGain,
AbilityMapper.SecretFlag secret,
boolean isAllQualified,
java.util.List<java.lang.String> preReqSkillsList,
java.lang.String extraMask,
java.lang.Integer[] costOverrides) |
Creates a raw Ability Mapping object.
|
AbilityMapper.AbilityMapping |
makeAllQualifyMapping(java.lang.String s) |
|
protected void |
mapAbilityFinal(java.lang.String abilityID,
java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> ableMap,
AbilityMapper.AbilityMapping able) |
|
AbilityMapper.AbilityMapping |
newAbilityMapping() |
Creates a new, blank ability mapping object
|
int |
numMappedAbilities() |
Returns the total number of abilities mapped to a class or race or something.
|
void |
propertiesLoaded() |
This method is called whenever system properties are altered by the user.
|
boolean |
qualifiesByAnyCharClass(java.lang.String abilityID) |
Returns whether the given Ability ID() represents a skill qualified for by
any existing character class, including All-Qualified abilities.
|
boolean |
qualifiesByAnyCharClassOrRace(java.lang.String abilityID) |
Returns whether the given Ability ID() represents a skill qualified for by
any existing character class, or race, including All-Qualified abilities.
|
boolean |
qualifiesByAnything(java.lang.String abilityID) |
Returns whether the given Ability ID() represents a skill qualified for by
any existing character class, race, or including All-Qualified abilities.
|
boolean |
qualifiesByCurrentClassAndLevel(MOB studentM,
Ability A) |
Returns whether the given mob qualifies for the given ability
only because of their current class at its current level.
|
boolean |
qualifiesByLevel(MOB studentM,
Ability A) |
Returns whether the given mob qualifies for the given ability
because of any of their char classes at its current level, race, or clan.
|
boolean |
qualifiesByLevel(MOB studentM,
java.lang.String abilityID) |
Returns whether the given mob qualifies for the given ability
because of any of their char classes at its current level, race, or clan.
|
boolean |
qualifiesByTrajectory(MOB studentM,
java.lang.String abilityID) |
Returns whether the given mob qualifies or will qualify for the given
ability because of any of their char classes at its current level,
race, or clan.
|
boolean |
qualifiesOnlyByACharClass(MOB studentM,
Ability A) |
Returns whether the given mob qualifies for the given ability
only because of their a char class they have, at its current level.
|
boolean |
qualifiesOnlyByClan(MOB studentM,
Ability A) |
Returns whether the given mob qualifies for the given ability
only because of their clan affiliations.
|
boolean |
qualifiesOnlyByRace(MOB studentM,
Ability A) |
Returns whether the given mob qualifies for the given ability
only because of their race.
|
CharClass |
qualifyingCharClassByLevel(MOB studentM,
Ability A) |
Returns the class with the lowest char class level at which the
given mob (by race or class) qualified for the given ability
if any.
|
int |
qualifyingClassLevel(MOB studentM,
Ability A) |
Returns the lowest char class level at which the given mob (by race or
class) qualified for the given ability if any.
|
java.lang.String |
qualifyingID(MOB studentM,
Ability A) |
Returns the CharClass ID, Race ID, Clan Govt ID, etc or whatever by which
the student BEST qualifies for the given Ability.
|
int |
qualifyingLevel(MOB studentM,
Ability A) |
Returns the lowest class or player level at which the given mob (by race or
class) qualified for the given ability if any.
|
void |
saveAllQualifysFile(java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> newMap) |
Saves the All-Qualifies list to the filesystem.
|
protected void |
undoAllQualifysList() |
activate, getServiceClient, L, shutdown
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, setThreadStatus, shutdown, tick
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> completeAbleMap
protected java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> reverseAbilityMap
public static final java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> emptyAbleMap
protected java.util.Map<java.lang.String,java.util.List<AbilityMapper.CompoundingRule>> compounders
protected java.util.List<AbilityMapper.CompoundingRule> compoundingRules
protected volatile boolean compoundingRulesLoaded
protected java.util.Map<java.lang.String,java.lang.Integer> lowestQualifyingLevelMap
protected java.util.Map<java.lang.String,java.lang.Integer> maxProficiencyMap
protected java.util.Map<java.lang.String,java.lang.Object> allows
protected java.util.List<AbilityMapper.AbilityMapping> eachClassSet
protected final java.lang.Integer[] costOverrides
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, boolean autoGain)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()autoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, List)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, java.lang.Integer[] costOverrides)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()costOverrides
- cost overridesAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, List)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, boolean autoGain, java.lang.String extraMasks)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()autoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsextraMasks
- a zappermask for the player with any miscellaneough requirementsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, List)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, List, String)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, boolean autoGain, java.util.List<java.lang.String> skillPreReqs)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()autoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsskillPreReqs
- String list of required Ability IDs with optional min. proff in parenthesisAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, String)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, boolean autoGain, java.util.List<java.lang.String> skillPreReqs, java.lang.String extraMasks)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()autoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsskillPreReqs
- String list of required Ability IDs with optional min. proff in parenthesisextraMasks
- a zappermask for the player with any miscellaneough requirementsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, java.lang.String defParm, boolean autoGain)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilitydefParm
- if the Ability allows parameters, these are the parameters this mapping givesautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, boolean, List, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, boolean)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, java.lang.String defParm, boolean autoGain, java.lang.String extraMasks)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, boolean autoGain)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilityautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean, SecretFlag)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, boolean autoGain, java.util.List<java.lang.String> skillPreReqs)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilityautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTsskillPreReqs
- String list of required Ability IDs with optional min. proff in parenthesisAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean, SecretFlag)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, boolean autoGain, java.lang.String extraMasks)
public int numMappedAbilities()
AbilityMapper
numMappedAbilities
in interface AbilityMapper
AbilityMapper.getAllAbleMap(String)
,
AbilityMapper.getAbleMap(String, String)
public AbilityMapper.AbilityMapping delCharAbilityMapping(java.lang.String ID, java.lang.String abilityID)
AbilityMapper
delCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.abilityID
- the Ability ID()AbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, List, String, Integer[])
,
AbilityMapper.delCharMappings(String)
,
AbilityMapper.SecretFlag
public void delCharMappings(java.lang.String ID)
AbilityMapper
delCharMappings
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.AbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
public java.util.Enumeration<AbilityMapper.AbilityMapping> getClassAbles(java.lang.String ID, boolean addAll)
AbilityMapper
getClassAbles
in interface AbilityMapper
ID
- the race ID(), charclass ID(), etcaddAll
- true to include all-qualified abilities, false for just class uniqueAbilityMapper.AbilityMapping
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilitydefaultParam
- if the Ability allows parameters, these are the parameters this mapping givesautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTssecret
- true if this mapping is NOT available to Qualify and WillQualify commands, false if it is.AbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, boolean)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean, SecretFlag, List, String)
,
AbilityMapper.SecretFlag
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, java.lang.String extraMasks)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, java.util.List<java.lang.String> preReqSkillsList, java.lang.String extraMask)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilitydefaultParam
- if the Ability allows parameters, these are the parameters this mapping givesautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTssecret
- true if this mapping is NOT available to Qualify and WillQualify commands, false if it is.preReqSkillsList
- String list of required Ability IDs with optional min. proff in parenthesisextraMask
- a zappermask for the player with any miscellaneough requirementsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean, SecretFlag)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, List, String, Integer[])
,
AbilityMapper.SecretFlag
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, int maxProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, int maxProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, java.lang.String extraMasks)
public AbilityMapper.AbilityMapping addDynaAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, java.lang.String extraMask)
AbilityMapper
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean, SecretFlag, List, String)
except that the Each/global ability mappings are not initialized if this is the first class
mapping, meaning it's best to call this at runtime instead of boot time.addDynaAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilitydefaultParam
- if the Ability allows parameters, these are the parameters this mapping givesautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTssecret
- true if this mapping is NOT available to Qualify and WillQualify commands, false if it is.extraMask
- a zappermask for the player with any miscellaneough requirementsAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, List, String, Integer[])
,
AbilityMapper.SecretFlag
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, int maxProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, java.util.List<java.lang.String> preReqSkillsList, java.lang.String extraMask)
public void addPreRequisites(java.lang.String ID, java.util.List<java.lang.String> preReqSkillsList, java.lang.String extraMask)
AbilityMapper
addPreRequisites
in interface AbilityMapper
ID
- the Ability ID of the skill gaining pre-requisitespreReqSkillsList
- the formatted list of prereqs, typically Ability IDs.extraMask
- a zappermask of other requirements that a person must have for the skillpublic java.util.List<AbilityMapper.QualifyingID> getClassAllowsList(java.lang.String classID)
AbilityMapper
getClassAllowsList
in interface AbilityMapper
classID
- the charclass ID(), race ID(), or whateverAbilityMapper.getAbilityAllowsList(String)
,
AbilityMapper.QualifyingID
public java.util.Iterator<java.lang.String> getAbilityAllowsList(java.lang.String ableID)
AbilityMapper
getAbilityAllowsList
in interface AbilityMapper
ableID
- the skill to get the allows list forAbilityMapper.getClassAllowsList(String)
public AbilityMapper.AbilityMapping addCharAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, int maxProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, java.util.List<java.lang.String> preReqSkillsList, java.lang.String extraMask, java.lang.Integer[] costOverrides)
AbilityMapper
addCharAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilitymaxProficiency
- the maximum proficiency that this mapping allows (100 default)defaultParam
- if the Ability allows parameters, these are the parameters this mapping givesautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTssecret
- true if this mapping is NOT available to Qualify and WillQualify commands, false if it is.preReqSkillsList
- String list of required Ability IDs with optional min. proff in parenthesisextraMask
- a zappermask for the player with any miscellaneough requirementscostOverrides
- overrides of the CMProps-based cost formulas for gaining this skillAbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.addCharAbilityMapping(String, int, String, int, String, boolean, SecretFlag, List, String)
,
AbilityMapper.addDynaAbilityMapping(String, int, String, int, String, boolean, SecretFlag, String)
,
AbilityMapper.SecretFlag
public AbilityMapper.AbilityMapping newAbilityMapping()
AbilityMapper
newAbilityMapping
in interface AbilityMapper
AbilityMapper.AbilityMapping
,
AbilityMapper.makeAbilityMapping(String, int, String, int, int, String, boolean, SecretFlag, boolean, List, String, Integer[])
public AbilityMapper.AbilityMapping makeAbilityMapping(java.lang.String ID, int qualLevel, java.lang.String abilityID, int defaultProficiency, int maxProficiency, java.lang.String defaultParam, boolean autoGain, AbilityMapper.SecretFlag secret, boolean isAllQualified, java.util.List<java.lang.String> preReqSkillsList, java.lang.String extraMask, java.lang.Integer[] costOverrides)
AbilityMapper
makeAbilityMapping
in interface AbilityMapper
ID
- the race ID(), charclass ID(), "All" is also acceptable.qualLevel
- the charclass or race player level at which one qualifies to receive the abilityabilityID
- the Ability ID()defaultProficiency
- the initial proficiency at which this mapping bestows the abilitymaxProficiency
- the maximum proficiency that this mapping allows (100 default)defaultParam
- if the Ability allows parameters, these are the parameters this mapping givesautoGain
- true if the player/race automatically gets the ability, false if they must pay COSTssecret
- true if this mapping is NOT available to Qualify and WillQualify commands, false if it is.isAllQualified
- true if all classes qualify for this skill, as from the All Qualifies list.preReqSkillsList
- String list of required Ability IDs with optional min. proff in parenthesisextraMask
- a zappermask for the player with any miscellaneough requirementscostOverrides
- overrides of the CMProps-based cost formulas for gaining this skillAbilityMapper.AbilityMapping
,
AbilityMapper.delCharAbilityMapping(String, String)
,
AbilityMapper.newAbilityMapping()
,
AbilityMapper.SecretFlag
public int getCalculatedMedianLowestQualifyingLevel()
AbilityMapper
getCalculatedMedianLowestQualifyingLevel
in interface AbilityMapper
protected void mapAbilityFinal(java.lang.String abilityID, java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> ableMap, AbilityMapper.AbilityMapping able)
protected void handleEachAndClassAbility(java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> ableMap, java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> allQualMap, java.lang.String ID)
public boolean qualifiesByAnything(java.lang.String abilityID)
AbilityMapper
qualifiesByAnything
in interface AbilityMapper
abilityID
- the ability ID()AbilityMapper.classOnly(String, String)
,
AbilityMapper.classOnly(MOB, String, String)
public boolean qualifiesByAnyCharClass(java.lang.String abilityID)
AbilityMapper
qualifiesByAnyCharClass
in interface AbilityMapper
abilityID
- the ability ID()AbilityMapper.classOnly(String, String)
,
AbilityMapper.classOnly(MOB, String, String)
public java.util.Set<java.lang.String> getQualifyingEntities(java.lang.String abilityID)
AbilityMapper
getQualifyingEntities
in interface AbilityMapper
abilityID
- the ability to get entities for.public boolean qualifiesByAnyCharClassOrRace(java.lang.String abilityID)
AbilityMapper
qualifiesByAnyCharClassOrRace
in interface AbilityMapper
abilityID
- the ability ID()AbilityMapper.classOnly(String, String)
,
AbilityMapper.qualifiesByAnyCharClass(String)
public int lowestQualifyingLevel(java.lang.String abilityID)
AbilityMapper
lowestQualifyingLevel
in interface AbilityMapper
abilityID
- the ability ID()public boolean classOnly(java.lang.String classID, java.lang.String abilityID)
AbilityMapper
classOnly
in interface AbilityMapper
classID
- the class ID(), race ID() or whateverabilityID
- the ability ID()AbilityMapper.classOnly(MOB, String, String)
,
AbilityMapper.qualifiesByAnyCharClass(String)
public boolean classOnly(MOB mob, java.lang.String classID, java.lang.String abilityID)
AbilityMapper
classOnly
in interface AbilityMapper
mob
- the mob whose classes to also checkclassID
- the class ID(), race ID() or whatever to specifically checkabilityID
- the ability ID() to useAbilityMapper.classOnly(String, String)
,
AbilityMapper.qualifiesByAnyCharClass(String)
public boolean availableToTheme(java.lang.String abilityID, int theme, boolean publicly)
AbilityMapper
availableToTheme
in interface AbilityMapper
abilityID
- the Ability ID()theme
- the theme codepublicly
- true to disqualify skill-only masks, false to allowArea.THEME_ALLTHEMES
public java.util.List<java.lang.String> getLevelListings(java.lang.String ID, boolean checkAll, int level)
AbilityMapper
getLevelListings
in interface AbilityMapper
ID
- the charclass ID(), race ID(), or whatevercheckAll
- true to check the All Qualifies list, or false otherwiselevel
- the specific level to check.AbilityMapper.getUpToLevelListings(String, int, boolean, boolean)
public java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> getAbleMapping(java.lang.String ID)
AbilityMapper
getAbleMapping
in interface AbilityMapper
ID
- the charclass ID(), race ID(), or whateverpublic java.util.List<AbilityMapper.AbilityMapping> getUpToLevelListings(java.lang.String ID, int level, boolean ignoreAll, boolean gainedOnly)
AbilityMapper
getUpToLevelListings
in interface AbilityMapper
ID
- the charclass ID(), race ID(), or whateverlevel
- the specific level to check.ignoreAll
- true to ignore the All Qualifies list, or false otherwisegainedOnly
- true to only include the auto-gain-only skills, false otherwiseAbilityMapper.getLevelListings(String, boolean, int)
public int getQualifyingLevel(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getQualifyingLevel
in interface AbilityMapper
ID
- the charclass ID(), race ID(), or whatevercheckAll
- true to check the All Qualifies list, false to skip itabilityID
- the Ability ID() to find a level forAbilityMapper.qualifyingLevel(MOB, Ability)
,
AbilityMapper.qualifyingClassLevel(MOB, Ability)
,
AbilityMapper.lowestQualifyingClassRaceGovt(MOB, Ability)
public AbilityMapper.AbilityMapping getQualifyingMapping(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getQualifyingMapping
in interface AbilityMapper
ID
- the charclass ID(), race ID(), or whatevercheckAll
- true to check the All Qualifies list, false to skip itabilityID
- the Ability ID() to find a map forAbilityMapper.qualifyingLevel(MOB, Ability)
,
AbilityMapper.qualifyingClassLevel(MOB, Ability)
,
AbilityMapper.lowestQualifyingClassRaceGovt(MOB, Ability)
public java.util.List<AbilityMapper.AbilityMapping> getQualifyingMappings(boolean checkAll, java.lang.String abilityID)
AbilityMapper
getQualifyingMappings
in interface AbilityMapper
checkAll
- true to check the All Qualifies list, false to skip itabilityID
- the Ability ID() to find a map forAbilityMapper.qualifyingLevel(MOB, Ability)
,
AbilityMapper.qualifyingClassLevel(MOB, Ability)
,
AbilityMapper.lowestQualifyingClassRaceGovt(MOB, Ability)
protected java.util.List<java.lang.String> getOrSet(java.lang.String errStr, java.lang.String abilityID)
public DVector getCommonPreRequisites(MOB mob, Ability A)
AbilityMapper
getCommonPreRequisites
in interface AbilityMapper
mob
- the potential learner of the abilityA
- the ability to look for prerequisites to learnAbilityMapper.getCommonPreRequisites(Ability)
,
AbilityMapper.getUnmetPreRequisites(MOB, Ability)
,
AbilityMapper.formatPreRequisites(DVector)
,
AbilityMapper.getPreReqStrings(String, boolean, String)
public DVector getCommonPreRequisites(Ability A)
AbilityMapper
getCommonPreRequisites
in interface AbilityMapper
A
- the ability to look for prerequisites to learnAbilityMapper.getCommonPreRequisites(MOB, Ability)
,
AbilityMapper.getUnmetPreRequisites(MOB, Ability)
,
AbilityMapper.formatPreRequisites(DVector)
,
AbilityMapper.getPreReqStrings(String, boolean, String)
public java.lang.String getCommonExtraMask(Ability A)
AbilityMapper
getCommonExtraMask
in interface AbilityMapper
A
- the Ability whose ID is looked upMaskingLibrary
public DVector getUnmetPreRequisites(MOB studentM, Ability A)
AbilityMapper
getUnmetPreRequisites
in interface AbilityMapper
studentM
- the mob who wants to learnA
- the Ability the mob wants to learnAbilityMapper.getCommonPreRequisites(MOB, Ability)
,
AbilityMapper.getCommonPreRequisites(Ability)
,
AbilityMapper.formatPreRequisites(DVector)
,
AbilityMapper.getPreReqStrings(String, boolean, String)
public DVector getRawPreRequisites(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
public java.lang.String formatPreRequisites(DVector preReqs)
AbilityMapper
formatPreRequisites
in interface AbilityMapper
preReqs
- the coded pre-requisites for this skillAbilityMapper.getCommonPreRequisites(Ability)
,
AbilityMapper.getUnmetPreRequisites(MOB, Ability)
,
AbilityMapper.getCommonPreRequisites(MOB, Ability)
,
AbilityMapper.getPreReqStrings(String, boolean, String)
protected final AbilityMapper.AbilityMapping getPersonalMapping(MOB studentM, java.lang.String AID)
public final java.util.List<java.lang.String> getCurrentlyQualifyingIDs(MOB studentM, java.lang.String AID)
AbilityMapper
getCurrentlyQualifyingIDs
in interface AbilityMapper
studentM
- the student to learn the abilityAID
- the Ability IDpublic java.lang.String getExtraMask(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getExtraMask
in interface AbilityMapper
ID
- the charclass ID(), race ID(), or whatevercheckAll
- true to check the All Qualifies list, false to skip itabilityID
- the Ability ID() to find a level forMaskingLibrary
public java.lang.String getApplicableMask(MOB studentM, Ability A)
AbilityMapper
getApplicableMask
in interface AbilityMapper
studentM
- the mob, whose clans, charclass ID(), race ID() are checkedA
- the Ability to find a mask forMaskingLibrary
public int qualifyingLevel(MOB studentM, Ability A)
AbilityMapper
qualifyingLevel
in interface AbilityMapper
studentM
- the mob, whose charclass ID(), race ID() are checkedA
- the Ability to find a level forAbilityMapper.getQualifyingLevel(String, boolean, String)
,
AbilityMapper.qualifyingClassLevel(MOB, Ability)
,
AbilityMapper.lowestQualifyingClassRaceGovt(MOB, Ability)
public java.lang.String qualifyingID(MOB studentM, Ability A)
AbilityMapper
qualifyingID
in interface AbilityMapper
studentM
- the studentA
- the Ability to qualify forpublic CharClass qualifyingCharClassByLevel(MOB studentM, Ability A)
AbilityMapper
qualifyingCharClassByLevel
in interface AbilityMapper
studentM
- the mob, whose charclass ID() is checkedA
- the Ability to find a class forpublic int qualifyingClassLevel(MOB studentM, Ability A)
AbilityMapper
qualifyingClassLevel
in interface AbilityMapper
studentM
- the mob, whose charclass ID() is checkedA
- the Ability to find a level forAbilityMapper.getQualifyingLevel(String, boolean, String)
,
AbilityMapper.qualifyingLevel(MOB, Ability)
,
AbilityMapper.lowestQualifyingClassRaceGovt(MOB, Ability)
public CMObject lowestQualifyingClassRaceGovt(MOB studentM, Ability A)
AbilityMapper
lowestQualifyingClassRaceGovt
in interface AbilityMapper
studentM
- the mob whose class, race, etc to checkA
- the Ability to checkAbilityMapper.getQualifyingLevel(String, boolean, String)
,
AbilityMapper.qualifyingLevel(MOB, Ability)
,
AbilityMapper.qualifyingClassLevel(MOB, Ability)
public boolean qualifiesByCurrentClassAndLevel(MOB studentM, Ability A)
AbilityMapper
qualifiesByCurrentClassAndLevel
in interface AbilityMapper
studentM
- the mob to checkA
- the ability to checkAbilityMapper.qualifiesOnlyByClan(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesOnlyByACharClass(MOB, Ability)
,
AbilityMapper.qualifiesOnlyByRace(MOB, Ability)
public boolean qualifiesOnlyByRace(MOB studentM, Ability A)
AbilityMapper
qualifiesOnlyByRace
in interface AbilityMapper
studentM
- the mob to checkA
- the ability to checkAbilityMapper.qualifiesOnlyByClan(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesOnlyByACharClass(MOB, Ability)
,
AbilityMapper.qualifiesByCurrentClassAndLevel(MOB, Ability)
public boolean qualifiesOnlyByClan(MOB studentM, Ability A)
AbilityMapper
qualifiesOnlyByClan
in interface AbilityMapper
studentM
- the mob to checkA
- the ability to checkAbilityMapper.qualifiesOnlyByRace(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesOnlyByACharClass(MOB, Ability)
,
AbilityMapper.qualifiesByCurrentClassAndLevel(MOB, Ability)
public boolean qualifiesOnlyByACharClass(MOB studentM, Ability A)
AbilityMapper
qualifiesOnlyByACharClass
in interface AbilityMapper
studentM
- the mob to checkA
- the ability to checkAbilityMapper.qualifiesOnlyByClan(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesByCurrentClassAndLevel(MOB, Ability)
,
AbilityMapper.qualifiesOnlyByRace(MOB, Ability)
public boolean qualifiesByLevel(MOB studentM, Ability A)
AbilityMapper
qualifiesByLevel
in interface AbilityMapper
studentM
- the mob to checkA
- the ability to checkAbilityMapper.qualifiesOnlyByClan(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesByCurrentClassAndLevel(MOB, Ability)
,
AbilityMapper.qualifiesOnlyByRace(MOB, Ability)
public boolean qualifiesByLevel(MOB studentM, java.lang.String abilityID)
AbilityMapper
qualifiesByLevel
in interface AbilityMapper
studentM
- the mob to checkabilityID
- the Ability ID() to checkAbilityMapper.qualifiesOnlyByClan(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesByCurrentClassAndLevel(MOB, Ability)
,
AbilityMapper.qualifiesOnlyByRace(MOB, Ability)
public boolean qualifiesByTrajectory(MOB studentM, java.lang.String abilityID)
AbilityMapper
qualifiesByTrajectory
in interface AbilityMapper
studentM
- the mob to checkabilityID
- the Ability ID() to checkAbilityMapper.qualifiesOnlyByClan(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, Ability)
,
AbilityMapper.qualifiesByLevel(MOB, String)
,
AbilityMapper.qualifiesByCurrentClassAndLevel(MOB, Ability)
,
AbilityMapper.qualifiesOnlyByRace(MOB, Ability)
public boolean getDefaultGain(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getDefaultGain
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkpublic boolean getAllQualified(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getAllQualified
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkpublic AbilityMapper.AbilityMapping getAbleMap(java.lang.String ID, java.lang.String abilityID)
AbilityMapper
getAbleMap
in interface AbilityMapper
ID
- the CharClass ID(), Race ID(), or clan IDabilityID
- the Ability ID()AbilityMapper.AbilityMapping
,
AbilityMapper.numMappedAbilities()
,
AbilityMapper.getAllAbleMap(String)
public AbilityMapper.AbilityMapping getAllAbleMap(java.lang.String abilityID)
AbilityMapper
getAllAbleMap
in interface AbilityMapper
abilityID
- the Ability ID()AbilityMapper.AbilityMapping
,
AbilityMapper.numMappedAbilities()
,
AbilityMapper.getAbleMap(String, String)
public AbilityMapper.SecretFlag getSecretSkill(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getSecretSkill
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkAbilityMapper.SecretFlag
public AbilityMapper.SecretFlag getAllSecretSkill(java.lang.String abilityID)
AbilityMapper
getAllSecretSkill
in interface AbilityMapper
abilityID
- the ability ID() to checkAbilityMapper.SecretFlag
public final java.util.List<AbilityMapper.AbilityMapping> getAllAbilityMappings(MOB mob, java.lang.String abilityID)
public boolean getSecretSkill(MOB mob, java.lang.String abilityID)
AbilityMapper
getSecretSkill
in interface AbilityMapper
mob
- the mob to checkabilityID
- the ability ID() to checkAbilityMapper.SecretFlag
public AbilityMapper.SecretFlag getSecretSkill(java.lang.String abilityID)
AbilityMapper
getSecretSkill
in interface AbilityMapper
abilityID
- the ability ID() to checkAbilityMapper.SecretFlag
public java.lang.Integer[] getCostOverrides(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getCostOverrides
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkAbilityMapper.AbilCostType
,
AbilityMapper.getAllCostOverrides(String)
,
AbilityMapper.getCostOverrides(String)
,
AbilityMapper.getCostOverrides(MOB, String)
public java.lang.Integer[] getAllCostOverrides(java.lang.String abilityID)
AbilityMapper
getAllCostOverrides
in interface AbilityMapper
abilityID
- the ability ID() to checkAbilityMapper.AbilCostType
,
AbilityMapper.getCostOverrides(String, boolean, String)
,
AbilityMapper.getCostOverrides(String)
,
AbilityMapper.getCostOverrides(MOB, String)
public java.lang.Integer[] getCostOverrides(MOB mob, java.lang.String abilityID)
AbilityMapper
getCostOverrides
in interface AbilityMapper
mob
- the mob whose charclass, race, or clan ID() is relevantabilityID
- the ability ID() to checkAbilityMapper.AbilCostType
,
AbilityMapper.getAllCostOverrides(String)
,
AbilityMapper.getCostOverrides(String)
,
AbilityMapper.getCostOverrides(String, boolean, String)
public java.lang.Integer[] getCostOverrides(java.lang.String abilityID)
AbilityMapper
getCostOverrides
in interface AbilityMapper
abilityID
- the ability ID() to checkAbilityMapper.AbilCostType
,
AbilityMapper.getCostOverrides(String, boolean, String)
,
AbilityMapper.getAllCostOverrides(String)
,
AbilityMapper.getCostOverrides(MOB, String)
public java.lang.String getDefaultParm(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getDefaultParm
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkEnvironmental.setMiscText(String)
public java.lang.String getPreReqStrings(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getPreReqStrings
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkAbilityMapper.getCommonPreRequisites(Ability)
,
AbilityMapper.getUnmetPreRequisites(MOB, Ability)
,
AbilityMapper.getCommonPreRequisites(MOB, Ability)
,
AbilityMapper.formatPreRequisites(DVector)
public int getMaxProficiency(MOB mob, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getMaxProficiency
in interface AbilityMapper
mob
- the mob whose charclass, race, or clan ID() appliescheckAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkAbility.proficiency()
,
AbilityMapper.getDefaultProficiency(String, boolean, String)
,
AbilityMapper.getMaxProficiency(String)
,
AbilityMapper.getMaxProficiency(String, boolean, String)
public int getMaxProficiency(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getMaxProficiency
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkAbility.proficiency()
,
AbilityMapper.getMaxProficiency(String)
,
AbilityMapper.getMaxProficiency(String, boolean, String)
public int getMaxProficiency(java.lang.String abilityID)
AbilityMapper
getMaxProficiency
in interface AbilityMapper
abilityID
- the ability ID() to checkAbilityMapper.getMaxProficiency(MOB, boolean, String)
,
AbilityMapper.getMaxProficiency(String, boolean, String)
,
Ability.proficiency()
public int getDefaultProficiency(java.lang.String ID, boolean checkAll, java.lang.String abilityID)
AbilityMapper
getDefaultProficiency
in interface AbilityMapper
ID
- the charclass, race, or clan ID()checkAll
- true to check the All Qualifies list, or false not toabilityID
- the ability ID() to checkAbility.proficiency()
,
AbilityMapper.getMaxProficiency(MOB, boolean, String)
public AbilityMapper.AbilityMapping makeAllQualifyMapping(java.lang.String s)
public final Converter<java.lang.String,AbilityMapper.AbilityMapping> getMapper(java.lang.String classID)
AbilityMapper
getMapper
in interface AbilityMapper
classID
- the classid (or 'all') that owns the mappingpublic AbilityMapper.CompoundingRule getCompoundingRule(MOB mob, Ability A)
AbilityMapper
getCompoundingRule
in interface AbilityMapper
mob
- the mob to find a rule for, or null to find one for everyoneA
- the ability to find a rule forAbilityMapper.CompoundingRule
,
AbilityMapper.compoundingRules()
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> getAllQualifiesMap(java.util.Map<java.lang.String,java.lang.Object> cache)
AbilityMapper
getAllQualifiesMap
in interface AbilityMapper
cache
- a cache to store the map in temporarily, or nullAbilityMapper.saveAllQualifysFile(Map)
public java.lang.String buildAllQualifysSection(java.util.Map<java.lang.String,AbilityMapper.AbilityMapping> map)
protected void undoAllQualifysList()
public void saveAllQualifysFile(java.util.Map<java.lang.String,java.util.Map<java.lang.String,AbilityMapper.AbilityMapping>> newMap)
AbilityMapper
saveAllQualifysFile
in interface AbilityMapper
newMap
- the All-Qualifies skills in a coded mapAbilityMapper.getAllQualified(String, boolean, String)
public PairList<java.lang.String,java.lang.Integer> getAvailabilityList(Ability A, int abbreviateAt)
AbilityMapper
getAvailabilityList
in interface AbilityMapper
A
- the skill to get a list of qualifiers forabbreviateAt
- the number of classes beyond which is starts aggregatingpublic java.util.Enumeration<AbilityMapper.CompoundingRule> compoundingRules()
AbilityMapper
compoundingRules
in interface AbilityMapper
AbilityMapper.CompoundingRule
,
AbilityMapper.getCompoundingRule(MOB, Ability)
protected void loadCompoundingRules()
public void propertiesLoaded()
CMLibrary
propertiesLoaded
in interface CMLibrary
propertiesLoaded
in class StdLibrary