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

change the world

This commit is contained in:
Fastium
2022-06-14 01:14:54 +02:00
parent 08e2a1eed2
commit ccf38809b9
9 changed files with 62 additions and 30 deletions

View File

@ -4,9 +4,11 @@ import com.badlogic.gdx.math.Vector2;
public class Enemy extends Character{
private String branch;
public Enemy(String name, int x, int y, String img, String map, int pv) {
public Enemy(String name, int x, int y, String img, String map, int pv, String branch) {
super(name, x, y, img, map);
//generate his text
@ -14,6 +16,8 @@ public class Enemy extends Character{
turn(Character.Direction.DOWN);
this.branch = branch;
this.pv = pv;
@ -33,5 +37,9 @@ public class Enemy extends Character{
this.pv -= pv;
}
public String getBranch(){
return branch;
}
}