Commit a226e538 authored by Guillaume Dewisme's avatar Guillaume Dewisme

feat/getters and setters Entity

parent e37614d4
...@@ -11,6 +11,38 @@ public abstract class Entity { ...@@ -11,6 +11,38 @@ public abstract class Entity {
this.pv += this.pvMax/3; this.pv += this.pvMax/3;
} }
public int getDamage() {
return this.damage;
}
public void setDamage(int damage) {
this.damage = damage;
}
public int getPvMax() {
return this.pvMax;
}
public void setPvMax(int pvMax) {
this.pvMax = pvMax;
}
public int getPv() {
return this.pv;
}
public void setPv(int pv) {
this.pv = pv;
}
public int getEndurance() {
return this.endurance;
}
public void setEndurance(int endurance) {
this.endurance = endurance;
}
public boolean isAlive(){ public boolean isAlive(){
return (this.pv > 0); return (this.pv > 0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment