wyvern.lib.classes.magic
Class Spell.UsableReagentPredicate

java.lang.Object
  extended bywyvern.lib.classes.magic.Spell.UsableReagentPredicate
All Implemented Interfaces:
Predicate
Enclosing class:
Spell

protected class Spell.UsableReagentPredicate
extends java.lang.Object
implements Predicate

Determines if we can use a given reagent.


Constructor Summary
Spell.UsableReagentPredicate(java.lang.String name)
           
 
Method Summary
 boolean predicate(GameObject obj)
          Checks an object to see if it passes the predicate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spell.UsableReagentPredicate

public Spell.UsableReagentPredicate(java.lang.String name)
Method Detail

predicate

public boolean predicate(GameObject obj)
Description copied from interface: Predicate
Checks an object to see if it passes the predicate.

Specified by:
predicate in interface Predicate
Parameters:
obj - any GameObject
Returns:
true if the object passes, else false