wyvern.lib.predicates
Class VisiblePredicate

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

public class VisiblePredicate
extends java.lang.Object
implements Predicate

Returns true if the object has normal visibility. Any level of invisibility will cause this predicate to return false.

Version:
1.0, Dec 13, 1998
Author:
Steve Yegge

Constructor Summary
VisiblePredicate()
           
 
Method Summary
 boolean predicate(GameObject obj)
          Returns true if both sub-predicates return true for the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisiblePredicate

public VisiblePredicate()
Method Detail

predicate

public boolean predicate(GameObject obj)
Returns true if both sub-predicates return true for the object.

Specified by:
predicate in interface Predicate
Parameters:
obj - the object to predicate upon
Returns:
true if it passes the test