wyvern.lib.predicates
Interface LocationPredicate

All Superinterfaces:
Predicate
All Known Implementing Classes:
BlocksSpellPredicate

public interface LocationPredicate
extends Predicate

This Predicate sub-interface is used when the predicate wants to be passed the (x,y) coordinate of the object, if it's querying an object in a map. Given that the object is in a map, we pass in the object as a GameObject, so casting is unnecessary.

Version:
1.0, Jun 30, 1998
Author:
Steve Yegge

Method Summary
 boolean predicate(int x, int y, GameObject obj)
          Returns true if the object passes the predicate when queried at location (x, y).
 
Methods inherited from interface wyvern.lib.Predicate
predicate
 

Method Detail

predicate

public boolean predicate(int x,
                         int y,
                         GameObject obj)
Returns true if the object passes the predicate when queried at location (x, y).

Parameters:
x - the map x location
y - the map y location
obj - the GameObject to query