diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-01 12:01:37 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-01 12:01:37 +0200 |
commit | 7651fc9b4feaafa1c094c41f17d149e676027a1c (patch) | |
tree | da6740659ddc9798300f75931b98aaf87c9f5658 | |
parent | 32705832a647b2f882da07b27d274bfda3de5344 (diff) | |
download | RustAndDust-7651fc9b4feaafa1c094c41f17d149e676027a1c.zip RustAndDust-7651fc9b4feaafa1c094c41f17d149e676027a1c.tar.gz |
Pawn, Image: add protected default constructor
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 5 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/gfx/Image.java | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index be3c04c..b669bb7 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -31,6 +31,11 @@ public abstract class Pawn extends Image implements Disposable public abstract int getAngleOfAttack(); public abstract int getAttackRangeFrom(Tile tile); + protected Pawn() + { + super(); + } + public Pawn(TextureRegion pawn, TextureAtlas overlays) { super(pawn); diff --git a/core/src/ch/asynk/tankontank/engine/gfx/Image.java b/core/src/ch/asynk/tankontank/engine/gfx/Image.java index fcfc4c8..b7771ea 100644 --- a/core/src/ch/asynk/tankontank/engine/gfx/Image.java +++ b/core/src/ch/asynk/tankontank/engine/gfx/Image.java @@ -10,6 +10,10 @@ public class Image extends Sprite implements Moveable, Disposable { private Texture texture; + protected Image() + { + } + public Image(Texture texture) { super(texture); |