1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-31 11:39:17 +00:00

enemy integration done, but big bug when move

This commit is contained in:
2022-06-10 16:39:50 +02:00
parent 1466ba041a
commit 56d57ca17c
10 changed files with 48 additions and 47 deletions

View File

@@ -5,16 +5,14 @@ import com.badlogic.gdx.math.Vector2;
import Text.TextEnemy;
public class Enemy extends Character{
private String map;
public TextEnemy textEnemy;
public Enemy(String name, int x, int y, String img, String map) {
super(name, x, y, img);
super(name, x, y, img, map);
//generate his text
this.textEnemy = new TextEnemy("enemi"); //TODO should be name
textEnemy.generateText();
this.map = map;
turn(Character.Direction.DOWN);
//generate the vector of fight
@@ -22,10 +20,6 @@ public class Enemy extends Character{
}
public String getMap() {
return map;
}
public void setPosition(int x, int y, String map){
position.set(x, y);
this.map = map;