summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/game/battles
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-11 15:59:06 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-11 15:59:06 +0100
commitf4b9af0c311bce96ee7b71000b3aa8ab9a2ab556 (patch)
treeaf808f802894e9e746bd17eb17b872d652adabe9 /core/src/ch/asynk/rustanddust/game/battles
parentb2ba5d9fd27a562f5096e6c5eeacc81752376d73 (diff)
downloadRustAndDust-f4b9af0c311bce96ee7b71000b3aa8ab9a2ab556.zip
RustAndDust-f4b9af0c311bce96ee7b71000b3aa8ab9a2ab556.tar.gz
IterableArray does not extends ArrayList but has it's own implementation
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/battles')
-rw-r--r--core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
index 5023d5a..e09ce8d 100644
--- a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
+++ b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java
@@ -28,8 +28,8 @@ public abstract class BattleCommon implements Battle
protected Player currentPlayer;
protected Player usPlayer;
protected Player gePlayer;
- protected IterableArray<Zone> entryZone = new IterableArray<Zone>();
- protected IterableArray<Zone> exitZone = new IterableArray<Zone>();
+ protected IterableArray<Zone> entryZones = new IterableArray<Zone>(10);
+ protected IterableArray<Zone> exitZones = new IterableArray<Zone>(10);
protected HashMap<Unit, Zone> unitEntry = new HashMap<Unit, Zone>();
protected HashMap<Unit, Zone> unitExit = new HashMap<Unit, Zone>();
@@ -172,12 +172,12 @@ public abstract class BattleCommon implements Battle
protected void addEntryZone(Zone entry)
{
- entryZone.add(entry);
+ entryZones.add(entry);
}
protected void addExitZone(Zone exit)
{
- exitZone.add(exit);
+ exitZones.add(exit);
exit.enable(Hex.EXIT, true);
}