|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultFaction.DefaultFactionChangeEvent
public class DefaultFaction.DefaultFactionChangeEvent
| Field Summary |
|---|
| Fields inherited from interface com.planet_ink.coffee_mud.Common.interfaces.Faction.FactionChangeEvent |
|---|
CHANGE_DIRECTION_ADD, CHANGE_DIRECTION_AWAY, CHANGE_DIRECTION_DESCS, CHANGE_DIRECTION_DOWN, CHANGE_DIRECTION_MAXIMUM, CHANGE_DIRECTION_MINIMUM, CHANGE_DIRECTION_OPPOSITE, CHANGE_DIRECTION_REMOVE, CHANGE_DIRECTION_TOWARD, CHANGE_DIRECTION_UP, FLAG_DESCS, MISC_TRIGGERS |
| Constructor Summary | |
|---|---|
DefaultFaction.DefaultFactionChangeEvent(Faction F)
|
|
DefaultFaction.DefaultFactionChangeEvent(Faction F,
java.lang.String key)
|
|
| Method Summary | |
|---|---|
boolean |
applies(MOB source,
MOB target)
Returns whether the given mob is a valid source and target of this event. |
MaskingLibrary.CompiledZapperMask |
compiledSourceZapper()
Returns the zapper mask that is used to see if the source of the event qualifies in order to trigger a faction change by this defined event. |
MaskingLibrary.CompiledZapperMask |
compiledTargetZapper()
Returns the zapper mask that is used to see if the target of the event qualifies in order to trigger a faction change by this defined event. |
int |
direction()
Returns a code for a description of how an event, if applicable, will affect this factions value. |
java.lang.String |
eventID()
Returns the event trigger id |
double |
factor()
Returns the factor to multiply the base faction change amount (100) by, to determine the amount of this faction changed by this event, in accordance with the given direction. |
java.lang.String |
flagCache()
Returns the list of flags that apply to this event. |
Faction |
getFaction()
Return the parent faction for which this data stands. |
java.lang.String |
getTriggerParm(java.lang.String parmName)
Returns the named trigger parameters defined |
int |
IDclassFilter()
A derivative of the event id, this will return a value of 0 or above if the event id was of a particular Ability ACODE_. |
int |
IDdomainFilter()
A derivative of the event id, this will return a value of 0 or above if the event id was of a particular Ability DOMAIN_. |
int |
IDflagFilter()
A derivative of the event id, this will return a value of 0 or above if the event id was of a particular Ability FLAG_. |
boolean |
just100()
A derivative of the flag cache, this method returns whether the flag was set that causes the determination of the amount of faction move to apply to NOT take the difference between the source and targets levels into account. |
boolean |
outsiderTargetOK()
A derivative of the flag cache, this method returns whether the flag was set that allows this event to trigger when the target of the event does not have any value with this faction |
boolean |
selfTargetOK()
A derivative of the flag cache, this method returns whether the flag was set that allows this event to trigger when the target and source of the event are the same. |
void |
setDirection(int newVal)
Sets a code for a description of how an event, if applicable, will affect this factions value. |
boolean |
setDirection(java.lang.String d)
|
boolean |
setEventID(java.lang.String newID)
Sets the event trigger id |
void |
setFactor(double newVal)
Sets the factor to multiply the base faction change amount (100) by, to determine the amount of this faction changed by this event, in accordance with the given direction. |
void |
setFlags(java.lang.String newFlagCache)
Sets the list of flags that apply to this event. |
void |
setStateVariable(int x,
java.lang.Object newVal)
Sets an internal state variable stored for this change event. |
void |
setTargetZapper(java.lang.String newVal)
Sets the zapper mask that is used to see if the target of the event qualifies in order to trigger a faction change by this defined event. |
void |
setTriggerParameters(java.lang.String newVal)
Sets any trigger parameters defined that modify the way the trigger behaves. |
java.lang.Object |
stateVariable(int x)
Returns the internal state variable stored for this change event. |
java.lang.String |
targetZapper()
Returns the zapper mask that is used to see if the target of the event qualifies in order to trigger a faction change by this defined event. |
java.lang.String |
toString()
Returns a semicolon delimited list of all the settings in this change event |
java.lang.String |
triggerParameters()
Returns any trigger parameters defined that modify the way the trigger behaves. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultFaction.DefaultFactionChangeEvent(Faction F)
public DefaultFaction.DefaultFactionChangeEvent(Faction F,
java.lang.String key)
| Method Detail |
|---|
public java.lang.String eventID()
Faction.FactionChangeEvent
eventID in interface Faction.FactionChangeEventFaction.ALL_CHANGE_EVENT_TYPES(),
Faction.FactionChangeEvent.setEventID(String),
Faction.FactionChangeEvent.IDclassFilter(),
Faction.FactionChangeEvent.IDdomainFilter(),
Faction.FactionChangeEvent.IDflagFilter()public java.lang.String flagCache()
Faction.FactionChangeEvent
flagCache in interface Faction.FactionChangeEventFaction.FactionChangeEvent.FLAG_DESCS,
Faction.FactionChangeEvent.setFlags(String),
Faction.FactionChangeEvent.outsiderTargetOK(),
Faction.FactionChangeEvent.selfTargetOK(),
Faction.FactionChangeEvent.just100()public int IDclassFilter()
Faction.FactionChangeEvent
IDclassFilter in interface Faction.FactionChangeEventAbility.ACODE_DESCS,
Faction.FactionChangeEvent.eventID(),
Faction.FactionChangeEvent.IDdomainFilter(),
Faction.FactionChangeEvent.IDflagFilter()public int IDflagFilter()
Faction.FactionChangeEvent
IDflagFilter in interface Faction.FactionChangeEventAbility.FLAG_DESCS,
Faction.FactionChangeEvent.eventID(),
Faction.FactionChangeEvent.IDclassFilter(),
Faction.FactionChangeEvent.IDdomainFilter()public int IDdomainFilter()
Faction.FactionChangeEvent
IDdomainFilter in interface Faction.FactionChangeEventAbility.DOMAIN_DESCS,
Faction.FactionChangeEvent.eventID(),
Faction.FactionChangeEvent.IDclassFilter(),
Faction.FactionChangeEvent.IDflagFilter()public int direction()
Faction.FactionChangeEvent
direction in interface Faction.FactionChangeEventFaction.FactionChangeEvent.CHANGE_DIRECTION_DESCS,
Faction.FactionChangeEvent.setDirection(int)public double factor()
Faction.FactionChangeEvent
factor in interface Faction.FactionChangeEventFaction.FactionChangeEvent.direction(),
Faction.FactionChangeEvent.setFactor(double)public java.lang.String targetZapper()
Faction.FactionChangeEvent
targetZapper in interface Faction.FactionChangeEventFaction.FactionChangeEvent.setTargetZapper(String),
MaskingLibrarypublic boolean outsiderTargetOK()
Faction.FactionChangeEvent
outsiderTargetOK in interface Faction.FactionChangeEventFaction.FactionChangeEvent.flagCache(),
Faction.FactionChangeEvent.selfTargetOK(),
Faction.FactionChangeEvent.just100()public boolean selfTargetOK()
Faction.FactionChangeEvent
selfTargetOK in interface Faction.FactionChangeEventFaction.FactionChangeEvent.flagCache(),
Faction.FactionChangeEvent.outsiderTargetOK(),
Faction.FactionChangeEvent.just100()public boolean just100()
Faction.FactionChangeEvent
just100 in interface Faction.FactionChangeEventFaction.FactionChangeEvent.flagCache(),
Faction.FactionChangeEvent.outsiderTargetOK(),
Faction.FactionChangeEvent.selfTargetOK()public void setDirection(int newVal)
Faction.FactionChangeEvent
setDirection in interface Faction.FactionChangeEventnewVal - a new FactionChangeEvent#CHANGE_DIRECTION_ constantFaction.FactionChangeEvent.CHANGE_DIRECTION_DESCS,
Faction.FactionChangeEvent.direction()public void setFactor(double newVal)
Faction.FactionChangeEvent
setFactor in interface Faction.FactionChangeEventFaction.FactionChangeEvent.direction(),
Faction.FactionChangeEvent.factor()public void setTargetZapper(java.lang.String newVal)
Faction.FactionChangeEvent
setTargetZapper in interface Faction.FactionChangeEventnewVal - the new zapper mask stringFaction.FactionChangeEvent.targetZapper(),
MaskingLibrarypublic MaskingLibrary.CompiledZapperMask compiledTargetZapper()
Faction.FactionChangeEvent
compiledTargetZapper in interface Faction.FactionChangeEventFaction.FactionChangeEvent.setTargetZapper(String),
MaskingLibrarypublic MaskingLibrary.CompiledZapperMask compiledSourceZapper()
Faction.FactionChangeEvent
compiledSourceZapper in interface Faction.FactionChangeEventFaction.FactionChangeEvent.setTriggerParameters(String),
MaskingLibrarypublic java.lang.String getTriggerParm(java.lang.String parmName)
Faction.FactionChangeEvent
getTriggerParm in interface Faction.FactionChangeEventFaction.FactionChangeEvent.setTriggerParameters(String)public java.lang.String toString()
Faction.FactionChangeEvent
toString in interface Faction.FactionChangeEventtoString in class java.lang.ObjectFaction.createChangeEvent(String)public boolean setEventID(java.lang.String newID)
Faction.FactionChangeEvent
setEventID in interface Faction.FactionChangeEventnewID - the new event trigger id
Faction.ALL_CHANGE_EVENT_TYPES(),
Faction.FactionChangeEvent.eventID(),
Faction.FactionChangeEvent.IDclassFilter(),
Faction.FactionChangeEvent.IDdomainFilter(),
Faction.FactionChangeEvent.IDflagFilter()public boolean setDirection(java.lang.String d)
public void setFlags(java.lang.String newFlagCache)
Faction.FactionChangeEvent
setFlags in interface Faction.FactionChangeEventnewFlagCache - the new list of applicable flagsFaction.FactionChangeEvent.FLAG_DESCS,
Faction.FactionChangeEvent.flagCache(),
Faction.FactionChangeEvent.outsiderTargetOK(),
Faction.FactionChangeEvent.selfTargetOK(),
Faction.FactionChangeEvent.just100()
public boolean applies(MOB source,
MOB target)
Faction.FactionChangeEvent
applies in interface Faction.FactionChangeEventsource - the source to evaluatetarget - the target to evaluate
public java.lang.String triggerParameters()
Faction.FactionChangeEvent
triggerParameters in interface Faction.FactionChangeEventFaction.FactionChangeEvent.setTriggerParameters(String)public void setTriggerParameters(java.lang.String newVal)
Faction.FactionChangeEvent
setTriggerParameters in interface Faction.FactionChangeEventnewVal - the trigger parametersFaction.FactionChangeEvent.triggerParameters()public java.lang.Object stateVariable(int x)
Faction.FactionChangeEvent
stateVariable in interface Faction.FactionChangeEventx - which internal state variable to get
Faction.FactionChangeEvent.setStateVariable(int,Object)
public void setStateVariable(int x,
java.lang.Object newVal)
Faction.FactionChangeEvent
setStateVariable in interface Faction.FactionChangeEventx - which internal state variable to setnewVal - the state variableFaction.FactionChangeEvent.stateVariable(int)public Faction getFaction()
Faction.FactionChangeEvent
getFaction in interface Faction.FactionChangeEvent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||