Created CityService that will auto-update a player's current city

This commit is contained in:
Obique PSWG
2015-08-15 03:33:28 -05:00
parent 4ec22cdbf0
commit f4a7a302b0
5 changed files with 182 additions and 9 deletions
@@ -92,6 +92,7 @@ public class CreatureObject extends TangibleObject {
private long ownerId = 0;
private int battleFatigue = 0;
private long statesBitmask = 0;
private String currentCity = "";
private HologramColour hologramColour = HologramColour.DEFAULT;
private SWGList<Integer> baseAttributes = new SWGList<Integer>(BaselineType.CREO, 1, 2);
@@ -256,6 +257,10 @@ public class CreatureObject extends TangibleObject {
return difficulty;
}
public String getCurrentCity() {
return currentCity;
}
public PlayerObject getPlayerObject() {
return (PlayerObject) (hasSlot("ghost") ? getSlottedObject("ghost") : null);
}
@@ -417,6 +422,10 @@ public class CreatureObject extends TangibleObject {
sendDelta(6, 26, difficulty.getDifficulty());
}
public void setCurrentCity(String currentCity) {
this.currentCity = currentCity;
}
public String getMoodAnimation() {
return moodAnimation;
}