Skip to content
Snippets Groups Projects
Commit 837734af authored by Charlie Darques's avatar Charlie Darques
Browse files

modif affichage vie ennemi

parent c13b6c91
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ public class Enemy extends Character{
public String toString() {
return name + " LE " + characteristic.name() + " : level " + this.level + " - Current life level : " + (int)this.currentHealth;
return name + " LE " + characteristic.name() + " : level " + this.level;
}
public Characteristics getCharacteristic() {
......
package bitFight;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Input {
......
......@@ -70,7 +70,7 @@ public class Level{
// affiche la jauge de vie de l'ennemi
public String displayEnnemyHealth() {
return (int)this.ennemy.getCurrentHealth() +"/" + (int)this.ennemy.getMaxHealth();
return this.ennemy.toString() + " - " + (int)this.ennemy.getCurrentHealth() +"/" + (int)this.ennemy.getMaxHealth();
}
// affiche la jauge de vie du joueur
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment