Added waypoint methods to PlayerObject, Waypoint names and active status can now be set

This commit is contained in:
Waverunner
2015-02-09 12:31:50 -05:00
parent d342e70822
commit 7aff8a459b
4 changed files with 51 additions and 1 deletions
@@ -42,6 +42,25 @@ public class PlayerObject extends IntangibleObject {
}
}
public WaypointObject getWaypoint(long objId) {
synchronized(waypoints) {
return waypoints.get(objId);
}
}
public void updateWaypoint(WaypointObject obj) {
synchronized(waypoints) {
waypoints.update(obj.getObjectId(), this);
}
}
public void removeWaypoint(long objId) {
synchronized(waypoints) {
waypoints.remove(objId);
waypoints.sendDeltaMessage(this);
}
}
public void setExperience(String type, int value) {
experience.put(type, value);
experience.sendDeltaMessage(this);