diff --git a/src/main/java/cactusServer/entities/Character.java b/src/main/java/cactusServer/entities/Character.java index cc22cf3..a8f67f2 100644 --- a/src/main/java/cactusServer/entities/Character.java +++ b/src/main/java/cactusServer/entities/Character.java @@ -15,17 +15,19 @@ private String name; private Position3D position; private Angle angle; -// private Model model; + private Model model; private String areaURI; private HashMap itemMap = new HashMap<>(); private static final int UNIQUE_ID_LENGTH = 12; - public Character(String accountURI, String name, Position3D position, String areaId) { + public Character(String accountURI, String name, Position3D position, Angle angle, Model model) { this.accountURI = accountURI; this.name = name; this.position = position; - this.areaURI = areaId; + this.angle = angle; + this.model = model; + updateAreaURI(); } public String getAccountURI() { @@ -40,7 +42,15 @@ return position; } - public String getAreaId() { + public Angle getAngle() { + return angle; + } + + public Model getModel() { + return model; + } + + public String getAreaURI() { return areaURI; } @@ -97,6 +107,10 @@ return item; } + private void updateAreaURI() { + + } + public Item destroyItem(String itemId) { return itemMap.remove(itemId); }