mechanics.clauses
Class EffectClause

java.lang.Object
  extended by mechanics.clauses.Clause
      extended by mechanics.clauses.EffectClause

public class EffectClause
extends Clause

This clause prevents a trainer from putting a particular status on more than one of the opponent's pokemon at a time.


Constructor Summary
EffectClause(java.lang.Class effect)
           
 
Method Summary
 boolean allowsStatus(StatusEffect eff, Pokemon source, Pokemon target)
          Does this clause allow the application of the given status effect to a particular pokemon?
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffectClause

public EffectClause(java.lang.Class effect)
Parameters:
effect - the status effect to restrict
Method Detail

allowsStatus

public boolean allowsStatus(StatusEffect eff,
                            Pokemon source,
                            Pokemon target)
Description copied from class: Clause
Does this clause allow the application of the given status effect to a particular pokemon?

Overrides:
allowsStatus in class Clause