wyvern.lib.predicates
Class AnyObjectPredicate

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

public class AnyObjectPredicate
extends java.lang.Object
implements Predicate

This predicate returns true for any object; it's useful for getting the first object at a given location in the map.

Version:
1.0, Aug 26, 1997
Author:
Steve Yegge

Constructor Summary
AnyObjectPredicate()
           
 
Method Summary
 boolean predicate(GameObject obj)
          Returns true for any object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyObjectPredicate

public AnyObjectPredicate()
Method Detail

predicate

public boolean predicate(GameObject obj)
Returns true for any object.

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