AutoAwardspublic interface AutoAwardsLibrary extends CMLibrary
reloadAutoTitles()| Modifier and Type | Interface | Description | 
|---|---|---|
| static interface  | AutoAwardsLibrary.AutoProperties | Class to store the definitional information
 about a single set of AutoProperties | 
| static interface  | AutoAwardsLibrary.AutoTitle | Class to store the definitional information
 about a single AutoTitle | 
idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| 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. | 
| 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 | getAutoAwardInstructions(java.lang.String filename) | Reads the auto-award recipe file given and
 returns the instructions from it (basically,
 the comments) | 
| java.util.Enumeration<AutoAwardsLibrary.AutoProperties> | getAutoProperties() | Returns an enumeration of all defined auto-properties | 
| int | getAutoPropertiesHash() | Returns a hash of the auto-properties, allowing quick
 checks for changes. | 
| java.lang.String | getAutoPropsFilename() | Returns the filename of the auto-properties
 recipe file. | 
| AutoAwardsLibrary.AutoTitle | getAutoTitle(java.lang.String title) | Returns the full auto-title definition for the given title/id. | 
| java.lang.String | getAutoTitleFilename() | Returns the filename of the auto-title recipe
 file. | 
| java.lang.String | getAutoTitleMask(java.lang.String title) | Returns the string mask attributed to a particular
 title string. | 
| void | giveAutoProperties(MOB mob) | Allows the given mob to start participating in
 auto-properties. | 
| boolean | isExistingAutoTitle(java.lang.String title) | Returns whether the given string matches one of the defined
 player titles. | 
| boolean | modifyAutoProperty(int lineNum,
                  java.lang.String newLine) | In auto properties, this will allow it to be modified on a line-by-line
 basis automatically, either adding, replacing or deleting a line numbered 1..n. | 
| void | reloadAutoTitles() | Forces this library to re-load its list of titles from
 the resource file titles.ini. | 
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, ID, initializeClass, name, newInstancejava.util.Enumeration<java.lang.String> autoTitles()
AutoAwardsLibrary.AutoTitle getAutoTitle(java.lang.String title)
title - the title itselfjava.lang.String getAutoTitleMask(java.lang.String title)
title - the title itselfMaskingLibraryboolean isExistingAutoTitle(java.lang.String title)
title - the strong to matchjava.lang.String evaluateAutoTitle(java.lang.String row,
                                   boolean addIfPossible)
row - the admin-entered command stringaddIfPossible - true to add it to the list, false to scan-onlyboolean evaluateAutoTitles(MOB mob)
mob - the mob to check for new titles forvoid reloadAutoTitles()
void appendAutoTitle(java.lang.String text)
text - the text of the new title definitionjava.lang.String deleteTitleAndResave(java.lang.String title)
title - the title to removejava.lang.String getAutoTitleFilename()
java.lang.String getAutoPropsFilename()
java.lang.String getAutoAwardInstructions(java.lang.String filename)
filename - the file to readjava.util.Enumeration<AutoAwardsLibrary.AutoProperties> getAutoProperties()
int getAutoPropertiesHash()
void giveAutoProperties(MOB mob)
mob - the mob who wants auto propertiesboolean modifyAutoProperty(int lineNum,
                           java.lang.String newLine)
lineNum - the line to editnewLine - null to delete the line, or the new line