wyvern.lib.predicates
Class ThisObjectPredicate

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

public class ThisObjectPredicate
extends java.lang.Object
implements Predicate

A Predicate that matches a particular Object using equals().

Version:
1.0, Nov 05, 1997
Author:
Steve Yegge

Field Summary
protected  GameObject target_
           
 
Constructor Summary
ThisObjectPredicate(GameObject target)
          Constructs a new ThisObjectPredicate
 
Method Summary
 boolean predicate(GameObject obj)
          Checks an object to see if it matches the target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

target_

protected GameObject target_
Constructor Detail

ThisObjectPredicate

public ThisObjectPredicate(GameObject target)
Constructs a new ThisObjectPredicate

Method Detail

predicate

public boolean predicate(GameObject obj)
Checks an object to see if it matches the target.

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