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

add fight data at enemy

This commit is contained in:
Fastium
2022-06-08 20:04:16 +02:00
parent 88519adaf2
commit 0e4780ba43
4 changed files with 38 additions and 26 deletions

View File

@ -1,14 +1,21 @@
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);
//generate the vector of fight
fightData = new FightData(name);
//TODO Auto-generated constructor stub
}
public void setPosition(int x, int y){