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

avancée sur la base de donnée des attaques et discours

This commit is contained in:
Fastium
2022-06-08 23:30:15 +02:00
parent 1a84524e14
commit aaeb151c43
14 changed files with 226 additions and 28 deletions

View File

@ -1,6 +1,6 @@
package Entity;
import Text.FightData;
import Text.TextEnemy;
import com.badlogic.gdx.math.Vector2;
@ -8,12 +8,13 @@ import ch.hevs.gdx2d.lib.GdxGraphics;
public class Enemy extends Character{
public FightData fightData;
public TextEnemy textEnemy;
public Enemy(String name, int x, int y, String img) {
super(name, x, y, img);
//generate the vector of fight
fightData = new FightData(name);
//generate his text
this.textEnemy = new TextEnemy(name);
textEnemy.generateText();
//TODO Auto-generated constructor stub
}