com.planet_ink.coffee_mud.Libraries
Class ColumbiaUniv
java.lang.Object
com.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.ColumbiaUniv
- All Implemented Interfaces:
- CMObject, Tickable, CMLibrary, ExpertiseLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>
public class ColumbiaUniv
- extends StdLibrary
- implements ExpertiseLibrary
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
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_BEAMWEAPON, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, 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_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET |
|
Method Summary |
ExpertiseLibrary.ExpertiseDefinition |
addDefinition(java.lang.String ID,
java.lang.String name,
java.lang.String baseName,
java.lang.String listMask,
java.lang.String finalMask,
java.lang.String[] costs,
java.lang.String[] data)
|
boolean |
canBeTaught(MOB teacher,
MOB student,
Environmental item,
java.lang.String msg)
|
java.lang.String |
confirmExpertiseLine(java.lang.String row,
java.lang.String ID,
boolean addIfPossible)
|
protected ExpertiseLibrary.ExpertiseDefinition |
createNewExpertiseDefinition(java.lang.String ID,
java.lang.String name,
java.lang.String baseName)
|
ExpertiseLibrary.SkillCost |
createNewSkillCost(ExpertiseLibrary.CostType costType,
java.lang.Double value)
|
java.util.Enumeration<ExpertiseLibrary.ExpertiseDefinition> |
definitions()
|
void |
delDefinition(java.lang.String ID)
|
java.util.Iterator<java.lang.String> |
filterUniqueExpertiseIDList(java.util.Iterator<java.lang.String> i)
|
ExpertiseLibrary.ExpertiseDefinition |
findDefinition(java.lang.String ID,
boolean exactOnly)
|
java.lang.String |
getApplicableExpertise(java.lang.String ID,
ExpertiseLibrary.Flag code)
|
int |
getApplicableExpertiseLevel(java.lang.String ID,
ExpertiseLibrary.Flag code,
MOB mob)
|
java.lang.String[] |
getApplicableExpertises(java.lang.String ID,
ExpertiseLibrary.Flag code)
|
ExpertiseLibrary.ExpertiseDefinition |
getDefinition(java.lang.String ID)
|
java.lang.String |
getExpertiseHelp(java.lang.String ID,
boolean exact)
|
int |
getExpertiseLevel(MOB mob,
java.lang.String abilityID,
ExpertiseLibrary.Flag code)
|
java.lang.String |
getGuessedBaseExpertiseName(java.lang.String expertiseCode)
|
int |
getHighestListableStageBySkill(MOB mob,
java.lang.String ableID,
ExpertiseLibrary.Flag flag)
|
java.util.List<java.lang.String> |
getPeerStageCodes(java.lang.String expertiseCode)
|
java.util.List<java.lang.String> |
getStageCodes(java.lang.String baseExpertiseCode)
|
int |
getStages(java.lang.String baseExpertiseCode)
|
void |
handleBeingTaught(MOB teacher,
MOB student,
Environmental item,
java.lang.String msg)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of
this object. |
java.util.List<ExpertiseLibrary.ExpertiseDefinition> |
myListableExpertises(MOB mob)
|
java.util.List<ExpertiseLibrary.ExpertiseDefinition> |
myQualifiedExpertises(MOB mob)
|
int |
numExpertises()
|
protected java.lang.Object |
parseLearnID(java.lang.String msg)
|
boolean |
postTeach(MOB teacher,
MOB student,
CMObject teachObj)
|
void |
recompileExpertises()
|
| Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tick |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
completeEduMap
protected SHashtable<java.lang.String,ExpertiseLibrary.ExpertiseDefinition> completeEduMap
baseEduSetLists
protected SHashtable<java.lang.String,java.util.List<java.lang.String>> baseEduSetLists
completeUsageMap
protected java.util.Map<java.lang.String,java.lang.String>[] completeUsageMap
completeUsageMaps
protected java.util.Map<java.lang.String,java.lang.String[]>[] completeUsageMaps
helpMap
protected java.util.Properties helpMap
rawDefinitions
protected DVector rawDefinitions
ColumbiaUniv
public ColumbiaUniv()
ID
public java.lang.String ID()
- Description copied from interface:
CMObject
- The CoffeeMud Java Class ID shared by all instances of
this object. Unlike the Java Class name, this method
does not include package information. However, it must
return a String value unique to its class category in
the ClassLoader. Class categories include Libraries, Common,
Areas, Abilities, Behaviors, CharClasses, Commands, Exits
Locales, MOBS, Races, WebMacros, Basic Items, Armor,
Weapons, ClanItems, Tech. The name is typically identical
to the class name.
- Specified by:
ID in interface CMObject- Overrides:
ID in class StdLibrary
- Returns:
- the name of this class
addDefinition
public ExpertiseLibrary.ExpertiseDefinition addDefinition(java.lang.String ID,
java.lang.String name,
java.lang.String baseName,
java.lang.String listMask,
java.lang.String finalMask,
java.lang.String[] costs,
java.lang.String[] data)
- Specified by:
addDefinition in interface ExpertiseLibrary
getExpertiseHelp
public java.lang.String getExpertiseHelp(java.lang.String ID,
boolean exact)
- Specified by:
getExpertiseHelp in interface ExpertiseLibrary
delDefinition
public void delDefinition(java.lang.String ID)
- Specified by:
delDefinition in interface ExpertiseLibrary
definitions
public java.util.Enumeration<ExpertiseLibrary.ExpertiseDefinition> definitions()
- Specified by:
definitions in interface ExpertiseLibrary
getDefinition
public ExpertiseLibrary.ExpertiseDefinition getDefinition(java.lang.String ID)
- Specified by:
getDefinition in interface ExpertiseLibrary
findDefinition
public ExpertiseLibrary.ExpertiseDefinition findDefinition(java.lang.String ID,
boolean exactOnly)
- Specified by:
findDefinition in interface ExpertiseLibrary
myQualifiedExpertises
public java.util.List<ExpertiseLibrary.ExpertiseDefinition> myQualifiedExpertises(MOB mob)
- Specified by:
myQualifiedExpertises in interface ExpertiseLibrary
myListableExpertises
public java.util.List<ExpertiseLibrary.ExpertiseDefinition> myListableExpertises(MOB mob)
- Specified by:
myListableExpertises in interface ExpertiseLibrary
getExpertiseLevel
public int getExpertiseLevel(MOB mob,
java.lang.String abilityID,
ExpertiseLibrary.Flag code)
- Specified by:
getExpertiseLevel in interface ExpertiseLibrary
getHighestListableStageBySkill
public int getHighestListableStageBySkill(MOB mob,
java.lang.String ableID,
ExpertiseLibrary.Flag flag)
- Specified by:
getHighestListableStageBySkill in interface ExpertiseLibrary
numExpertises
public int numExpertises()
- Specified by:
numExpertises in interface ExpertiseLibrary
getStageCodes
public java.util.List<java.lang.String> getStageCodes(java.lang.String baseExpertiseCode)
- Specified by:
getStageCodes in interface ExpertiseLibrary
getStages
public int getStages(java.lang.String baseExpertiseCode)
- Specified by:
getStages in interface ExpertiseLibrary
getGuessedBaseExpertiseName
public java.lang.String getGuessedBaseExpertiseName(java.lang.String expertiseCode)
- Specified by:
getGuessedBaseExpertiseName in interface ExpertiseLibrary
getPeerStageCodes
public java.util.List<java.lang.String> getPeerStageCodes(java.lang.String expertiseCode)
- Specified by:
getPeerStageCodes in interface ExpertiseLibrary
getApplicableExpertise
public java.lang.String getApplicableExpertise(java.lang.String ID,
ExpertiseLibrary.Flag code)
- Specified by:
getApplicableExpertise in interface ExpertiseLibrary
getApplicableExpertises
public java.lang.String[] getApplicableExpertises(java.lang.String ID,
ExpertiseLibrary.Flag code)
- Specified by:
getApplicableExpertises in interface ExpertiseLibrary
getApplicableExpertiseLevel
public int getApplicableExpertiseLevel(java.lang.String ID,
ExpertiseLibrary.Flag code,
MOB mob)
- Specified by:
getApplicableExpertiseLevel in interface ExpertiseLibrary
createNewSkillCost
public ExpertiseLibrary.SkillCost createNewSkillCost(ExpertiseLibrary.CostType costType,
java.lang.Double value)
- Specified by:
createNewSkillCost in interface ExpertiseLibrary
confirmExpertiseLine
public java.lang.String confirmExpertiseLine(java.lang.String row,
java.lang.String ID,
boolean addIfPossible)
- Specified by:
confirmExpertiseLine in interface ExpertiseLibrary
recompileExpertises
public void recompileExpertises()
- Specified by:
recompileExpertises in interface ExpertiseLibrary
filterUniqueExpertiseIDList
public java.util.Iterator<java.lang.String> filterUniqueExpertiseIDList(java.util.Iterator<java.lang.String> i)
- Specified by:
filterUniqueExpertiseIDList in interface ExpertiseLibrary
parseLearnID
protected java.lang.Object parseLearnID(java.lang.String msg)
canBeTaught
public boolean canBeTaught(MOB teacher,
MOB student,
Environmental item,
java.lang.String msg)
- Specified by:
canBeTaught in interface ExpertiseLibrary
handleBeingTaught
public void handleBeingTaught(MOB teacher,
MOB student,
Environmental item,
java.lang.String msg)
- Specified by:
handleBeingTaught in interface ExpertiseLibrary
postTeach
public boolean postTeach(MOB teacher,
MOB student,
CMObject teachObj)
- Specified by:
postTeach in interface ExpertiseLibrary
createNewExpertiseDefinition
protected ExpertiseLibrary.ExpertiseDefinition createNewExpertiseDefinition(java.lang.String ID,
java.lang.String name,
java.lang.String baseName)