|
|||||||||
| 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.DefaultFactionData
public class DefaultFaction.DefaultFactionData
| Field Summary | |
|---|---|
boolean |
isReset
|
| Constructor Summary | |
|---|---|
DefaultFaction.DefaultFactionData(Faction F)
|
|
| Method Summary | |
|---|---|
void |
addHandlers(java.util.Vector<Ability> listeners,
java.util.Vector<Behavior> tickers)
Clears and re-adds all the necessary message listeners and tickers and stat affecting objects for this faction data reference. |
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affectedMob,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectPhyStats(Physical affected,
PhyStats affectableStats)
This method is called by the recoverPhyStats() method on other Environmental objects. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
Faction |
getFaction()
Return the parent faction for which this data stands. |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean isReset
| Constructor Detail |
|---|
public DefaultFaction.DefaultFactionData(Faction F)
| Method Detail |
|---|
public void resetFactionData(Faction F)
Faction.FactionData
resetFactionData in interface Faction.FactionDataF - the faction to which this data belongs.public int value()
Faction.FactionData
value in interface Faction.FactionDatapublic Faction getFaction()
Faction.FactionData
getFaction in interface Faction.FactionDatapublic void setValue(int newValue)
Faction.FactionData
setValue in interface Faction.FactionDatanewValue - the faction value
public void affectPhyStats(Physical affected,
PhyStats affectableStats)
StatsAffecting
affectPhyStats in interface StatsAffectingaffected - the host of the PhyStats object being affectedaffectableStats - the particular PhyStats object being affectedPhyStats,
Environmental,
Affectable.basePhyStats(),
Affectable.phyStats(),
Affectable.recoverPhyStats()
public void affectCharStats(MOB affectedMob,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectedMob - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()
public void affectCharState(MOB affectedMob,
CharState affectableMaxState)
StatsAffecting
affectCharState in interface StatsAffectingaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()
public void addHandlers(java.util.Vector<Ability> listeners,
java.util.Vector<Behavior> tickers)
Faction.FactionData
addHandlers in interface Faction.FactionDatalisteners - a vector of abilitiestickers - a vector of behaviorspublic boolean requiresUpdating()
Faction.FactionData
requiresUpdating in interface Faction.FactionData
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public boolean tick(Tickable ticking,
int tickID)
Faction.FactionData
tick in interface Faction.FactionDataticking - the ticking objecttickID - the id code of the tick being doneTickable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||