wyvern.lib.predicates
Class MonsterPredicate

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

public class MonsterPredicate
extends java.lang.Object
implements Predicate

This predicate tests to see if the target is a monster.

Version:
1.0, Sep 27, 1997
Author:
Steve Yegge

Constructor Summary
MonsterPredicate()
           
 
Method Summary
 boolean predicate(GameObject obj)
          Return true if the object is a monster.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonsterPredicate

public MonsterPredicate()
Method Detail

predicate

public boolean predicate(GameObject obj)
Return true if the object is a monster.

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