Browse Source

Minor reformat

hull7
MagicBot 12 months ago
parent
commit
9d2d2b9e3d
  1. 13
      src/engine/gameManager/BuildingManager.java

13
src/engine/gameManager/BuildingManager.java

@ -49,6 +49,7 @@ public enum BuildingManager { @@ -49,6 +49,7 @@ public enum BuildingManager {
public static HashMap<Integer, ConcurrentHashMap<Integer, BuildingFriends>> _buildingFriends = new HashMap<>();
public static HashMap<Integer, ConcurrentHashMap<Integer, Condemned>> _buildingCondemned = new HashMap<>();
public static HashMap<Integer, ArrayList<Vector3fImmutable>> _buildingPatrolPoints = new HashMap<>();
public static int getAvailableSlot(Building building) {
ArrayList<BuildingLocation> slotLocations = _slotLocations.get(building.meshUUID);
@ -145,10 +146,7 @@ public enum BuildingManager { @@ -145,10 +146,7 @@ public enum BuildingManager {
if (Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isInnerCouncil(player.getGuildStatus()))
return true;
if (Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isGuildLeader(player.getGuildStatus()))
return true;
return false;
return Guild.sameGuild(building.getGuild(), player.getGuild()) && GuildStatusController.isGuildLeader(player.getGuildStatus());
//TODO test friends list once added
//does not meet above criteria. Cannot access.
@ -1029,13 +1027,11 @@ public enum BuildingManager { @@ -1029,13 +1027,11 @@ public enum BuildingManager {
// Build Path from vertices
for (Vector2f vertex : vertices) {
for (Vector2f vertex : vertices)
if (outPath.getCurrentPoint() == null)
outPath.moveTo(vertex.x, vertex.y);
else
outPath.lineTo(vertex.x, vertex.y);
}
outPath.closePath();
return outPath;
@ -1047,7 +1043,8 @@ public enum BuildingManager { @@ -1047,7 +1043,8 @@ public enum BuildingManager {
building.meshes = new ArrayList<>();
if(_hull_data.get(building.meshUUID) == null || _hull_data.get(building.meshUUID).size() < 1)
if (_hull_data.get(building.meshUUID) == null ||
_hull_data.get(building.meshUUID).size() < 1)
return;
for (Path2D.Float path : _hull_data.get(building.meshUUID)) {

Loading…
Cancel
Save