Début d'interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user