wyvern.lib.predicates
Class NotThisObjectPredicate

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

public class NotThisObjectPredicate
extends java.lang.Object
implements Predicate

A predicate to exclude a particular object from a search.

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

Field Summary
protected  java.util.List targets_
           
 
Constructor Summary
NotThisObjectPredicate(GameObject target)
          Constructs a new NotThisObjectPredicate
 
Method Summary
 void addObject(GameObject target)
          Adds another object to exclude.
 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

targets_

protected java.util.List targets_
Constructor Detail

NotThisObjectPredicate

public NotThisObjectPredicate(GameObject target)
Constructs a new NotThisObjectPredicate

Method Detail

addObject

public void addObject(GameObject target)
Adds another object to exclude.


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:
false if the object is the same as the target, true if not