wyvern.lib
Interface Predicate

All Known Subinterfaces:
LocationPredicate
All Known Implementing Classes:
AndNotPredicate, AndPredicate, AnyObjectPredicate, ArchetypePredicate, AttackablePlayerPredicate, AutoGrab, BlockingPredicate, BlocksLightPredicate, BlocksSolidSpell, BlocksSpellPredicate, BooleanPredicate, ClassPredicate, ComparisonPredicate, CounterPredicate, HashcodePredicate, InstanceOfPredicate, InstancePredicate, KeyedEntrance, Knock.LockedDoorPredicate, LockPickCommand.LockablePredicate, LockPickCommand.LockedPredicate, MonsterPredicate, Mountains, NameMatchPredicate, NotPredicate, NotThisObjectPredicate, OpenCommand.KeyPredicate, OrPredicate, PickupPredicate, PropertyPredicate, ReadyCommand.ReadyPredicate, RustTrap.WornIronPredicate, SameClassPredicate, ShortDescEqualPredicate, ShortDescMatchPredicate, Spell.UsableReagentPredicate, StringPropertyPredicate, TerrainRoad, ThisObjectPredicate, TypePredicate, UserTypePredicate, VisiblePredicate, Wall

public interface Predicate

A common interface for classes that perform an arbitrary test on an object and return true if it passes the test.

Version:
1.0, Sep 09, 1997
Author:
Steve Yegge

Method Summary
 boolean predicate(GameObject obj)
          Checks an object to see if it passes the predicate.
 

Method Detail

predicate

public boolean predicate(GameObject obj)
Checks an object to see if it passes the predicate.

Parameters:
obj - any GameObject
Returns:
true if the object passes, else false