1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-03-14 14:54:33 +00:00
PokeHES/src/Entity/Enemy.java

48 lines
1.0 KiB
Java
Raw Normal View History

2022-05-25 15:32:53 +02:00
package Entity;
2022-06-09 19:15:11 +02:00
import Text.FightData;
import Text.TextEnemy;
2022-06-08 20:04:16 +02:00
2022-06-01 16:47:53 +02:00
import com.badlogic.gdx.math.Vector2;
2022-06-07 21:35:13 +02:00
import ch.hevs.gdx2d.lib.GdxGraphics;
2022-05-25 15:32:53 +02:00
public class Enemy extends Character{
2022-06-09 17:32:47 +02:00
private String map;
2022-06-07 21:35:13 +02:00
public TextEnemy textEnemy;
2022-06-08 20:04:16 +02:00
2022-06-09 17:32:47 +02:00
public Enemy(String name, int x, int y, String img, String map) {
2022-06-07 21:35:13 +02:00
super(name, x, y, img);
//generate his text
2022-06-09 19:15:11 +02:00
this.textEnemy = new TextEnemy("enemi"); //TODO should be name
textEnemy.generateText();
2022-06-09 17:32:47 +02:00
this.map = map;
2022-06-08 20:04:16 +02:00
2022-06-08 20:08:18 +02:00
turn(Character.Direction.DOWN);
2022-06-08 20:04:16 +02:00
//generate the vector of fight
2022-06-09 19:15:11 +02:00
//FightData fightData = new FightData(name);
2022-06-01 16:47:53 +02:00
}
2022-06-09 17:32:47 +02:00
public String getMap() {
return map;
2022-06-01 16:47:53 +02:00
}
2022-06-09 17:32:47 +02:00
public void setPosition(int x, int y, String map){
position.set(x, y);
this.map = map;
2022-06-01 16:47:53 +02:00
}
2022-06-09 17:32:47 +02:00
public void setPosition(Vector2 vPosition, String map){
setPosition((int)vPosition.x, (int)vPosition.y, map);
2022-06-01 16:47:53 +02:00
}
2022-06-07 21:35:13 +02:00
@Override
2022-06-01 16:47:53 +02:00
protected void removedPv(int pv) {
2022-06-07 21:35:13 +02:00
// TODO Auto-generated method stub
}
2022-06-01 16:47:53 +02:00
2022-05-25 15:32:53 +02:00
}