wyvern.lib.predicates
Class BlocksSolidSpell

java.lang.Object
  extended bywyvern.lib.predicates.BlocksSolidSpell
All Implemented Interfaces:
Predicate

public class BlocksSolidSpell
extends java.lang.Object
implements Predicate

A Predicate that's slightly more restrictive than a normal BlocksSpellPredicate - it also prevents the spell from being cast on any structures or anything that's blocking.

Version:
1.0, Nov 30, 2003
Author:
Steve Yegge

Field Summary
static BlocksSolidSpell INSTANCE
           
 
Constructor Summary
BlocksSolidSpell()
           
 
Method Summary
 boolean predicate(GameObject obj)
          Returns true if this object blocks the spell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static BlocksSolidSpell INSTANCE
Constructor Detail

BlocksSolidSpell

public BlocksSolidSpell()
Method Detail

predicate

public boolean predicate(GameObject obj)
Returns true if this object blocks the spell.

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