SAe/SAe2.1/commentente/SAé/Potion.java

20 lines
305 B
Java
Raw Normal View History

2023-05-19 17:13:41 +02:00
public class Potion extends CaseBonus{
public int value;
public Potion(int v, int x, int y){
super(x, y, "potion");
this.value = v;
}
public String getLabel(){
return (""+this.value);
}
public int getValue(){
return this.value;
}
public void setValue(int val){
this.value = val;
}
}