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

Merge branch 'master' into more-entities

This commit is contained in:
Rémi Heredero
2022-06-08 20:19:41 +02:00
committed by GitHub
28 changed files with 246 additions and 18 deletions

View File

@ -1,14 +1,23 @@
package Entity;
import Text.FightData;
import com.badlogic.gdx.math.Vector2;
import ch.hevs.gdx2d.lib.GdxGraphics;
public class Enemy extends Character{
public FightData fightData;
public Enemy(String name, int x, int y, String img) {
super(name, x, y, img);
turn(Character.Direction.DOWN);
//generate the vector of fight
fightData = new FightData(name);
//TODO Auto-generated constructor stub
}
public void setPosition(int x, int y){