You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
370 B
Java
27 lines
370 B
Java
/**
|
|
*
|
|
*/
|
|
package modeles;
|
|
|
|
/**
|
|
* @author flavien
|
|
*
|
|
*/
|
|
public class Potion extends Objet {
|
|
|
|
public String getType() {
|
|
return "Potion";
|
|
}
|
|
|
|
public Potion(int valeur) {
|
|
super("potion", valeur, 1);
|
|
}
|
|
|
|
public void utilisation() {
|
|
super.utilisation();
|
|
this.getProprietaire().soin(this.getProprietaire().getpVieMax());
|
|
}
|
|
|
|
|
|
}
|