forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathL2ZoneForm.cs
More file actions
24 lines (17 loc) · 710 Bytes
/
Copy pathL2ZoneForm.cs
File metadata and controls
24 lines (17 loc) · 710 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace L2dotNET.Models.Zones.forms
{
public abstract class L2ZoneForm
{
protected static int STEP = 20;
public abstract bool IsInsideZone(int x, int y, int z);
public abstract bool IntersectsRectangle(int x1, int x2, int y1, int y2);
public abstract double GetDistanceToZone(int x, int y);
public abstract int GetLowZ();
public abstract int GetHighZ();
protected bool LineSegmentsIntersect(int ax1, int ay1, int ax2, int ay2, int bx1, int by1, int bx2, int by2)
{
return false;//MathHelper.LineIntersect(ax1, ay1, ax2, ay2, bx1, by1, bx2, by2);
}
public abstract void VisualizeZone(int z);
}
}