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). |
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 locationy
- the map y locationobj
- the GameObject to query