| 1 | == constraint(area) == |
| 2 | This is the constructor. It defines the area the constraint(s) will pertain to. |
| 3 | == preventOverlap() == |
| 4 | This method prevents an object or area from overlapping the defined area. |
| 5 | == preventExit() == |
| 6 | This method forces an object or area to reamin within the defined area. |
| 7 | == distance(min, max) == |
| 8 | This method defines the minimum and maximum distance an object or area can be from the defined area. |
| 9 | == surfaceDist(passable, min, max) == |
| 10 | This method defines the minimum and maximum distance the defined area can be from a passable or impassable area (land and water basically). |
| 11 | == setObject(object) == |
| 12 | This method defines the object(s) that must adhere to the constraints. |
| 13 | == setArea(area) == |
| 14 | This method defines the area(s) that must adhere to the constraints. |