From f7b2f3f5e7d937bd2597d57596eec516b56563c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 15 Dec 2015 14:40:47 +0100 Subject: Map0Hex: add int objectivesCount(Army) --- core/src/ch/asynk/rustanddust/game/map/Map0Hex.java | 5 +++++ 1 file changed, 5 insertions(+) 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); } -- cgit v1.1-2-g2b99