Job + Spell merge #9

Merged
erns6604 merged 23 commits from Job into main 2025-10-27 12:18:22 +01:00
Showing only changes of commit a5620a7611 - Show all commits

View File

@@ -14,7 +14,7 @@ import java.util.List;
public class Player extends Entity implements Movable, Actor, HasInventory, HasJob, HasHealth { public class Player extends Entity implements Movable, Actor, HasInventory, HasJob, HasHealth {
protected int health; protected int health;
protected Job job; protected Job job;
protected Position position; protected Position position = new Position(0,0);
protected Inventory inventory= new Inventory(); protected Inventory inventory= new Inventory();
public Player(String name, Job job) { public Player(String name, Job job) {
super(name); super(name);
@@ -35,7 +35,7 @@ public class Player extends Entity implements Movable, Actor, HasInventory, HasJ
@Override @Override
public boolean canMoveTo(Position position) { public boolean canMoveTo(Position position) {
return false; return true;
} }
public Job getJob() { public Job getJob() {
return job; return job;