net.sf.freecol.common.model
Class Player.GoingToPredicate

java.lang.Object
  extended by net.sf.freecol.common.model.Player.UnitPredicate
      extended by net.sf.freecol.common.model.Player.GoingToPredicate
Enclosing class:
Player

public class Player.GoingToPredicate
extends Player.UnitPredicate

A predicate for determining units going somewhere.


Field Summary
private  Player player
           
 
Constructor Summary
Player.GoingToPredicate(Player player)
           
 
Method Summary
 boolean obtains(Unit unit)
          Returns true if the unit has order to go somewhere.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

player

private final Player player
Constructor Detail

Player.GoingToPredicate

public Player.GoingToPredicate(Player player)
Method Detail

obtains

public boolean obtains(Unit unit)
Returns true if the unit has order to go somewhere.

Specified by:
obtains in class Player.UnitPredicate