summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-19 09:49:38 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-19 09:49:38 +0200
commit80b5a3ee896d450525ac129c3442f0ec792523d9 (patch)
treee76d7dd103b66cef89de6f0c57030b87810ea7c8 /core/src/ch/asynk/tankontank/game
parentabab7886b47873cec83f064625e11f5eac8d205e (diff)
downloadRustAndDust-80b5a3ee896d450525ac129c3442f0ec792523d9.zip
RustAndDust-80b5a3ee896d450525ac129c3442f0ec792523d9.tar.gz
MapImage->MapNode, PawnImage->PawnNode, add Layer
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/GameFactory.java6
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameFactory.java b/core/src/ch/asynk/tankontank/game/GameFactory.java
index f5c113c..8716c49 100644
--- a/core/src/ch/asynk/tankontank/game/GameFactory.java
+++ b/core/src/ch/asynk/tankontank/game/GameFactory.java
@@ -6,7 +6,7 @@ import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import ch.asynk.tankontank.engine.Map;
-import ch.asynk.tankontank.engine.MapImage;
+import ch.asynk.tankontank.engine.MapNode;
import ch.asynk.tankontank.engine.Tile;
public class GameFactory
@@ -139,10 +139,10 @@ public class GameFactory
Map m = null;
switch(t) {
case MAP_A:
- m = new MapImage(config(), board, manager.get("images/map_a.png", Texture.class));
+ m = new MapNode(config(), board, manager.get("images/map_a.png", Texture.class));
break;
case MAP_B:
- m = new MapImage(config(), board, manager.get("images/map_b.png", Texture.class));
+ m = new MapNode(config(), board, manager.get("images/map_b.png", Texture.class));
break;
}
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 61833eb..310ead9 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -2,9 +2,9 @@ package ch.asynk.tankontank.game;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
-import ch.asynk.tankontank.engine.PawnImage;
+import ch.asynk.tankontank.engine.PawnNode;
-public class Unit extends PawnImage
+public class Unit extends PawnNode
{
public int rng;
public int def;