mirror of
				https://github.com/Klagarge/PokeHES.git
				synced 2025-10-31 11:39:17 +00:00 
			
		
		
		
	xp modification
This commit is contained in:
		| @@ -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; | ||||
|          | ||||
|     } | ||||
|      | ||||
|   | ||||
| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user