Job + Spell merge #9
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user