|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.lib.predicates.AttackablePlayerPredicate
A predicate that determines whether a monster wants to attack a given player.
| Constructor Summary | |
AttackablePlayerPredicate(Commandable agent)
Constructs a new AttackablePlayerPredicate |
|
| Method Summary | |
static boolean |
predicate(Commandable agent,
GameObject obj)
Static version of the predicate. |
boolean |
predicate(GameObject obj)
Returns true if we want to attack the passed player. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AttackablePlayerPredicate(Commandable agent)
agent - the monster that will be looking for
someone to attack| Method Detail |
public boolean predicate(GameObject obj)
predicate in interface Predicateobj - a player (or monster, or even GameObject) to attack
public static boolean predicate(Commandable agent,
GameObject obj)
agent - the monster doing the attackingobj - the object (player, usually) to attack
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||