summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2019-12-03 11:55:50 +0100
committerGitHub <noreply@github.com>2019-12-03 11:55:50 +0100
commit6a970d009779512fea71dfad035480fc0b841a0c (patch)
tree919494d30bca3d90218aee24c653e26cafd620eb /core/src
parente3cd5c9c5ddba426f725a4ba6c64b59fc4db9718 (diff)
parente1018058e58ed01ac1b7ce852b592a313dd52fd7 (diff)
downloadgdx-boardgame-6a970d009779512fea71dfad035480fc0b841a0c.zip
gdx-boardgame-6a970d009779512fea71dfad035480fc0b841a0c.tar.gz
Merge pull request #3 from SimonIT/gwt-compatibility
Hashtable is not available on gwt, replace it with object map
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/animations/FireAnimation.java6
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,