|
|
@ -101,16 +101,6 @@ public enum ZoneManager { |
|
|
|
return zone; |
|
|
|
return zone; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void addZone(final int zoneID, final Zone zone) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZoneManager.zonesByID.put(zoneID, zone); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZoneManager.zonesByUUID.put(zone.getObjectUUID(), zone); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZoneManager.zonesByName.put(zone.zoneName.toLowerCase(), zone); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Returns the number of available hotZones
|
|
|
|
// Returns the number of available hotZones
|
|
|
|
// remaining in this cycle (1am)
|
|
|
|
// remaining in this cycle (1am)
|
|
|
|
|
|
|
|
|
|
|
@ -173,24 +163,23 @@ public enum ZoneManager { |
|
|
|
return (Bounds.collide(loc, ZoneManager.hotZone.bounds)); |
|
|
|
return (Bounds.collide(loc, ZoneManager.hotZone.bounds)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void setSeaFloor(final Zone value) { |
|
|
|
public static void populateZoneCollections(final Zone zone) { |
|
|
|
ZoneManager.seaFloor = value; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void populateWorldZones(final Zone zone) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int loadNum = zone.template; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Zones are added to separate
|
|
|
|
// Zones are added to separate
|
|
|
|
// collections for quick access
|
|
|
|
// collections for quick access
|
|
|
|
// based upon their type.
|
|
|
|
// based upon their type.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZoneManager.zonesByID.put(zone.template, zone); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZoneManager.zonesByUUID.put(zone.getObjectUUID(), zone); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ZoneManager.zonesByName.put(zone.zoneName.toLowerCase(), zone); |
|
|
|
|
|
|
|
|
|
|
|
if (zone.isMacroZone()) { |
|
|
|
if (zone.isMacroZone()) { |
|
|
|
addMacroZone(zone); |
|
|
|
addMacroZone(zone); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (zone.guild_zone) { |
|
|
|
if (zone.guild_zone) { |
|
|
|
addPlayerCityZone(zone); |
|
|
|
addPlayerCityZone(zone); |
|
|
|
return; |
|
|
|
return; |
|
|
|