From e1018058e58ed01ac1b7ce852b592a313dd52fd7 Mon Sep 17 00:00:00 2001 From: SimonIT Date: Mon, 2 Dec 2019 13:21:43 +0100 Subject: Hashtable is not available on gwt, replace with object map --- core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java | 6 ++---- 1 file 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 configs = new Hashtable(); + private static ObjectMap configs = new ObjectMap(); public static void register(final String name, int burstCount, -- cgit v1.1-2-g2b99