diff --git a/core/src/netwerkprog/game/util/game/GameCharacter.java b/core/src/netwerkprog/game/util/game/GameCharacter.java index 21e6219..3a740ee 100644 --- a/core/src/netwerkprog/game/util/game/GameCharacter.java +++ b/core/src/netwerkprog/game/util/game/GameCharacter.java @@ -1,11 +1,14 @@ package netwerkprog.game.util.game; + +import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.scenes.scene2d.Actor; import java.util.Arrays; import java.util.HashSet; + import java.util.Objects; public abstract class GameCharacter extends Actor implements Comparable { @@ -14,7 +17,6 @@ public abstract class GameCharacter extends Actor implements Comparable abilities; protected boolean override; protected TextureRegion textureRegion; - protected SpriteBatch batch; public GameCharacter(String name, Faction faction, TextureRegion textureRegion, Ability... abilities) { this.name = name; @@ -22,7 +24,6 @@ public abstract class GameCharacter extends Actor implements Comparable(Arrays.asList(abilities)); this.override = false; this.textureRegion = textureRegion; - batch = new SpriteBatch(); } public void addAbilities(Ability ability) { @@ -45,12 +46,6 @@ public abstract class GameCharacter extends Actor implements Comparable