diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 11:35:57 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 11:35:57 +0100 |
commit | dad7249b074500d717941e9daf0d52f60ac5395f (patch) | |
tree | d6404a447483919f70dddcc24fa3ec30277babef /core/src/ch/asynk/tankontank/game | |
parent | 91a42e7e08b8aba942d6c306dbabd6db9543e83f (diff) | |
download | RustAndDust-dad7249b074500d717941e9daf0d52f60ac5395f.zip RustAndDust-dad7249b074500d717941e9daf0d52f60ac5395f.tar.gz |
TileList: extends ArrayList<Tile>, has a default overlay index, has methods hide()/show()
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/HexList.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/core/src/ch/asynk/tankontank/game/HexList.java b/core/src/ch/asynk/tankontank/game/HexList.java index 0be4a7d..9ed95fe 100644 --- a/core/src/ch/asynk/tankontank/game/HexList.java +++ b/core/src/ch/asynk/tankontank/game/HexList.java @@ -4,8 +4,8 @@ import ch.asynk.tankontank.engine.TileList; public class HexList extends TileList { - public HexList(Map map, int n) + public HexList(Map map, int overlay, int n) { - super(map, n); + super(map, overlay, n); } } diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 8ff031a..4d66c1b 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -41,11 +41,11 @@ public abstract class Map extends Board this.explosion = new SpriteAnimation(game.manager.get("data/explosion.png", Texture.class), 10, 4, 40); this.explosions = new SpriteAnimation(game.manager.get("data/explosions.png", Texture.class), 16, 8, 15); setup(); - possibleMoves = new HexList(this, 40); - possiblePaths = new HexList(this, 10); - possibleTargets = new HexList(this, 10); - moveAssists = new HexList(this, 6); - attackAssists = new HexList(this, 6); + possibleMoves = new HexList(this, Hex.MOVE1, 40); + possiblePaths = new HexList(this, Hex.MOVE1, 10); // Hex.MOVE2 + possibleTargets = new HexList(this, Hex.TARGET, 10); + moveAssists = new HexList(this, Hex.ASSIST, 6); + attackAssists = new HexList(this, Hex.ASSIST, 6); } @Override |