|
|
@ -39,7 +39,7 @@ public class Zone extends AbstractGameObject { |
|
|
|
public final float zOffset; |
|
|
|
public final float zOffset; |
|
|
|
public final float yOffset; |
|
|
|
public final float yOffset; |
|
|
|
public final int zoneTemplate; |
|
|
|
public final int zoneTemplate; |
|
|
|
public final byte peaceZone; |
|
|
|
public final byte peace_zone; |
|
|
|
public final String Icon1; |
|
|
|
public final String Icon1; |
|
|
|
public final String Icon2; |
|
|
|
public final String Icon2; |
|
|
|
public final String Icon3; |
|
|
|
public final String Icon3; |
|
|
@ -54,7 +54,7 @@ public class Zone extends AbstractGameObject { |
|
|
|
public Zone parent = null; |
|
|
|
public Zone parent = null; |
|
|
|
public Bounds bounds; |
|
|
|
public Bounds bounds; |
|
|
|
public boolean isNPCCity = false; |
|
|
|
public boolean isNPCCity = false; |
|
|
|
public boolean isGuildZone; |
|
|
|
public boolean guild_zone; |
|
|
|
public String hash; |
|
|
|
public String hash; |
|
|
|
public float worldAltitude = 0; |
|
|
|
public float worldAltitude = 0; |
|
|
|
public float seaLevel = 0f; |
|
|
|
public float seaLevel = 0f; |
|
|
@ -69,13 +69,13 @@ public class Zone extends AbstractGameObject { |
|
|
|
super(rs); |
|
|
|
super(rs); |
|
|
|
this.parentZoneID = rs.getInt("parent"); |
|
|
|
this.parentZoneID = rs.getInt("parent"); |
|
|
|
this.playerCityUUID = rs.getInt("playerCityUUID"); |
|
|
|
this.playerCityUUID = rs.getInt("playerCityUUID"); |
|
|
|
this.isGuildZone = this.playerCityUUID != 0; |
|
|
|
this.guild_zone = this.playerCityUUID != 0; |
|
|
|
this.zoneName = rs.getString("zoneName"); |
|
|
|
this.zoneName = rs.getString("zoneName"); |
|
|
|
this.xOffset = rs.getFloat("xOffset"); |
|
|
|
this.xOffset = rs.getFloat("xOffset"); |
|
|
|
this.zOffset = rs.getFloat("zOffset"); |
|
|
|
this.zOffset = rs.getFloat("zOffset"); |
|
|
|
this.yOffset = rs.getFloat("yOffset"); |
|
|
|
this.yOffset = rs.getFloat("yOffset"); |
|
|
|
this.zoneTemplate = rs.getInt("template"); |
|
|
|
this.zoneTemplate = rs.getInt("template"); |
|
|
|
this.peaceZone = rs.getByte("peaceZone"); |
|
|
|
this.peace_zone = rs.getByte("peace_zone"); |
|
|
|
this.Icon1 = rs.getString("icon1"); |
|
|
|
this.Icon1 = rs.getString("icon1"); |
|
|
|
this.Icon2 = rs.getString("icon2"); |
|
|
|
this.Icon2 = rs.getString("icon2"); |
|
|
|
this.Icon3 = rs.getString("icon3"); |
|
|
|
this.Icon3 = rs.getString("icon3"); |
|
|
@ -146,7 +146,7 @@ public class Zone extends AbstractGameObject { |
|
|
|
writer.putString(city.getCityName()); |
|
|
|
writer.putString(city.getCityName()); |
|
|
|
else |
|
|
|
else |
|
|
|
writer.putString(zone.zoneName); |
|
|
|
writer.putString(zone.zoneName); |
|
|
|
writer.put(zone.peaceZone); |
|
|
|
writer.put(zone.peace_zone); |
|
|
|
writer.putString(zone.Icon1); |
|
|
|
writer.putString(zone.Icon1); |
|
|
|
writer.putString(zone.Icon2); |
|
|
|
writer.putString(zone.Icon2); |
|
|
|
writer.putString(zone.Icon3); |
|
|
|
writer.putString(zone.Icon3); |
|
|
@ -238,7 +238,7 @@ public class Zone extends AbstractGameObject { |
|
|
|
|
|
|
|
|
|
|
|
// Macro zones have icons.
|
|
|
|
// Macro zones have icons.
|
|
|
|
|
|
|
|
|
|
|
|
if (this.isGuildZone == true) |
|
|
|
if (this.guild_zone == true) |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
|
|
|
|
|
|
|
|
if (this.parent == null) |
|
|
|
if (this.parent == null) |
|
|
@ -310,7 +310,7 @@ public class Zone extends AbstractGameObject { |
|
|
|
|
|
|
|
|
|
|
|
public HeightMap getHeightMap() { |
|
|
|
public HeightMap getHeightMap() { |
|
|
|
|
|
|
|
|
|
|
|
if (this.isGuildZone) |
|
|
|
if (this.guild_zone) |
|
|
|
return HeightMap.PlayerCityHeightMap; |
|
|
|
return HeightMap.PlayerCityHeightMap; |
|
|
|
|
|
|
|
|
|
|
|
return HeightMap.heightmapByLoadNum.get(this.zoneTemplate); |
|
|
|
return HeightMap.heightmapByLoadNum.get(this.zoneTemplate); |
|
|
|