summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-15 14:40:47 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-15 14:40:47 +0100
commitf7b2f3f5e7d937bd2597d57596eec516b56563c2 (patch)
tree9768178f76c17a77c218ccf3968fa2cddc15b32f /core
parent7da0637c8af9dcbc3698e0675b755efeb7a6d065 (diff)
downloadRustAndDust-f7b2f3f5e7d937bd2597d57596eec516b56563c2.zip
RustAndDust-f7b2f3f5e7d937bd2597d57596eec516b56563c2.tar.gz
Map0Hex: add int objectivesCount(Army)
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map0Hex.java5
1 files changed, 5 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 3edc6bd..c1ab73a 100644
--- a/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
+++ b/core/src/ch/asynk/rustanddust/game/map/Map0Hex.java
@@ -61,6 +61,11 @@ public abstract class Map0Hex extends Board implements ObjectiveSet.ObjectiveCb
showObjective(hex, objectives.unclaim(hex));
}
+ public int objectivesCount(Army army)
+ {
+ return objectives.count(army);
+ }
+
public void hexSelect(Hex hex) { selectedTile.set(hex); }
public void hexUnselect(Hex hex) { selectedTile.hide(); }
public void hexMoveShow(Hex hex) { enableOverlayOn(hex, Hex.MOVE, true); }