Class CheckNeighbor

java.lang.Object
  |
  +--Predicate
        |
        +--ObjectPredicate
              |
              +--CheckNeighbor

class CheckNeighbor
extends ObjectPredicate

Checks whether two objects are in the same room


Constructor Summary
(package private) CheckNeighbor()
           
 
Method Summary
 boolean evaluateObject(RealObject ro, RealObject neighbor)
          Is this object in the same room as a specified other object?
 
Methods inherited from class ObjectPredicate
evaluate
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckNeighbor

CheckNeighbor()
Method Detail

evaluateObject

public boolean evaluateObject(RealObject ro,
                              RealObject neighbor)
Is this object in the same room as a specified other object?
Overrides:
evaluateObject in class ObjectPredicate
Returns:
whether the two objects are in the same Room