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

modif affichage vie ennemi

parent c13b6c91
Branches
No related tags found
No related merge requests found
...@@ -32,7 +32,7 @@ public class Enemy extends Character{ ...@@ -32,7 +32,7 @@ public class Enemy extends Character{
public String toString() { 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() { public Characteristics getCharacteristic() {
......
package bitFight; package bitFight;
import java.io.BufferedReader;
import java.io.IOException; import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList; import java.util.ArrayList;
public class Input { public class Input {
......
...@@ -70,7 +70,7 @@ public class Level{ ...@@ -70,7 +70,7 @@ public class Level{
// affiche la jauge de vie de l'ennemi // affiche la jauge de vie de l'ennemi
public String displayEnnemyHealth() { 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 // 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