|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Libraries.StdLibrary
com.planet_ink.coffee_mud.Libraries.AutoTitles
public class AutoTitles
Field Summary |
---|
Fields inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary |
---|
isDebugging, name, serviceClient, tickStatus |
Constructor Summary | |
---|---|
AutoTitles()
|
Method Summary | |
---|---|
void |
appendAutoTitle(java.lang.String text)
Appends to the list of titles from the given text and refreshes the cache. |
java.util.Enumeration<java.lang.String> |
autoTitles()
Returns an enumerator of the auto-title strings themselves. |
java.lang.String |
deleteTitleAndResave(java.lang.String title)
Removes the given title from all affected players, removes the given title from the titles properties file, and refreshes the titles cache. |
protected void |
dispossesTitle(java.lang.String title)
|
java.lang.String |
evaluateAutoTitle(java.lang.String row,
boolean addIfPossible)
Scans an admin-given auto-title definition string to see if it is properly formatted for adding to the list of auto-titles. |
boolean |
evaluateAutoTitles(MOB mob)
Scans all existing titles to see if any should be added to the given mob. |
java.lang.String |
getAutoTitleInstructions()
Reads the titles.ini file and returns the instructions therein. |
java.lang.String |
getAutoTitleMask(java.lang.String title)
Returns the string mask attributed to a particular title string. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
isExistingAutoTitle(java.lang.String title)
Returns whether the given string matches one of the defined player titles. |
void |
reloadAutoTitles()
Forces this library to re-load its list of titles from the resource file titles.ini. |
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 com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary |
---|
activate, getServiceClient, L, propertiesLoaded, shutdown |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public AutoTitles()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public java.lang.String evaluateAutoTitle(java.lang.String row, boolean addIfPossible)
AutoTitlesLibrary
evaluateAutoTitle
in interface AutoTitlesLibrary
row
- the admin-entered command stringaddIfPossible
- true to add it to the list, false to scan-only
public boolean isExistingAutoTitle(java.lang.String title)
AutoTitlesLibrary
isExistingAutoTitle
in interface AutoTitlesLibrary
title
- the strong to match
public java.util.Enumeration<java.lang.String> autoTitles()
AutoTitlesLibrary
autoTitles
in interface AutoTitlesLibrary
public java.lang.String getAutoTitleMask(java.lang.String title)
AutoTitlesLibrary
getAutoTitleMask
in interface AutoTitlesLibrary
title
- the title itself
MaskingLibrary
public boolean evaluateAutoTitles(MOB mob)
AutoTitlesLibrary
evaluateAutoTitles
in interface AutoTitlesLibrary
mob
- the mob to check for new titles for
protected void dispossesTitle(java.lang.String title)
public void appendAutoTitle(java.lang.String text)
AutoTitlesLibrary
appendAutoTitle
in interface AutoTitlesLibrary
text
- the text of the new title definitionpublic java.lang.String deleteTitleAndResave(java.lang.String title)
AutoTitlesLibrary
deleteTitleAndResave
in interface AutoTitlesLibrary
title
- the title to remove
public void reloadAutoTitles()
AutoTitlesLibrary
reloadAutoTitles
in interface AutoTitlesLibrary
public java.lang.String getAutoTitleInstructions()
AutoTitlesLibrary
getAutoTitleInstructions
in interface AutoTitlesLibrary
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |