@ -101,16 +101,6 @@ public enum ZoneManager {
@@ -101,16 +101,6 @@ public enum ZoneManager {
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
// remaining in this cycle (1am)
@ -173,24 +163,23 @@ public enum ZoneManager {
@@ -173,24 +163,23 @@ public enum ZoneManager {
return ( Bounds . collide ( loc , ZoneManager . hotZone . bounds ) ) ;
}
public static void setSeaFloor ( final Zone value ) {
ZoneManager . seaFloor = value ;
}
public static void populateWorldZones ( final Zone zone ) {
int loadNum = zone . template ;
public static void populateZoneCollections ( final Zone zone ) {
// Zones are added to separate
// collections for quick access
// 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 ( ) ) {
addMacroZone ( zone ) ;
return ;
}
if ( zone . guild_zone ) {
addPlayerCityZone ( zone ) ;
return ;