diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 14:40:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 14:40:45 +0100 |
commit | 0573d58f1446a5fb81a460be48460514cc59ef18 (patch) | |
tree | 13ac64e1120d8387a2c230ad9f4124c27d27fe70 /core/src/ch/asynk | |
parent | a4f097279bab608352de588d19c1b3f37e39893d (diff) | |
download | RustAndDust-0573d58f1446a5fb81a460be48460514cc59ef18.zip RustAndDust-0573d58f1446a5fb81a460be48460514cc59ef18.tar.gz |
ObjectivesSet: add int modifiedCount()
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/ObjectiveSet.java | 5 |
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()) { |