summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust/engine/Pawn.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine/Pawn.java')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Pawn.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Pawn.java b/core/src/ch/asynk/rustanddust/engine/Pawn.java
index 43de4f4..ce5fb58 100644
--- a/core/src/ch/asynk/rustanddust/engine/Pawn.java
+++ b/core/src/ch/asynk/rustanddust/engine/Pawn.java
@@ -7,6 +7,7 @@ import com.badlogic.gdx.utils.Disposable;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
+import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
@@ -78,12 +79,12 @@ public abstract class Pawn implements Moveable, Disposable
this.attack = new Attack(this);
}
- public Pawn(Faction faction, String name, TextureAtlas pawns, TextureAtlas overlays)
+ public Pawn(Faction faction, AtlasRegion body, TextureAtlas overlays)
{
this();
this.faction = faction;
this.descr = descr;
- this.sprite = new Sprite(pawns.findRegion(name));
+ this.sprite = new Sprite(body);
this.overlays = new StackedImages(overlays);
}