|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.Properties.Property
com.planet_ink.coffee_mud.Abilities.Properties.Prop_LangTranslator
public class Prop_LangTranslator
| Field Summary | |
|---|---|
protected DVector |
langs
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.Properties.Property |
|---|
affected, amDestroyed, empty, envStats, miscText, savable |
| Constructor Summary | |
|---|---|
Prop_LangTranslator()
|
|
| Method Summary | |
|---|---|
int |
abstractQuality()
Returns a constant value notifying the system of the general quality of the skill, whether it is malicious, beneficial, indifferent, or qualifiably beneficial (ok), as well as whether it is intended to target the invoker (self) or others. |
java.lang.String |
accountForYourself()
For use by the identify spell, this should return a nice description of any properties incorporated by this effect. |
boolean |
beingSpoken(java.lang.String language)
Returns whether this language is currently being spoken |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
int |
getProficiency(java.lang.String language)
Returns the understanding profficiency in the given supported language |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.util.Vector |
languagesSupported()
Returns a Vector of the languages understood by this ability |
java.lang.String |
name()
The displayable name of this object. |
void |
setBeingSpoken(java.lang.String language,
boolean beingSpoken)
Changes whether this language is currently being spoken |
void |
setMiscText(java.lang.String text)
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
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.Hashtable |
translationHash(java.lang.String language)
Returns the direct word<->word translation hashtable |
java.util.Vector |
translationVector(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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Ability |
|---|
abilityCode, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, classificationCode, combatCastingTime, enchantQuality, externalFiles, flags, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, practicesRequired, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, setSavable, startTickDown, teach, trainsRequired, triggerStrings, unInvoke, usageCost, usageType |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, destroy, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, setDescription, setDisplayText, setExpirationDate, setImage, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts |
| Field Detail |
|---|
protected DVector langs
| Constructor Detail |
|---|
public Prop_LangTranslator()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class Propertypublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class PropertyEnvironmental.Name()public int abstractQuality()
Ability
abstractQuality in interface AbilityabstractQuality in class PropertyAbilityprotected int canAffectCode()
Property
canAffectCode in class PropertyAbilitypublic java.lang.String accountForYourself()
Ability
accountForYourself in interface AbilityaccountForYourself in class Propertypublic void setMiscText(java.lang.String text)
Environmental
setMiscText in interface EnvironmentalsetMiscText in class Propertytext - either an open internal text string, or XMLpublic java.util.Vector languagesSupported()
Language
languagesSupported in interface Languagepublic boolean translatesLanguage(java.lang.String language)
Language
translatesLanguage in interface Languagepublic int getProficiency(java.lang.String language)
Language
getProficiency in interface Languagelanguage - the language to test for (usually ID())
public boolean beingSpoken(java.lang.String language)
Language
beingSpoken in interface Languagelanguage - the language to test for (usually ID())
public void setBeingSpoken(java.lang.String language,
boolean beingSpoken)
Language
setBeingSpoken in interface Languagelanguage - the language to set (usually ID())beingSpoken - whether it is being spokenpublic java.util.Hashtable translationHash(java.lang.String language)
Language
translationHash in interface Languagelanguage - the language to translate directory (usually ID())
public java.util.Vector translationVector(java.lang.String language)
Language
translationVector in interface Languagelanguage - the language to return the vector for (usually ID())
public java.lang.String translate(java.lang.String language,
java.lang.String word)
Language
translate in interface Languagelanguage - the language to use (usually ID())word - the word to translate
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class PropertymyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||