Sync with L2jServer HighFive Mar 25th 2015.

This commit is contained in:
MobiusDev
2015-03-25 06:48:51 +00:00
parent e0c66b1412
commit 82606870c0
194 changed files with 2619 additions and 2869 deletions

View File

@ -18,8 +18,8 @@
*/
package com.l2jserver.gameserver.model;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.logging.Logger;
import com.l2jserver.util.Rnd;
@ -46,7 +46,7 @@ public class L2Territory
}
}
private final List<Point> _points;
private final List<Point> _points = new CopyOnWriteArrayList<>();
private final int _terr;
private int _xMin;
private int _xMax;
@ -58,7 +58,6 @@ public class L2Territory
public L2Territory(int terr)
{
_points = new ArrayList<>();
_terr = terr;
_xMin = 999999;
_xMax = -999999;
@ -99,14 +98,6 @@ public class L2Territory
_procMax += proc;
}
public void print()
{
for (Point p : _points)
{
_log.info("(" + p._x + "," + p._y + ")");
}
}
public boolean isIntersect(int x, int y, Point p1, Point p2)
{
double dy1 = p1._y - y;