summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/rustanddust/game/Battle.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java7
2 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Battle.java b/core/src/ch/asynk/rustanddust/game/Battle.java
index add6820..8be82c1 100644
--- a/core/src/ch/asynk/rustanddust/game/Battle.java
+++ b/core/src/ch/asynk/rustanddust/game/Battle.java
@@ -5,6 +5,8 @@ import ch.asynk.rustanddust.game.Factory.MapType;
public interface Battle
{
+ public int getId();
+
public String getName();
public String getDescription();
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
index e09ce8d..6ea1046 100644
--- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
@@ -20,6 +20,7 @@ public abstract class BattleCommon implements Battle
{
protected final static Random random = new Random(System.currentTimeMillis());
+ protected int _id;
protected Factory.MapType mapType;
protected String name;
protected String description;
@@ -57,6 +58,12 @@ public abstract class BattleCommon implements Battle
}
@Override
+ public int getId()
+ {
+ return _id;
+ }
+
+ @Override
public String toString()
{
return getName();