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:
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user