Commit e37614d4 authored by Guillaume Dewisme's avatar Guillaume Dewisme

feat/add Abstract Entity

parent cb4071a8
package org.example;
public abstract class Entity {
private int damage;
private int pvMax;
private int pv;
private int endurance;
public void heal(){
this.pv += this.pvMax/3;
}
public boolean isAlive(){
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