|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.StdAbility
com.planet_ink.coffee_mud.Abilities.Druid.Chant
com.planet_ink.coffee_mud.Abilities.Druid.Chant_SpeakWithAnimals
public class Chant_SpeakWithAnimals
| Field Summary | |
|---|---|
protected static CharStats |
charStats
|
protected java.util.WeakHashMap<MOB,Behavior> |
mudChatters
|
protected java.util.Map<java.lang.String,Language> |
myLanguages
|
protected static java.util.Map<java.lang.String,java.lang.Boolean> |
raceIDs
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.Druid.Chant |
|---|
renderedMundane, WEATHERQUE_CALM, WEATHERQUE_COLD, WEATHERQUE_HOT, WEATHERQUE_NADA, WEATHERQUE_RAIN, WEATHERQUE_WIND |
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
|---|
affected, amDestroyed, canBeUninvoked, empty, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
| Constructor Summary | |
|---|---|
Chant_SpeakWithAnimals()
|
|
| 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. |
boolean |
beingSpoken(java.lang.String language)
Returns whether this language is currently being spoken |
protected boolean |
canSpeakWithThis(MOB mob)
|
protected boolean |
canSpeakWithThis(MOB mob,
Ability L)
|
protected java.lang.String |
canSpeakWithWhat()
|
protected java.lang.String |
canSpeakWithWhatNoun()
|
int |
classificationCode()
Returns a bitmap describing the general classification of the skill (spell, skill, chant, or property, etc) and its domain. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
protected Language |
getAnimalSpeak(MOB M)
|
protected Behavior |
getMudChat(MOB M)
|
protected Language |
getMyAnimalSpeak(MOB M,
java.lang.String ID)
|
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. |
boolean |
invoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
java.util.List<java.lang.String> |
languagesSupported()
Returns a list of the languages understood by this ability |
java.lang.String |
name()
The nice displayable name of this instance of this object |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected void |
sayYouAreDone(MOB mob)
|
void |
setBeingSpoken(java.lang.String language,
boolean beingSpoken)
Changes whether this language is currently being spoken |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
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. |
void |
unInvoke()
If this skill is uninvokable, this method will uninvoke it, remove it as an effect on the target, and shut it down. |
java.lang.String |
writtenName()
Returns the name of this language when it is in written form. |
| Methods inherited from class com.planet_ink.coffee_mud.Abilities.Druid.Chant |
|---|
canAffectCode, canTargetCode, chantAlignmentCheck, setMiscText, triggerStrings, verbalCastCode, weatherQue |
| 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.Abilities.interfaces.Ability |
|---|
abilityCode, accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingCost, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, usageCost, usageType |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, 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 |
| 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.Contingent |
|---|
amDestroyed, destroy, isSavable, setSavable |
| 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.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
protected static CharStats charStats
protected static java.util.Map<java.lang.String,java.lang.Boolean> raceIDs
protected java.util.WeakHashMap<MOB,Behavior> mudChatters
protected java.util.Map<java.lang.String,Language> myLanguages
| Constructor Detail |
|---|
public Chant_SpeakWithAnimals()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class Chantpublic java.lang.String name()
Tickable
name in interface CMObjectname in interface Tickablename in class ChantEnvironmental.Name()public java.lang.String displayText()
Environmental
displayText in interface EnvironmentaldisplayText in class Chantpublic int abstractQuality()
Ability
abstractQuality in interface AbilityabstractQuality in class ChantAbilitypublic int classificationCode()
Ability
classificationCode in interface AbilityclassificationCode in class ChantAbilityprotected void sayYouAreDone(MOB mob)
public void unInvoke()
Ability
unInvoke in interface AbilityunInvoke in class StdAbilityAbility.canBeUninvoked()
protected boolean canSpeakWithThis(MOB mob,
Ability L)
protected boolean canSpeakWithThis(MOB mob)
protected Language getMyAnimalSpeak(MOB M,
java.lang.String ID)
protected Language getAnimalSpeak(MOB M)
protected Behavior getMudChat(MOB M)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickabletick in class StdAbilityticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGroup
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdAbilitymyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdAbilitymyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()protected java.lang.String canSpeakWithWhat()
protected java.lang.String canSpeakWithWhatNoun()
public boolean invoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
boolean auto,
int asLevel)
Ability
invoke in interface Abilityinvoke in class Chantmob - the player or mob invoking the skillcommands - the parameters entered for the skill (minus trigger word)givenTarget - null, unless being auto-invoked. Represents an override target.auto - false if player enters command, true if system invokes the commandasLevel - -1, unless being auto-invoked, when it is the level to invoke it at.
public java.lang.String writtenName()
Language
writtenName in interface Languagepublic java.util.List<java.lang.String> languagesSupported()
Language
languagesSupported in interface Languagepublic boolean translatesLanguage(java.lang.String language)
Language
translatesLanguage in interface Languagelanguage - the language to test
public 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.Map<java.lang.String,java.lang.String> translationHash(java.lang.String language)
Language
translationHash in interface Languagelanguage - the language to translate directory (usually ID())
public java.util.List<java.lang.String[]> translationLists(java.lang.String language)
Language
translationLists 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||