Début d'interface

This commit is contained in:
2025-02-10 11:51:22 +01:00
parent c52812f8f6
commit ce222cb614
8 changed files with 589 additions and 46 deletions

View File

@@ -156,6 +156,21 @@ public class Personnage {
this.nom = nom;
}
/**
* R<>sume les informations sur le personnage
* @return Informations du personnage
*/
public String resumerPersonnage() {
String str = "";
str += "Nom "+this.getNom()+"\n";
str += "<EFBFBD>nergie "+this.getEnergie()+"\n";
str += "Dur<EFBFBD>e de vie "+this.getDureeVie()+"\n";
str += "Civil arme : Aucune\n";
return str;
}
/**
* Initie la rencontre avec un autre personnage
* @param unPerso un Personnage