|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Faction.FData
A FactionData object is stored inside other objects that keep track of their own faction. The object stores the faction value, any event listeners or tickers, and a method to determine when it is time to refresh the object.
Faction.makeFactionData(MOB)
Method Summary | |
---|---|
void |
addHandlers(java.util.List<Ability> abilities,
java.util.List<Behavior> behaviors)
Clears and re-adds all the necessary message listeners and tickers and stat affecting objects for this faction data reference. |
Faction |
getFaction()
Return the parent faction for which this data stands. |
long |
getNextChangeTimers(Faction.FactionChangeEvent event)
Returns a timestamp for the given event denoting when that event can next take place. |
boolean |
requiresUpdating()
Returns true if this object requires updating by the parent faction for some reason. |
void |
resetFactionData(Faction F)
Cleans out the internal data structures of this faction to denote that a new context is entered. |
void |
setNextChangeTimers(Faction.FactionChangeEvent event,
long time)
Sets a timestamp for the given event denoting when that event can next take place. |
void |
setValue(int newValue)
Sets the actual value that the holding object has in this faction. |
boolean |
tick(Tickable ticking,
int tickID)
A mirror implementation of Tickable |
int |
value()
Returns the actual value that the holding object has in this faction. |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Method Detail |
---|
void resetFactionData(Faction F)
F
- the faction to which this data belongs.boolean requiresUpdating()
boolean tick(Tickable ticking, int tickID)
ticking
- the ticking objecttickID
- the id code of the tick being done
Tickable
Faction getFaction()
int value()
void setValue(int newValue)
newValue
- the faction valuevoid addHandlers(java.util.List<Ability> abilities, java.util.List<Behavior> behaviors)
abilities
- a vector of abilitiesbehaviors
- a vector of behaviorslong getNextChangeTimers(Faction.FactionChangeEvent event)
event
- the change event to get a time for.
void setNextChangeTimers(Faction.FactionChangeEvent event, long time)
event
- the change event to get a time for.time
- the timestamp ro the next event, or 0
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |