Vorarbeit für savefile

This commit is contained in:
Makussu 2024-06-08 00:43:15 +02:00
parent 3a8a5deda7
commit 9049d1a26f

View File

@ -22,6 +22,13 @@ public class Player extends Fightable implements Health {
this.skills.add(new Tritt(window, (Fightable) window.player)); this.skills.add(new Tritt(window, (Fightable) window.player));
} }
Player(Fenster window, int exp, Position pos, int level) {
super(window);
this.experience = exp;
this.pos = pos;
this.level = level;
}
public void damage(int damage) { public void damage(int damage) {
health = health - damage; health = health - damage;
if (health <= 0) { if (health <= 0) {