summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-18 14:40:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-18 14:40:45 +0100
commit0573d58f1446a5fb81a460be48460514cc59ef18 (patch)
tree13ac64e1120d8387a2c230ad9f4124c27d27fe70 /core/src/ch/asynk/tankontank/engine
parenta4f097279bab608352de588d19c1b3f37e39893d (diff)
downloadRustAndDust-0573d58f1446a5fb81a460be48460514cc59ef18.zip
RustAndDust-0573d58f1446a5fb81a460be48460514cc59ef18.tar.gz
ObjectivesSet: add int modifiedCount()
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/ObjectiveSet.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/ObjectiveSet.java b/core/src/ch/asynk/tankontank/engine/ObjectiveSet.java
index 221fbc8..2effb6b 100644
--- a/core/src/ch/asynk/tankontank/engine/ObjectiveSet.java
+++ b/core/src/ch/asynk/tankontank/engine/ObjectiveSet.java
@@ -62,6 +62,11 @@ public class ObjectiveSet extends HashMap<Tile, Objective>
modified.clear();
}
+ public int modifiedCount()
+ {
+ return modified.size();
+ }
+
public void revert(ObjectiveCb cb)
{
for (Objective objective : modified.keySet()) {