Vorarbeit für savefile
This commit is contained in:
parent
3a8a5deda7
commit
9049d1a26f
@ -22,6 +22,13 @@ public class Player extends Fightable implements Health {
|
||||
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) {
|
||||
health = health - damage;
|
||||
if (health <= 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user