public class Player.GoingToPredicate extends Player.UnitPredicate
Modifier and Type | Field and Description |
---|---|
private Player |
player |
private boolean |
tradeRoute |
Constructor and Description |
---|
GoingToPredicate(Player player,
boolean tradeRoute)
Creates a new going-to predicate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
obtains(Unit unit)
Does this unit have orders to go somewhere?
|
private final Player player
private final boolean tradeRoute
public GoingToPredicate(Player player, boolean tradeRoute)
player
- The owning Player
.tradeRoute
- Whether this should be a unit following a
trade route.public boolean obtains(Unit unit)
obtains
in class Player.UnitPredicate