diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-09 19:12:58 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-09 19:12:58 +0100 |
commit | 62c2956bf688f9d7ae7b00070828becb7822350f (patch) | |
tree | cb21c5dca21969ce9db5155073d5a6719c3ecadb | |
parent | d4e5e1f73b6ac7e0b06a2fe749b8f90376df9f91 (diff) | |
download | RustAndDust-62c2956bf688f9d7ae7b00070828becb7822350f.zip RustAndDust-62c2956bf688f9d7ae7b00070828becb7822350f.tar.gz |
Engagement: use ArrayListIt instead of LinkedList
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Engagement.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Engagement.java b/core/src/ch/asynk/rustanddust/game/Engagement.java index f1edfba..858792e 100644 --- a/core/src/ch/asynk/rustanddust/game/Engagement.java +++ b/core/src/ch/asynk/rustanddust/game/Engagement.java @@ -1,12 +1,13 @@ package ch.asynk.rustanddust.game; import java.util.List; -import java.util.LinkedList; import java.util.Random; import com.badlogic.gdx.utils.Pool; import com.badlogic.gdx.utils.Disposable; +import ch.asynk.rustanddust.engine.util.ArrayListIt; + public class Engagement implements Disposable, Pool.Poolable { private static Random rand = new Random(); @@ -51,7 +52,7 @@ public class Engagement implements Disposable, Pool.Poolable public Engagement() { - assists = new LinkedList<Unit>(); + assists = new ArrayListIt<Unit>(10); reset(); } |