1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-10-31 03:39:16 +00:00

xp modification

This commit is contained in:
Fastium
2022-06-13 23:11:17 +02:00
parent b4a899bdcd
commit 744b160542
5 changed files with 27 additions and 20 deletions

View File

@@ -6,15 +6,16 @@ public class Enemy extends Character{
public Enemy(String name, int x, int y, String img, String map) {
public Enemy(String name, int x, int y, String img, String map, int pv) {
super(name, x, y, img, map);
//generate his text
this.map = map;
turn(Character.Direction.DOWN);
//generate the vector of fight
//FightData fightData = new FightData(name);
this.pv = pv;
}
@@ -28,8 +29,8 @@ public class Enemy extends Character{
}
@Override
protected void removedPv(int pv) {
// TODO Auto-generated method stub
public void removedPv(int pv) {
this.pv -= pv;
}