|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Language
A Language ability represents both the ability to understand one or more spoken or written languages, and the ability to speak one or more spoken languages. A single ability usually represents a single language, but may support multiple simultaneously.
Field Summary |
---|
Method Summary | |
---|---|
boolean |
beingSpoken(java.lang.String language)
Returns whether this language is currently being spoken |
int |
getProficiency(java.lang.String language)
Returns the understanding profficiency in the given supported language |
java.util.List<java.lang.String> |
languagesSupported()
Returns a list of the languages understood by this ability |
void |
setBeingSpoken(java.lang.String language,
boolean beingSpoken)
Changes whether this language is currently being spoken |
java.lang.String |
translate(java.lang.String language,
java.lang.String word)
Returns a language translation of the given word in the given language |
boolean |
translatesLanguage(java.lang.String language)
Returns whether the given language is translated by this one |
java.util.Map<java.lang.String,java.lang.String> |
translationHash(java.lang.String language)
Returns the direct word to word translation hashtable |
java.util.List<java.lang.String[]> |
translationLists(java.lang.String language)
Returns the word-length rough-translation vector of string arrays for the given language The first string array in the vector represents 1 letter words, the second 2, and so forth. |
java.lang.String |
writtenName()
Returns the name of this language when it is in written form. |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Ability |
---|
abilityCode, abstractQuality, accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingCost, classificationCode, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, unInvoke, usageCost, usageType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name, tick |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Method Detail |
---|
java.lang.String writtenName()
java.util.List<java.lang.String> languagesSupported()
boolean translatesLanguage(java.lang.String language)
language
- the language to test
int getProficiency(java.lang.String language)
language
- the language to test for (usually ID())
boolean beingSpoken(java.lang.String language)
language
- the language to test for (usually ID())
void setBeingSpoken(java.lang.String language, boolean beingSpoken)
language
- the language to set (usually ID())beingSpoken
- whether it is being spokenjava.util.Map<java.lang.String,java.lang.String> translationHash(java.lang.String language)
language
- the language to translate directory (usually ID())
java.util.List<java.lang.String[]> translationLists(java.lang.String language)
language
- the language to return the vector for (usually ID())
java.lang.String translate(java.lang.String language, java.lang.String word)
language
- the language to use (usually ID())word
- the word to translate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |