summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-21 19:32:25 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-21 19:32:25 +0100
commitb8d524c48af7b38eaec7d2547844c8b76b7009d6 (patch)
tree32c224fb7571478634b6584d5f7342096b343f56 /core/src/ch/asynk/rustanddust/game
parentbccade845e568c5fd893e7567efb17d0bb7e8ea7 (diff)
downloadRustAndDust-b8d524c48af7b38eaec7d2547844c8b76b7009d6.zip
RustAndDust-b8d524c48af7b38eaec7d2547844c8b76b7009d6.tar.gz
PathBuilder: fitness takes objectives into account
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map0Hex.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
index c1ab73a..0d28829 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
@@ -76,6 +76,12 @@ public abstract class Map0Hex extends Board implements ObjectiveSet.ObjectiveCb
public void hexExitHide(Hex hex) { enableOverlayOn(hex, Hex.EXIT, false); }
@Override
+ public boolean isObjective(Tile tile)
+ {
+ return objectives.containsKey(tile);
+ }
+
+ @Override
public void showObjective(Tile tile, Faction faction)
{
showObjective((Hex) tile, (Army) faction);