summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-13 12:07:35 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-13 12:07:35 +0200
commit3ec8d212cf7c1242243ad8eba2f4c999d3b92cc3 (patch)
tree6f55429aaaa11162ead7c112193e76dde82dd10a /core
parentd393c1f5ddb6e380f0e0bce517f9f7caaf7f810f (diff)
downloadRustAndDust-3ec8d212cf7c1242243ad8eba2f4c999d3b92cc3.zip
RustAndDust-3ec8d212cf7c1242243ad8eba2f4c999d3b92cc3.tar.gz
Map: add int attackAssistsCount()
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index 31dbbf0..b03021a 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -83,6 +83,11 @@ public abstract class Map extends Board
return activatedPawns.size();
}
+ public int attackAssistsCount()
+ {
+ return attackAssists.size();
+ }
+
public boolean isInPossibleMoves(GridPoint2 hex)
{
return possibleMoves.contains(hex);