diff options
author | SimonIT <simonit.orig@gmail.com> | 2019-12-02 13:21:43 +0100 |
---|---|---|
committer | SimonIT <simonit.orig@gmail.com> | 2019-12-02 13:21:43 +0100 |
commit | e1018058e58ed01ac1b7ce852b592a313dd52fd7 (patch) | |
tree | 3839527ef30f02b91c7fe78a2ba637d995a1ab6e /core/src/ch/asynk/gdx/boardgame/animations | |
parent | 428fbc2d6b4e5d1bffcbb9a92ce1760e56363a55 (diff) | |
download | gdx-boardgame-e1018058e58ed01ac1b7ce852b592a313dd52fd7.zip gdx-boardgame-e1018058e58ed01ac1b7ce852b592a313dd52fd7.tar.gz |
Hashtable is not available on gwt, replace with object map
Diffstat (limited to 'core/src/ch/asynk/gdx/boardgame/animations')
-rw-r--r-- | core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java b/core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java index d8cf5d7..a8b4546 100644 --- a/core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java +++ b/core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java @@ -1,12 +1,10 @@ package ch.asynk.gdx.boardgame.animations; -import java.util.Hashtable; -import java.util.Map; - import com.badlogic.gdx.audio.Sound; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.math.Vector2; +import com.badlogic.gdx.utils.ObjectMap; import com.badlogic.gdx.utils.Pool; import ch.asynk.gdx.boardgame.FramedSprite; @@ -47,7 +45,7 @@ public class FireAnimation implements Animation, Pool.Poolable } } - private static Map<String, Config> configs = new Hashtable<String, Config>(); + private static ObjectMap<String, Config> configs = new ObjectMap<String, Config>(); public static void register(final String name, int burstCount, |