|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjurpe.system.TurnEffect
public class TurnEffect
Turn effect is a modifier for an attribute of a character that has the duration of n turns. A turn effect is appliable to a PC.
| Constructor Summary | |
|---|---|
TurnEffect(PC affected,
EffectType et,
int mod,
short turns)
Contruct a new Turn Effect |
|
| Method Summary | |
|---|---|
void |
apply()
Apply turn effect to affected PC |
PC |
getAffectedPC()
Get PC affected by this turn effect |
EffectType |
getEffectType()
Get Effect type of this Turn Effect |
int |
getModifier()
Return the numeric modifier for this effect |
boolean |
isValid()
If this turn effect is still in action (valid). |
void |
remove()
Remove turn effect to affected PC |
java.lang.String |
toString()
Long description of this turn effect |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TurnEffect(PC affected,
EffectType et,
int mod,
short turns)
affected - affected PCet - type of effect (modify which attribute, ie: DX)mod - modifier (ie: 2 is HT+2)turns - total number of turns the effect is valid| Method Detail |
|---|
public EffectType getEffectType()
public int getModifier()
public boolean isValid()
public void apply()
public void remove()
public java.lang.String toString()
toString in class java.lang.Objectpublic PC getAffectedPC()
|
Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||