java.lang.Cloneable, CMCommon, CMObject, java.lang.Comparable<CMObject>, Contingent, MsgListenerDefaultFactionpublic interface Faction extends CMCommon, MsgListener, Contingent
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Faction.Align |
legacy enumerator constant for
Faction.FRange.alignEquiv() denoting that the range does not reflect alignment |
static interface |
Faction.FAbilityUsage |
A Faction Ability Usage object represents a set of criterium that can be used
to determine whether this faction allows a mob or player to use a particular
ability, or class of abilities.
|
static class |
Faction.FacTag |
Faction Tags are the named parameter keys found in
faction ini files, which are used to define the
faction.
|
static interface |
Faction.FactionChangeEvent |
A Faction Change Event is an event that triggers an automatic change in
a mob or players faction value.
|
static interface |
Faction.FData |
A FactionData object is stored inside other objects that keep track
of their own faction.
|
static interface |
Faction.FRange |
The foundation of any Faction, the Faction Range represents a range of values that constitutes
a single named group of numeric values for the faction.
|
static interface |
Faction.FReactionItem |
Adds very temporary affects and behaviors to mobs who match the reaction zapper
mask, and who are in the same room as someone with standing in this faction.
|
static interface |
Faction.FZapFactor |
A factor defines how modifications of faction value, up or down, are modified on a
mob by mob basis.
|
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String[] |
EXPAFFECT_DESCS |
String descriptions for the valid
experienceFlag() constants |
static java.lang.String[] |
EXPAFFECT_NAMES |
String list for the valid
experienceFlag() constants |
static long |
IFLAG_CUSTOMTICK |
internal flag masks meaning to skip normal ticking, retrieved by
getInternalFlags() |
static long |
IFLAG_IGNOREAUTO |
internal flag masks meaning to skip standard auto system, retrieved by
getInternalFlags() |
static long |
IFLAG_NEVERSAVE |
internal flag masks meaning to never save to a file, retrieved by
getInternalFlags() |
idConverter| Modifier and Type | Method | Description |
|---|---|---|
java.util.Enumeration<Faction.FAbilityUsage> |
abilityUsages() |
Returns an enumeration of Faction.FactionAbilityUsage objects for this Faction.
|
Faction.FAbilityUsage |
addAbilityUsage(java.lang.String key) |
Adds a new Faction.FactionAbilityUsage object to this Faction based on the
given definitional key.
|
boolean |
addAffectBehav(java.lang.String ID,
java.lang.String parms,
java.lang.String gainMask) |
Adds a new Ability or Behavior to this Faction.
|
Faction.FZapFactor |
addFactor(double gain,
double loss,
java.lang.String mask) |
Adds a new change factor to this Faction.
|
Faction.FRange |
addRange(java.lang.String key) |
Adds a new Faction.FactionRange object to this faction using an encoded key.
|
boolean |
addReaction(java.lang.String range,
java.lang.String mask,
java.lang.String abilityID,
java.lang.String parms) |
Adds a new reaction to this faction.
|
boolean |
addRelation(java.lang.String factionID,
double relation) |
Adds a new faction relation factor to this faction.
|
java.util.Enumeration<java.lang.String> |
affectsBehavs() |
Returns an enumeration of Abilities or Behavior IDs that are
automatically but conditionally added to mobs (not players) with this faction.
|
java.lang.String |
ALL_CHANGE_EVENT_TYPES() |
Computed completed at runtime, this method returns all possible valid FactionChangeEvent
event ids that can be used to define triggers.
|
int |
asPercent(int faction) |
Returns the given faction value, as a percent from minimum of the range
of this faction
|
int |
asPercentFromAvg(int faction) |
Returns the given value faction value, as a percent from average of the
range values of this faction.
|
java.util.Enumeration<Pair<java.lang.Integer,java.lang.String>> |
autoDefaults() |
Returns the automatic default faction mask/value list, which is
possibly applied whenever a mob or player is brought to life for
the first time.
|
boolean |
canUse(MOB mob,
Ability A) |
Returns whether the given player/mob is prevented from using the given Ability
based on any of the Faction.FactionAbilityUsage (faction ability usage)
criterium defined for this Faction.
|
java.util.Enumeration<java.lang.String> |
changeEventKeys() |
Returns an enumeration of change event keys, which are the code names of
the triggers that cause faction values to change automatically.
|
java.lang.String |
choiceIntro() |
Gets the filename of a file, from the resources directory,
that is displayed to users when they are given the choice
of a starting value to this faction.
|
java.util.Enumeration<Pair<java.lang.Integer,java.lang.String>> |
choices() |
Returns the player choosable faction mask/value list, which is
possibly presented whenever a player creates a new character.
|
void |
clearChangeEvents() |
Removes all FactionChangeEvents
|
Faction.FactionChangeEvent |
createChangeEvent(java.lang.String eventKey,
java.lang.String eventData) |
Adds a new FactionChangeEvent object to this faction using the given event code
name, or fully encoded event string.
|
java.util.Enumeration<Pair<java.lang.Integer,java.lang.String>> |
defaults() |
Returns the default faction mask/value list, which is applied whenever
a Faction Change Event applies a Faction Add command.
|
boolean |
delAbilityUsage(Faction.FAbilityUsage usage) |
Removes the given Faction.FactionAbilityUsage object from this faction
|
boolean |
delAffectBehav(java.lang.String ID) |
Removes the given ability or behavior from this Faction.
|
boolean |
delChangeEvent(Faction.FactionChangeEvent event) |
Removes a FactionChangeEvent of the given event (trigger) id.
|
boolean |
delFactor(Faction.FZapFactor f) |
Removes the given change factor from this faction.
|
boolean |
delRange(Faction.FRange FR) |
Removes the given FactionRange object from the faction.
|
boolean |
delReaction(Faction.FReactionItem item) |
Removes the given reaction from this Faction.
|
boolean |
delRelation(java.lang.String factionID) |
Removes the give faction relation from this faction.
|
int |
difference() |
Returns the difference between the highest and lowest range value
|
void |
disable(boolean truefalse) |
Disables this faction, as if it had been added to the DISABLE= entry in the
coffeemud.ini file.
|
void |
executeChange(MOB source,
MOB target,
Faction.FactionChangeEvent event) |
Executes a Faction change event for the given event source and target, and the
applicable FactionChangeEvent event object for this faction
|
java.lang.String |
experienceFlag() |
Returns the string code describing how a faction-holders experience
changes from killing another faction holder affect his own faction value.
|
java.lang.String |
factionID() |
The official, unique faction id of this faction.
|
java.util.Enumeration<Faction.FZapFactor> |
factors() |
Returns an enumeration of Object arrays referring to a factor to multiply
times the base amount (100) of faction change (up or down) for particular
mobs who match a given Zapper mask.
|
Faction.FRange |
fetchRange(int faction) |
Returns the Faction.FactionRange object that applies to the given faction
value.
|
Faction.FRange |
fetchRange(java.lang.String codeName) |
Returns the Faction.FactionRange object that applies to
the given faction range code name.
|
java.lang.String |
fetchRangeName(int faction) |
Returns the name of the Faction.FactionRange object that applies to
the given faction value.
|
Faction.FactionChangeEvent[] |
findAbilityChangeEvents(Ability key) |
Returns a FactionChangeEvent that applies when the given Ability is used
|
int |
findAutoDefault(MOB mob) |
Returns the automatic default faction value that applies to the
given mob.
|
java.util.List<java.lang.Integer> |
findChoices(MOB mob) |
Returns a vector of Integer objects representing the choosable
faction values available to the given mob when they create
a new character.
|
int |
findDefault(MOB mob) |
Returns the default faction value that applies to the given mob.
|
double |
findFactor(MOB mob,
boolean gain) |
Returns the applicable change factor for the given mob, and the
whether the faction change was a gain or loss (not a gain).
|
Faction.FactionChangeEvent[] |
findMsgChangeEvents(CMMsg msg) |
Returns a FactionChangeEvent that applies when the given message type is seen
|
Faction.FactionChangeEvent[] |
findSocialChangeEvents(Social soc) |
Returns a FactionChangeEvent that applies when the given Social is used
|
Faction.FAbilityUsage |
getAbilityUsage(int x) |
Returns the enumerated Faction.FactionAbilityUsage object at the given index.
|
java.lang.String[] |
getAffectBehav(java.lang.String ID) |
Returns a string array containing the parms at index 0, and the gainMask at 1.
|
Faction.FactionChangeEvent[] |
getChangeEvents(java.lang.String eventID) |
Returns a FactionChangeEvent that applies when the given event name (a trigger
code) occurs in the game.
|
Faction.FZapFactor |
getFactor(int x) |
Returns the given enumerated change factor
|
java.lang.String |
getINIDef(java.lang.String tag,
java.lang.String delimeter) |
Retrieves an entry for an ini properties definition document that describes this faction.
|
long |
getInternalFlags() |
Return the bitmap of internal-use flags for this faction.
|
double |
getRelation(java.lang.String factionID) |
Returns the relation factor of the given faction id.
|
java.lang.String |
getTagValue(java.lang.String tag) |
Returns the value of a given internal faction variable.
|
boolean |
hasFaction(MOB mob) |
Checks to see if the given mob has this faction.
|
boolean |
hasUsage(Ability A) |
Returns whether any of the Faction.FactionAbilityUsage objects for this Faction
apply to the given ability.
|
void |
initializeFaction(java.lang.String aname) |
Initializes a new faction with default values
|
void |
initializeFaction(java.lang.StringBuffer file,
java.lang.String fID) |
Initializes a new faction from a faction.ini properties formatted document,
and a given new faction ID
|
boolean |
isDisabled() |
Returns true if this faction is presently specified in the coffeemud ini
file entry "DISABLE", thereby designating that this faction is currently
disabled.
|
boolean |
isInheritable() |
Returns true if this faction is inheritable by children.
|
boolean |
isPreLoaded() |
Returns true if this faction is presently specified in the coffeemud ini
file entry "FACTIONS", thereby designating that this faction is loaded at
boot-time, as opposed to run-time.
|
Faction.FData |
makeFactionData(MOB mob) |
Returns a FactionData object for the given mob to store his faction
information in.
|
int |
maximum() |
Returns the highest absolute range value
|
int |
middle() |
Gets the median absolute range value
|
int |
minimum() |
Gets the lowest absolute range value
|
java.lang.String |
name() |
The friendly, displayable name of this faction.
|
int |
randomFaction() |
Returns a random value within the valid range of this faction
|
java.util.Enumeration<Faction.FRange> |
ranges() |
Returns an enumeration of all available Faction.FactionRange objects,
representing the entire score of available values valid for this faction.
|
double |
rateModifier() |
A modifier of the base amount of faction value change, namely 100.
|
java.util.Enumeration<Faction.FReactionItem> |
reactions() |
Returns an enumeration of Faction.FactionReaction items associated
with this faction.
|
java.util.Enumeration<Faction.FReactionItem> |
reactions(java.lang.String rangeCode) |
Returns an enumeration of Faction.FactionReaction items associated
with this faction and the given range code.
|
java.util.Enumeration<java.lang.String> |
relationFactions() |
Returns an enumeration of faction ids (of other factions) that are
automatically changed, up or down, when this faction changes.
|
void |
setAutoDefaults(java.util.List<java.lang.String> v) |
Sets the automatic default faction mask/value list, which is
possibly applied whenever a mob or player is brought to life for
the first time.
|
void |
setChoiceIntro(java.lang.String newStr) |
Sets the filename of a file, from the resources directory,
that is displayed to users when they are given the choice
of a starting value to this faction.
|
void |
setChoices(java.util.List<java.lang.String> v) |
Sets the player choosable faction mask/value list, which is
possibly presented whenever a player creates a new character.
|
void |
setDefaults(java.util.List<java.lang.String> v) |
Sets the default faction mask/value list, which is applied whenever
a Faction Change Event applies a Faction Add command.
|
void |
setExperienceFlag(java.lang.String newStr) |
Sets the string code describing how a faction-holders experience
changes from killing another faction holder affect his own faction value.
|
void |
setFactionID(java.lang.String newStr) |
Sets the official, unique faction id of this faction.
|
void |
setInherited(boolean truefalse) |
Sets whether this faction is inheritable by children.
|
void |
setInternalFlags(long bitmap) |
Set the bitmap of internal-use flags for this faction.
|
void |
setLightReactions(boolean truefalse) |
Set this faction to use the light-reaction system, which is easier on resources, but
not as powerful.
|
void |
setName(java.lang.String newStr) |
Sets the friendly, displayable name of this faction.
|
void |
setRateModifier(double d) |
Sets the modifier of the base amount of faction value change, namely 100.
|
void |
setShowInEditor(boolean truefalse) |
Sets whether this factions value is shown as a line item in mob editors
|
void |
setShowInFactionsCommand(boolean truefalse) |
Sets whether this factions value is shown in player Factions command
|
void |
setShowInScore(boolean truefalse) |
Sets whether this faction is displayed in the player Score command.
|
void |
setShowInSpecialReported(boolean truefalse) |
Sets whether this factions value is shown in certain special admins commands.
|
boolean |
showInEditor() |
Returns whether this factions value is shown as a line item in mob editors
|
boolean |
showInFactionsCommand() |
Returns whether this factions value is shown in player Factions command
|
boolean |
showInScore() |
Returns whether this faction is displayed in the player Score command.
|
boolean |
showInSpecialReported() |
Returns whether this factions value is shown in certain special admins commands.
|
void |
updateFactionData(MOB mob,
Faction.FData data) |
Updates the given FactionData object that the given mob to store his faction
information in.
|
java.lang.String |
upperName() |
Returns the full-uppercase version of the faction name, which
might be useful for key-ing and searches.
|
java.lang.String |
usageFactorRangeDescription(Ability A) |
Returns the list of faction ranges that apply based on Faction.FactionAbilityUsage
usage factor that apply to the given ability.
|
boolean |
useLightReactions() |
Return whether this faction uses the light-reaction system, which is easier on resources, but
not as powerful.
|
copyOf, ID, initializeClass, newInstanceamDestroyed, destroy, isSavable, setSavableexecuteMsg, okMessagestatic final long IFLAG_IGNOREAUTO
getInternalFlags()static final long IFLAG_NEVERSAVE
getInternalFlags()static final long IFLAG_CUSTOMTICK
getInternalFlags()static final java.lang.String[] EXPAFFECT_NAMES
experienceFlag() constantsstatic final java.lang.String[] EXPAFFECT_DESCS
experienceFlag() constantsvoid initializeFaction(java.lang.String aname)
aname - the factionID (and default name)initializeFaction(StringBuffer, String),
factionID()java.lang.String upperName()
void initializeFaction(java.lang.StringBuffer file,
java.lang.String fID)
file - the ini properties style documentfID - the new factionIDinitializeFaction(String),
factionID(),
getINIDef(String, String)java.lang.String getTagValue(java.lang.String tag)
tag - the tag to get the value ofjava.lang.String getINIDef(java.lang.String tag,
java.lang.String delimeter)
tag - the tag to retrieve a properties definition fordelimeter - if the tag represents a list, this is the delimiter for entries.getINIDef(String, String),
initializeFaction(StringBuffer, String)Faction.FData makeFactionData(MOB mob)
mob - the mob to generate affects and behaviors forFaction.FDatavoid updateFactionData(MOB mob, Faction.FData data)
mob - the mob to generate affects and behaviors fordata - the old faction data objectFaction.FDataboolean hasFaction(MOB mob)
mob - the mob to checkint asPercent(int faction)
faction - the faction value to convert to a percentboolean isPreLoaded()
boolean isDisabled()
disable(boolean)void disable(boolean truefalse)
isDisabled()truefalse - disable true to disable, false otherwiseint asPercentFromAvg(int faction)
faction - the faction value to convert to a percentint randomFaction()
java.lang.String factionID()
setFactionID(String)void setFactionID(java.lang.String newStr)
newStr - the new unique id of this factionfactionID()java.lang.String name()
name in interface CMObjectsetName(String)void setName(java.lang.String newStr)
newStr - the new name of this factionname()java.lang.String choiceIntro()
findChoices(MOB)void setChoiceIntro(java.lang.String newStr)
newStr - the new filename of the choice description filefindChoices(MOB)int minimum()
int middle()
int difference()
int maximum()
java.lang.String experienceFlag()
EXPAFFECT_NAMES,
EXPAFFECT_DESCSvoid setExperienceFlag(java.lang.String newStr)
newStr - the new string code for xp changes to faction changesEXPAFFECT_NAMES,
EXPAFFECT_DESCSboolean showInScore()
void setShowInScore(boolean truefalse)
truefalse - true if displayed in Score, false otherwiseboolean isInheritable()
void setInherited(boolean truefalse)
truefalse - true if its inheritable, false otherwiseboolean showInSpecialReported()
void setShowInSpecialReported(boolean truefalse)
truefalse - true if displayed in special admin commands, false otherwiseboolean showInEditor()
void setShowInEditor(boolean truefalse)
truefalse - true if displayed in mob editors, false otherwiseboolean showInFactionsCommand()
void setShowInFactionsCommand(boolean truefalse)
truefalse - true if displayed in factions command, false otherwisejava.util.Enumeration<Pair<java.lang.Integer,java.lang.String>> defaults()
changeEventKeys(),
setDefaults(List),
MaskingLibraryint findDefault(MOB mob)
mob - the mob to find a default faction value fordefaults()void setDefaults(java.util.List<java.lang.String> v)
v - the new default faction mask/value listchangeEventKeys(),
MaskingLibrary,
defaults()java.util.Enumeration<Pair<java.lang.Integer,java.lang.String>> autoDefaults()
MaskingLibrary,
setAutoDefaults(List)int findAutoDefault(MOB mob)
mob - the mob to find a default value of this faction for.defaults()void setAutoDefaults(java.util.List<java.lang.String> v)
v - the new automatic default faction mask/value listdefaults(),
MaskingLibrarydouble rateModifier()
setRateModifier(double)void setRateModifier(double d)
d - the new modifier of the base amount of faction value changerateModifier()java.util.Enumeration<Pair<java.lang.Integer,java.lang.String>> choices()
MaskingLibrary,
setChoices(List)java.util.List<java.lang.Integer> findChoices(MOB mob)
mob - the player mob to evaluatechoices()void setChoices(java.util.List<java.lang.String> v)
v - the list of choosable faction mask/valuesMaskingLibrary,
choices()java.util.Enumeration<Faction.FRange> ranges()
addRange(String),
delRange(com.planet_ink.coffee_mud.Common.interfaces.Faction.FRange),
Faction.FRangeFaction.FRange fetchRange(int faction)
faction - the value to find a matching range object forFaction.FRange,
ranges()java.lang.String fetchRangeName(int faction)
faction - the value to find a matching range object forranges()Faction.FRange addRange(java.lang.String key)
key - the encoded values for the new faction rangeFaction.FRange,
ranges()boolean delRange(Faction.FRange FR)
FR - the faction range object to removeFaction.FRange,
ranges()Faction.FRange fetchRange(java.lang.String codeName)
codeName - the code name to find a matching range object forranges(),
Faction.FRange.codeName()java.util.Enumeration<java.lang.String> changeEventKeys()
Faction.FactionChangeEvent,
createChangeEvent(String eventKey, String eventData),
delChangeEvent(Faction.FactionChangeEvent event),
ALL_CHANGE_EVENT_TYPES(),
executeChange(MOB, MOB, com.planet_ink.coffee_mud.Common.interfaces.Faction.FactionChangeEvent)Faction.FactionChangeEvent[] findAbilityChangeEvents(Ability key)
key - the Ability to find a change event for.Faction.FactionChangeEvent,
changeEventKeys(),
executeChange(MOB, MOB, com.planet_ink.coffee_mud.Common.interfaces.Faction.FactionChangeEvent),
ALL_CHANGE_EVENT_TYPES()Faction.FactionChangeEvent[] findMsgChangeEvents(CMMsg msg)
msg - the CMMsg object whose source code mattersFaction.FactionChangeEvent,
changeEventKeys(),
executeChange(MOB, MOB, com.planet_ink.coffee_mud.Common.interfaces.Faction.FactionChangeEvent),
ALL_CHANGE_EVENT_TYPES()Faction.FactionChangeEvent[] findSocialChangeEvents(Social soc)
soc - the Social to find a change event for.Faction.FactionChangeEvent,
changeEventKeys(),
executeChange(MOB, MOB, com.planet_ink.coffee_mud.Common.interfaces.Faction.FactionChangeEvent),
ALL_CHANGE_EVENT_TYPES()Faction.FactionChangeEvent[] getChangeEvents(java.lang.String eventID)
eventID - the code name of the event that occurredFaction.FactionChangeEvent,
changeEventKeys(),
Faction.FactionChangeEvent.miscEvent(),
executeChange(MOB, MOB, com.planet_ink.coffee_mud.Common.interfaces.Faction.FactionChangeEvent),
ALL_CHANGE_EVENT_TYPES()Faction.FactionChangeEvent createChangeEvent(java.lang.String eventKey, java.lang.String eventData)
eventKey - the faction event keyeventData - the field used to create the new FactionChangeEventFaction.FactionChangeEvent,
changeEventKeys(),
Faction.FactionChangeEvent.miscEvent(),
ALL_CHANGE_EVENT_TYPES()boolean delChangeEvent(Faction.FactionChangeEvent event)
event - the event object to remove from the list of change eventsFaction.FactionChangeEvent,
changeEventKeys(),
Faction.FactionChangeEvent.miscEvent(),
ALL_CHANGE_EVENT_TYPES()void clearChangeEvents()
void executeChange(MOB source, MOB target, Faction.FactionChangeEvent event)
source - the source of the eventtarget - the target of the eventevent - the applicable event object for this factionFaction.FactionChangeEvent,
changeEventKeys(),
ALL_CHANGE_EVENT_TYPES()java.lang.String ALL_CHANGE_EVENT_TYPES()
Faction.FactionChangeEvent,
changeEventKeys()java.util.Enumeration<Faction.FZapFactor> factors()
addFactor(double, double, String),
delFactor(Faction.FZapFactor),
findFactor(MOB, boolean),
MaskingLibraryboolean delFactor(Faction.FZapFactor f)
f - the factor to removefactors()Faction.FZapFactor getFactor(int x)
x - which factor (0-number) to returnfactors()Faction.FZapFactor addFactor(double gain, double loss, java.lang.String mask)
gain - the factor to apply on gains in factionloss - the factor to apply on losses of factionmask - the zapper mask to use to determine if this factor applies to a mobfactors(),
MaskingLibrarydouble findFactor(MOB mob, boolean gain)
mob - the mob to compare against the zapper masks of the various factorsgain - return the gain factor if true, or the loss factor if falsefactors(),
MaskingLibraryjava.util.Enumeration<java.lang.String> relationFactions()
factionID(),
addRelation(String, double),
delRelation(String),
getRelation(String)boolean delRelation(java.lang.String factionID)
factionID - the faction id to removefactionID(),
relationFactions()boolean addRelation(java.lang.String factionID,
double relation)
factionID - the faction id of the other factionrelation - the relation factor to use as a multiplierfactionID(),
relationFactions()double getRelation(java.lang.String factionID)
factionID - the other factions faction idfactionID(),
relationFactions(),
addRelation(String, double)java.util.Enumeration<java.lang.String> affectsBehavs()
Ability,
Behavior,
addAffectBehav(String, String, String),
delAffectBehav(String),
getAffectBehav(String)boolean delAffectBehav(java.lang.String ID)
ID - the Abilities or Behavior ID to removeAbility,
Behavior,
affectsBehavs()boolean addAffectBehav(java.lang.String ID,
java.lang.String parms,
java.lang.String gainMask)
ID - the Abilities or Behavior ID to addparms - the parameters for the new affect or behaviorgainMask - the zapper mask to check to see who qualifiesAbility,
Behavior,
affectsBehavs(),
delAffectBehav(String)java.lang.String[] getAffectBehav(java.lang.String ID)
ID - the Abilities or Behavior IDAbility,
Behavior,
affectsBehavs(),
addAffectBehav(String, String, String)java.util.Enumeration<Faction.FReactionItem> reactions()
addReaction(String, String, String, String),
delReaction(Faction.FReactionItem)java.util.Enumeration<Faction.FReactionItem> reactions(java.lang.String rangeCode)
rangeCode - the range code to filter byaddReaction(String, String, String, String),
delReaction(Faction.FReactionItem)boolean delReaction(Faction.FReactionItem item)
item - the faction reaction item to removeaddReaction(String, String, String, String),
reactions()boolean addReaction(java.lang.String range,
java.lang.String mask,
java.lang.String abilityID,
java.lang.String parms)
range - the faction range to use as a determinateabilityID - the ability/Behavior/or command IDparms - the parameters for the new affect or behavior or commandmask - the zapper mask to check to see which mob qualifiesdelReaction(Faction.FReactionItem),
reactions(),
Ability,
Command,
Behaviorvoid setLightReactions(boolean truefalse)
truefalse - true to use the light reaction system, false otherwiseuseLightReactions()boolean useLightReactions()
setLightReactions(boolean)java.util.Enumeration<Faction.FAbilityUsage> abilityUsages()
Faction.FAbilityUsage,
addAbilityUsage(String),
delAbilityUsage(com.planet_ink.coffee_mud.Common.interfaces.Faction.FAbilityUsage),
usageFactorRangeDescription(Ability),
hasUsage(Ability),
canUse(MOB, Ability)java.lang.String usageFactorRangeDescription(Ability A)
A - the ability to find a usage factor for, and then use to find applicable rangesFaction.FAbilityUsage,
abilityUsages(),
Faction.FRangeboolean hasUsage(Ability A)
A - the ability to find a usage criterium forFaction.FAbilityUsage,
abilityUsages()boolean canUse(MOB mob, Ability A)
mob - the mob/player to evaluateA - the ability to evaluateFaction.FAbilityUsage,
abilityUsages()Faction.FAbilityUsage addAbilityUsage(java.lang.String key)
key - the definitional key, or nullFaction.FAbilityUsage,
abilityUsages(),
delAbilityUsage(com.planet_ink.coffee_mud.Common.interfaces.Faction.FAbilityUsage)Faction.FAbilityUsage getAbilityUsage(int x)
x - the index of the Faction.FactionAbilityUsage object to returnFaction.FAbilityUsage,
abilityUsages()boolean delAbilityUsage(Faction.FAbilityUsage usage)
usage - the Faction.FactionAbilityUsage object to removeFaction.FAbilityUsage,
abilityUsages(),
addAbilityUsage(String)long getInternalFlags()
setInternalFlags(long)void setInternalFlags(long bitmap)
bitmap - the bitmap of internal-use flags for this faction.getInternalFlags()