From f4b9af0c311bce96ee7b71000b3aa8ab9a2ab556 Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Mon, 11 Jan 2016 15:59:06 +0100 Subject: IterableArray does not extends ArrayList but has it's own implementation --- core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/src/ch/asynk/rustanddust/game/battles') diff --git a/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java b/core/src/ch/asynk/rustanddust/game/battles/BattleCommon.java index 5023d5a5..e09ce8df 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 entryZone = new IterableArray(); - protected IterableArray exitZone = new IterableArray(); + protected IterableArray entryZones = new IterableArray(10); + protected IterableArray exitZones = new IterableArray(10); protected HashMap unitEntry = new HashMap(); protected HashMap unitExit = new HashMap(); @@ -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); } -- cgit v1.2.3