|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Faction.FactionData
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.Vector<Ability> abilities,
java.util.Vector<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. |
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 |
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 doneTickableFaction getFaction()
int value()
void setValue(int newValue)
newValue - the faction value
void addHandlers(java.util.Vector<Ability> abilities,
java.util.Vector<Behavior> behaviors)
abilities - a vector of abilitiesbehaviors - a vector of behaviors
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||