|
|
@ -30,11 +30,37 @@ public void equiper(Armure armure) {
|
|
|
|
public void seDeplacer(Salle salle) {
|
|
|
|
public void seDeplacer(Salle salle) {
|
|
|
|
this.salle=salle;
|
|
|
|
this.salle=salle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public void allerMarche(Salle salle){
|
|
|
|
public void allerMarche(Salle marche){
|
|
|
|
this.salle=salle;
|
|
|
|
this.salle=marche;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public void soin() {
|
|
|
|
public void soin() {
|
|
|
|
this.pVie=this.pVieMax;
|
|
|
|
this.pVie=this.pVieMax;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public void attaquer(Monstre monstre) {
|
|
|
|
|
|
|
|
if(arme!=null) {
|
|
|
|
|
|
|
|
monstre.pVie=monstre.pVie-(arme.getpArme()+getpAttaque());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
monstre.pVie=monstre.pVie=getpAttaque();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void getBourse() {
|
|
|
|
|
|
|
|
System.out.println(this.getBourse(););
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @return the arme
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public Arme getArme() {
|
|
|
|
|
|
|
|
return arme;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @return the armure
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public Armure getArmure() {
|
|
|
|
|
|
|
|
return armure;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|