|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Affectable
Something that can be affected, and has environmental stats that can be affected as well.
| Method Summary | |
|---|---|
void |
addEffect(Ability to)
Add a new effect to this object, whether permanent or temporary. |
void |
addNonUninvokableEffect(Ability to)
Same as addEffect(Ability), but will set the Ability object as never being able to be uninvoked. |
PhyStats |
basePhyStats()
Object containing a set of base, unmodified, mostly numeric fields. |
void |
delEffect(Ability to)
Delete an effect from this object, whether permanent or temporary. |
java.util.Enumeration<Ability> |
effects()
Returns an enumerator of abilities listed as effects on this object. |
Ability |
fetchEffect(int index)
Returns an ability object listed as an effect on this object. |
Ability |
fetchEffect(java.lang.String ID)
Returns an ability object listed as an effect on this object. |
int |
numEffects()
Returns the number of ability objects listed as effects on this object. |
PhyStats |
phyStats()
Object containing a set of current, modified, usable, mostly numeric fields. |
void |
recoverPhyStats()
This method copies the basePhyStats() object into the phyStats() object, then makes repeated calls to all surrounding objects with affectPhyStats(Environmental,PhyStats) method. |
void |
setBasePhyStats(PhyStats newStats)
Re-sets the object containing a set of base, unmodified, mostly numeric fields. |
| Method Detail |
|---|
PhyStats basePhyStats()
phyStats(),
recoverPhyStats(),
PhyStatsvoid setBasePhyStats(PhyStats newStats)
newStats - a set of state fieldsphyStats(),
recoverPhyStats(),
PhyStatsPhyStats phyStats()
basePhyStats(),
recoverPhyStats(),
PhyStatsvoid recoverPhyStats()
basePhyStats(),
phyStats(),
addEffect(Ability),
Behavable.addBehavior(Behavior),
PhyStatsvoid addEffect(Ability to)
to - The ability object to add as an effect.Ability,
recoverPhyStats()void addNonUninvokableEffect(Ability to)
to - The ability object to add as an effect.Ability,
recoverPhyStats()void delEffect(Ability to)
to - The ability object to remove as an effect on this objectAbility,
recoverPhyStats()int numEffects()
AbilityAbility fetchEffect(int index)
index - which object to return
Ability,
numEffects()Ability fetchEffect(java.lang.String ID)
Ability,
CMObject.ID()java.util.Enumeration<Ability> effects()
Ability
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||