|
|||||||||
| 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.Languages.StdLanguage
public class StdLanguage
| Field Summary | |
|---|---|
protected boolean |
spoken
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
|---|
affected, amDestroyed, canBeUninvoked, empty, expertise, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
| Constructor Summary | |
|---|---|
StdLanguage()
|
|
| 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 int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canBeLearnedBy(MOB teacher,
MOB student)
Returns whether the given student mob is able and allowed to learn this skill from the given teacher. |
boolean |
canBeUninvoked()
Whether this skill is allowed to be uninvoked. |
protected int |
canTargetCode()
Designates whether, when invoked as a skill, what sort of objects this ability can effectively target. |
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 char |
fixCase(char like,
char make)
|
protected java.lang.String |
fixCase(java.lang.String like,
java.lang.String make)
|
protected Language |
getAnyTranslator(java.lang.String id,
MOB mob)
|
protected Language |
getMyTranslator(java.lang.String id,
Physical P,
Language winner)
|
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. |
protected int |
iniPracticesRequired()
|
protected int |
iniTrainsRequired()
|
boolean |
invoke(MOB mob,
java.util.Vector commands,
Physical givenTarget,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
boolean |
isAutoInvoked()
An autoinvocating ability is an ability which affects the mob just by having learned the ability. |
java.util.List<java.lang.String> |
languagesSupported()
Returns a Vector of the languages understood by this ability |
java.lang.String |
messChars(java.lang.String language,
java.lang.String words,
int numToMess)
|
java.lang.String |
name()
The displayable name of this object. |
protected int |
numChars(java.lang.String words)
|
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected boolean |
processNonSourceMessages(CMMsg msg,
java.lang.String str,
int numToMess)
|
protected boolean |
processSourceMessage(CMMsg msg,
java.lang.String str,
int numToMess)
|
java.lang.String |
scrambleAll(java.lang.String language,
java.lang.String str,
int numToMess)
|
void |
setBeingSpoken(java.lang.String language,
boolean beingSpoken)
Changes whether this language is currently being spoken |
void |
teach(MOB teacher,
MOB student)
Teaches this skill to the student mob, presumably from the teacher mob. |
java.lang.String |
translate(java.lang.String language,
java.lang.String word)
Returns a language translation of the given word in the given language |
protected boolean |
translateChannelMessage(CMMsg msg,
java.lang.String sourceWords)
|
protected boolean |
translateOthersMessage(CMMsg msg,
java.lang.String sourceWords)
|
boolean |
translatesLanguage(java.lang.String language)
Returns whether the given language is translated by this one |
protected boolean |
translateTargetMessage(CMMsg msg,
java.lang.String sourceWords)
|
java.util.Map<java.lang.String,java.lang.String> |
translationHash(java.lang.String language)
Returns the direct word<->word translation hashtable |
java.util.List<java.lang.String[]> |
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. |
java.lang.String[] |
triggerStrings()
A set of the command strings the user types to access this command when it is listed as a skill ability. |
protected boolean |
tryLinguisticWriting(CMMsg msg)
|
java.lang.String |
writtenName()
Returns the name of this language when it is in written form. |
| 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, canBePracticedBy, canBeTaughtBy, canTarget, canTarget, castingQuality, castingTime, checkedCastingTime, clearExpertiseCache, combatCastingTime, enchantQuality, externalFiles, flags, getTicksBetweenCasts, helpProficiency, invoke, invoker, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, practicesRequired, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, setSavable, startTickDown, trainsRequired, unInvoke, usageCost, usageType |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, expirationDate, image, isGeneric, 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, 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.Contingent |
|---|
amDestroyed, destroy, isSavable |
| 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 boolean spoken
| Constructor Detail |
|---|
public StdLanguage()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdAbilitypublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class StdAbilityEnvironmental.Name()public java.lang.String writtenName()
Language
writtenName in interface Languagepublic java.lang.String[] triggerStrings()
Ability
triggerStrings in interface AbilitytriggerStrings in class StdAbilityAbility.putInCommandlist()public int abstractQuality()
Ability
abstractQuality in interface AbilityabstractQuality in class StdAbilityAbilityprotected int canAffectCode()
StdAbility
canAffectCode in class StdAbilityAbilityprotected int canTargetCode()
StdAbility
canTargetCode in class StdAbilityAbilitypublic boolean isAutoInvoked()
Ability
isAutoInvoked in interface AbilityisAutoInvoked in class StdAbilitypublic boolean canBeUninvoked()
Ability
canBeUninvoked in interface AbilitycanBeUninvoked in class StdAbilityAbility.makeNonUninvokable()protected int iniTrainsRequired()
iniTrainsRequired in class StdAbilityprotected int iniPracticesRequired()
iniPracticesRequired in class StdAbilitypublic int classificationCode()
Ability
classificationCode in interface AbilityclassificationCode in class StdAbilityAbilitypublic 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[]> translationVector(java.lang.String language)
Language
translationVector in interface Languagelanguage - the language to return the vector for (usually ID())
public java.util.List<java.lang.String> 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 java.lang.String displayText()
Environmental
displayText in interface EnvironmentaldisplayText in class StdAbility
protected java.lang.String fixCase(java.lang.String like,
java.lang.String make)
protected char fixCase(char like,
char make)
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
protected int numChars(java.lang.String words)
public java.lang.String messChars(java.lang.String language,
java.lang.String words,
int numToMess)
public java.lang.String scrambleAll(java.lang.String language,
java.lang.String str,
int numToMess)
protected Language getMyTranslator(java.lang.String id,
Physical P,
Language winner)
protected Language getAnyTranslator(java.lang.String id,
MOB mob)
protected boolean processSourceMessage(CMMsg msg,
java.lang.String str,
int numToMess)
protected boolean processNonSourceMessages(CMMsg msg,
java.lang.String str,
int numToMess)
protected boolean tryLinguisticWriting(CMMsg msg)
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()
public boolean canBeLearnedBy(MOB teacher,
MOB student)
Ability
canBeLearnedBy in interface AbilitycanBeLearnedBy in class StdAbilityteacher - the potential teacher of this skillstudent - the potential learner of this skill
Ability.canBeTaughtBy(MOB, MOB),
Ability.teach(MOB, MOB)
public void teach(MOB teacher,
MOB student)
Ability
teach in interface Abilityteach in class StdAbilityteacher - the teacher of this skillstudent - the learner of this skillAbility.canBeTaughtBy(MOB, MOB),
Ability.canBeLearnedBy(MOB, MOB)
public boolean invoke(MOB mob,
java.util.Vector commands,
Physical givenTarget,
boolean auto,
int asLevel)
Ability
invoke in interface Abilityinvoke in class StdAbilitymob - 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.
protected boolean translateOthersMessage(CMMsg msg,
java.lang.String sourceWords)
protected boolean translateTargetMessage(CMMsg msg,
java.lang.String sourceWords)
protected boolean translateChannelMessage(CMMsg msg,
java.lang.String sourceWords)
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||