|
|
@ -46,7 +46,6 @@ public enum InterestManager implements Runnable { |
|
|
|
LoadCharacterMsg lcm; |
|
|
|
LoadCharacterMsg lcm; |
|
|
|
NPC npc; |
|
|
|
NPC npc; |
|
|
|
Corpse corpse; |
|
|
|
Corpse corpse; |
|
|
|
PlayerCharacter pc; |
|
|
|
|
|
|
|
HashSet<AbstractWorldObject> toUpdate; |
|
|
|
HashSet<AbstractWorldObject> toUpdate; |
|
|
|
|
|
|
|
|
|
|
|
switch (awo.getObjectType()) { |
|
|
|
switch (awo.getObjectType()) { |
|
|
@ -65,11 +64,6 @@ public enum InterestManager implements Runnable { |
|
|
|
lcm = new LoadCharacterMsg(npc, false); |
|
|
|
lcm = new LoadCharacterMsg(npc, false); |
|
|
|
msg = lcm; |
|
|
|
msg = lcm; |
|
|
|
break; |
|
|
|
break; |
|
|
|
case PlayerCharacter: |
|
|
|
|
|
|
|
pc = (PlayerCharacter) awo; |
|
|
|
|
|
|
|
lcm = new LoadCharacterMsg(pc, false); |
|
|
|
|
|
|
|
msg = lcm; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
default: |
|
|
|
default: |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -112,7 +106,7 @@ public enum InterestManager implements Runnable { |
|
|
|
origin.sendMsg(moveMsg); |
|
|
|
origin.sendMsg(moveMsg); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void reloadCharacter(AbstractCharacter absChar, boolean fromBox) { |
|
|
|
public static void reloadCharacter(AbstractCharacter absChar) { |
|
|
|
|
|
|
|
|
|
|
|
UnloadObjectsMsg uom = new UnloadObjectsMsg(); |
|
|
|
UnloadObjectsMsg uom = new UnloadObjectsMsg(); |
|
|
|
uom.addObject(absChar); |
|
|
|
uom.addObject(absChar); |
|
|
@ -138,9 +132,8 @@ public enum InterestManager implements Runnable { |
|
|
|
if (cc == null) |
|
|
|
if (cc == null) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
|
|
if (pcc.getObjectUUID() == absChar.getObjectUUID()) { |
|
|
|
if (pcc.getObjectUUID() == absChar.getObjectUUID()) |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else { |
|
|
|
else { |
|
|
|
if (pc != null) |
|
|
|
if (pc != null) |
|
|
@ -538,7 +531,6 @@ public enum InterestManager implements Runnable { |
|
|
|
// Update loaded upbjects lists
|
|
|
|
// Update loaded upbjects lists
|
|
|
|
|
|
|
|
|
|
|
|
player.isBoxed = PlayerCharacter.checkIfBoxed(player); |
|
|
|
player.isBoxed = PlayerCharacter.checkIfBoxed(player); |
|
|
|
//player.updateBoxStatus(PlayerCharacter.checkIfBoxed(player));
|
|
|
|
|
|
|
|
player.setDirtyLoad(true); |
|
|
|
player.setDirtyLoad(true); |
|
|
|
updateStaticList(player, origin); |
|
|
|
updateStaticList(player, origin); |
|
|
|
updateMobileList(player, origin); |
|
|
|
updateMobileList(player, origin); |
|
|
|