Modifier and Type | Interface | Description |
---|---|---|
static class |
HelpLibrary.HelpSection |
An enum for how to search help files.
|
idConverter
Modifier and Type | Method | Description |
---|---|---|
void |
addHelpEntry(java.lang.String ID,
java.lang.String text,
boolean archon) |
Adds a new entry to the cached help entries.
|
boolean |
addModifyHelpEntry(MOB mob,
java.lang.String helpFile,
java.lang.String helpKey,
boolean deleteOnly) |
An asynchronous editor for help entries that also re-saves the file
when completed.
|
java.lang.String |
findHelpFile(java.lang.String key,
HelpLibrary.HelpSection searchSection,
boolean exactOnly) |
Returns the path of the help file that contains the given help key.
|
java.lang.String |
fixHelp(java.lang.String tag,
java.lang.String str,
MOB forM) |
Do post processing on the given help text, resolving tags and
other derived data that needs insertion.
|
java.lang.String |
getAbilityCostDesc(Ability A,
MOB forM) |
Returns a description of the amount of trains/practices
required by the give mob to gain the given ability.
|
java.lang.String |
getAbilityQualityDesc(Ability A) |
Returns a description of the quality of the
given skill.
|
java.lang.String |
getAbilityRangeDesc(Ability A) |
Returns a description of the range of the given skill.
|
java.lang.String |
getAbilityTargetDesc(Ability A) |
Returns a description of the valid targets of the given skill.
|
java.lang.String |
getActualAbilityUsageDesc(Ability A,
int whichUsageCode,
MOB forM) |
Returns a description of the amount of a particular cost is required
by the given mob to use the given ability.
|
java.util.Properties |
getArcHelpFile() |
Returns the cache for the archon help entries.
|
java.util.Properties |
getHelpFile() |
Returns the cache for the main help entries.
|
java.util.List<java.lang.String> |
getHelpList(java.lang.String helpStr,
java.util.Properties rHelpFile1,
java.util.Properties rHelpFile2,
MOB forM) |
Returns a list of help entries containing the given string, as an aid
in search.
|
Pair<java.lang.String,java.lang.String> |
getHelpMatch(java.lang.String helpStr,
java.util.Properties rHelpFile,
MOB forM,
int skipEntries) |
Returns a viewable help entry for the given key, checking the given
help file and returning the matching key and help text.
|
java.lang.String |
getHelpText(java.lang.String helpStr,
MOB forM,
boolean favorAHelp) |
Returns a viewable help entry for the given key.
|
java.lang.String |
getHelpText(java.lang.String helpStr,
MOB forM,
boolean favorAHelp,
boolean noFix) |
Returns a viewable help entry for the given key.
|
java.lang.String |
getRPProficiencyStr(int proficiency) |
Returns the official description of a skill proficiency value.
|
java.util.List<java.lang.String> |
getSeeAlsoHelpOn(MOB mob,
java.util.Properties rHelpFile,
java.lang.String helpSearch,
java.lang.String helpKey,
java.lang.String helpText,
int howMany) |
Given the original search term, and the matching helpKey and helpText and mob, this
will find any other help keys that might be relevant to the search, returning
the list of also-matching results.
|
java.util.List<java.lang.String> |
getTopics(boolean archonHelp,
boolean standardHelp) |
Returns a list of all help keys.
|
boolean |
isPlayerSkill(java.lang.String helpStr) |
Returns whether the given string resembles a key for
a player qualifying skill, or if the entry has common
skill help markers.
|
void |
unloadHelpFile(MOB mob) |
Unloads the help file cache, forcing the cache to be repopulated from
the filesystem on next access.
|
activate, getServiceClient, L, propertiesLoaded, shutdown
copyOf, ID, initializeClass, name, newInstance
java.util.List<java.lang.String> getTopics(boolean archonHelp, boolean standardHelp)
archonHelp
- true to include archon keys, false otherwisestandardHelp
- true to include normal keys, false otherwisejava.lang.String fixHelp(java.lang.String tag, java.lang.String str, MOB forM)
tag
- the keystr
- the help text to post-processforM
- the mob for whom the help is intendedjava.lang.String getHelpText(java.lang.String helpStr, MOB forM, boolean favorAHelp)
helpStr
- the keyforM
- the mob to get info forfavorAHelp
- true to search archon help firstgetArcHelpFile()
,
getHelpFile()
java.lang.String getHelpText(java.lang.String helpStr, MOB forM, boolean favorAHelp, boolean noFix)
helpStr
- the keyforM
- the mob to get info forfavorAHelp
- true to search archon help firstnoFix
- true to skip post-processing, false otherwisegetArcHelpFile()
,
getHelpFile()
java.util.List<java.lang.String> getSeeAlsoHelpOn(MOB mob, java.util.Properties rHelpFile, java.lang.String helpSearch, java.lang.String helpKey, java.lang.String helpText, int howMany)
mob
- the mob who wants more optionsrHelpFile
- the help files to base see also onhelpSearch
- the original search wordshelpKey
- the officially found help keyhelpText
- the officially processed and found help texthowMany
- the maximum number of options to returnjava.lang.String findHelpFile(java.lang.String key, HelpLibrary.HelpSection searchSection, boolean exactOnly)
key
- the official help key to look forsearchSection
- how to search for keysexactOnly
- true to return only exact match, false to get bestaddModifyHelpEntry(MOB, String, String, boolean)
boolean addModifyHelpEntry(MOB mob, java.lang.String helpFile, java.lang.String helpKey, boolean deleteOnly)
mob
- the mob who wants to add/edithelpFile
- the help file to edithelpKey
- the help file key entry to editdeleteOnly
- true to delete the entry onlyfindHelpFile(String, HelpSection, boolean)
Pair<java.lang.String,java.lang.String> getHelpMatch(java.lang.String helpStr, java.util.Properties rHelpFile, MOB forM, int skipEntries)
helpStr
- the keyrHelpFile
- the help file cache to useforM
- the mob to get info forskipEntries
- number of matches to skip before returning the next onegetArcHelpFile()
,
getHelpFile()
java.util.List<java.lang.String> getHelpList(java.lang.String helpStr, java.util.Properties rHelpFile1, java.util.Properties rHelpFile2, MOB forM)
helpStr
- the string to search forrHelpFile1
- the first help cache to prioritizerHelpFile2
- null, or the second help cache to prioritizeforM
- the mob for whom help entries are searchedgetArcHelpFile()
,
getHelpFile()
java.util.Properties getArcHelpFile()
java.util.Properties getHelpFile()
void unloadHelpFile(MOB mob)
mob
- null, or a mob to notify after the unload is completed.java.lang.String getRPProficiencyStr(int proficiency)
proficiency
- the proficiency value 0-100boolean isPlayerSkill(java.lang.String helpStr)
helpStr
- the possible skill keyvoid addHelpEntry(java.lang.String ID, java.lang.String text, boolean archon)
ID
- the key of the help entrytext
- the full text of the help entryarchon
- true to add to archon ahelp entries, false for normaljava.lang.String getActualAbilityUsageDesc(Ability A, int whichUsageCode, MOB forM)
A
- the Ability to find usage forwhichUsageCode
- the Ability.USAGE_ code.forM
- null, or a mob to make the report more specificAbility.USAGE_DESCS
java.lang.String getAbilityTargetDesc(Ability A)
A
- the Ability in questionjava.lang.String getAbilityQualityDesc(Ability A)
A
- the Ability in questionjava.lang.String getAbilityRangeDesc(Ability A)
A
- the Ability in question