1
0
mirror of https://github.com/Klagarge/PokeHES.git synced 2025-07-07 17:01:10 +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;
}

View File

@ -12,7 +12,7 @@ import Screen.ScreenMap;
public class Player extends Character{
private int xp;
private int xp = 0;
public Enemy lastEnemy = null;
public boolean onEnemy = false;
@ -21,7 +21,7 @@ public class Player extends Character{
}
public void addXp(int xp){
this.xp += xp;
}
public void manageEntity(ScreenMap sm, Controller c) {