public static interface ExpertiseLibrary.ExpertiseDefinition extends CMObject
idConverter
Modifier and Type | Method | Description |
---|---|---|
void |
addCost(CostDef.CostType type,
java.lang.Double value) |
Adds another resource cost to acquire this expertise.
|
void |
addFinalMask(java.lang.String mask) |
Adds a ZapperMask describing who may acquire this
expertise through training.
|
void |
addListMask(java.lang.String mask) |
Adds a ZapperMask describing who may know about the availability of this
expertise.
|
void |
addRawMasks(java.lang.String listMask,
java.lang.String finalMask) |
Adds the raw, unprocessed mask strings to this object.
|
java.lang.String |
allRequirements() |
Gets a ZapperMask describing who may know about the availability of this
expertise AND acquire it.
|
MaskingLibrary.CompiledZMask |
compiledFinalMask() |
Gets a ZapperMask describing who may acquire this
expertise through training.
|
MaskingLibrary.CompiledZMask |
compiledListMask() |
Gets a ZapperMask describing who may know about the availability of this
expertise.
|
java.lang.String |
costDescription() |
Returns a friendly description of this expertise cost
|
java.lang.String |
finalRequirements() |
Gets a ZapperMask describing who may acquire this
expertise through training.
|
java.lang.String |
getBaseName() |
Gets the base (non-leveled) name of this expertise, for
association with its other-leveled brethren.
|
java.util.Set<ExpertiseLibrary.XType> |
getFlagTypes() |
Read/Writeable list of XType flags for this
expertise.
|
int |
getMinimumLevel() |
Returns the minimum player level required to learn this
expertise.
|
ExpertiseLibrary.ExpertiseDefinition |
getParent() |
If this is a later stage expertise definition, this
method returns the parent/base definition.
|
java.lang.String[] |
getStageNames() |
If this expertise supports naming _DATA for each stage/level, this
will return an array of the names of each stage/level for easy
lookup.
|
java.lang.String |
listRequirements() |
Gets a ZapperMask describing who may know about the availability of this
expertise.
|
boolean |
meetsCostRequirements(MOB mob) |
Returns whether the given mob has enough resources
to cover the costs described by this expertise.
|
java.lang.String |
rawFinalMask() |
Gets the raw unprocessed final mask
|
java.lang.String |
rawListMask() |
Gets the raw unprocessed list mask
|
void |
setBaseName(java.lang.String baseName) |
Sets the base (non-leveled) name of this expertise, for
association with its other-leveled brethren.
|
void |
setID(java.lang.String ID) |
Sets the code name of this expertise, including its
stage/level number.
|
void |
setName(java.lang.String name) |
Sets the friendly name of this expertise, including its
stage/level number.
|
void |
setStageNames(java.lang.String[] data) |
If this expertise supports naming _DATA for each stage/level, this
will set an array of the names of each stage/level for easy
lookup.
|
void |
spendCostRequirements(MOB mob) |
Subtracts the costs described by this class from
the given mob
|
copyOf, ID, initializeClass, name, newInstance
java.lang.String getBaseName()
setBaseName(String)
void setBaseName(java.lang.String baseName)
baseName
- the base name of this expertise typegetBaseName()
void setName(java.lang.String name)
name
- the friendly namevoid setID(java.lang.String ID)
ID
- the code name of this expertisevoid setStageNames(java.lang.String[] data)
data
- an array of the namesgetStageNames()
ExpertiseLibrary.ExpertiseDefinition getParent()
int getMinimumLevel()
java.lang.String[] getStageNames()
setStageNames(String[])
MaskingLibrary.CompiledZMask compiledListMask()
MaskingLibrary
MaskingLibrary.CompiledZMask compiledFinalMask()
MaskingLibrary
java.lang.String allRequirements()
MaskingLibrary
java.lang.String listRequirements()
MaskingLibrary
java.lang.String finalRequirements()
MaskingLibrary
void addListMask(java.lang.String mask)
mask
- a ZapperMask describing who may know about the availability of thisMaskingLibrary
void addFinalMask(java.lang.String mask)
mask
- a ZapperMask describing who may acquire thisMaskingLibrary
void addCost(CostDef.CostType type, java.lang.Double value)
type
- the type of costvalue
- the amount of the resource requiredjava.lang.String costDescription()
boolean meetsCostRequirements(MOB mob)
mob
- the mob to lose resourcesvoid spendCostRequirements(MOB mob)
mob
- the mob to lose resourcesjava.util.Set<ExpertiseLibrary.XType> getFlagTypes()
void addRawMasks(java.lang.String listMask, java.lang.String finalMask)
listMask
- the most raw list maskfinalMask
- the most raw final maskjava.lang.String rawListMask()
java.lang.String rawFinalMask()