jurpe.system
Class EffectsCollection

java.lang.Object
  extended by jurpe.system.EffectsCollection

public class EffectsCollection
extends java.lang.Object

Collection of TurnEffects in charge


Constructor Summary
EffectsCollection()
           
 
Method Summary
 void addEffect(TurnEffect te)
          Add effect
 void applyAll(Log log)
          Apply every effect in the collection, calling the apply method of TurnEffect class.
 java.util.AbstractList<TurnEffect> effects()
          Effects iterator
 boolean isVoid()
          If this collection is empty
 void removeAll()
          Remove all effects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffectsCollection

public EffectsCollection()
Method Detail

effects

public java.util.AbstractList<TurnEffect> effects()
Effects iterator

Returns:
iterator for this effects

addEffect

public void addEffect(TurnEffect te)
Add effect

Parameters:
te - turn effect to add to this collection
See Also:
TurnEffect

isVoid

public boolean isVoid()
If this collection is empty

Returns:
true if no effect is in charge

applyAll

public void applyAll(Log log)
Apply every effect in the collection, calling the apply method of TurnEffect class.

Parameters:
log - Log handle

removeAll

public void removeAll()
Remove all effects


Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net