From 7651fc9b4feaafa1c094c41f17d149e676027a1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 1 Oct 2014 12:01:37 +0200 Subject: Pawn, Image: add protected default constructor --- core/src/ch/asynk/tankontank/engine/Pawn.java | 5 +++++ core/src/ch/asynk/tankontank/engine/gfx/Image.java | 4 ++++ 2 files changed, 9 insertions(+) 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); -- cgit v1.1-2-g2b99