22 lines
289 B
Java
22 lines
289 B
Java
|
public class Monstre extends Case{
|
||
|
|
||
|
private int pv;
|
||
|
|
||
|
public Monstre(int pdv, int x, int y){
|
||
|
super(x, y, "monstre");
|
||
|
this.pv = pdv;
|
||
|
}
|
||
|
|
||
|
public String getLabelPv(){
|
||
|
return (""+this.pv);
|
||
|
}
|
||
|
|
||
|
public int getPv(){
|
||
|
return this.pv;
|
||
|
}
|
||
|
|
||
|
public void setPv(int pdv){
|
||
|
this.pv=pdv;
|
||
|
}
|
||
|
|
||
|
}
|