public class PathSearcher
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PathSearcher.PathResult |
Modifier and Type | Field and Description |
---|---|
protected static PathSearcher |
instance |
protected static Logger |
log |
protected static boolean |
logAll |
protected PathInfo |
pathInfo |
protected java.util.Map<java.lang.String,QuadTree<PathModelElement>> |
quadTrees |
protected java.lang.String |
terrainString |
Modifier | Constructor and Description |
---|---|
protected |
PathSearcher(PathInfo pathInfo,
Geometry geometry) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildQuadTrees(Geometry geometry) |
static void |
createPathSearcher(PathInfo pathInfo,
Geometry geometry) |
protected int |
findCornerOnPathToPortal(AOVector loc,
PathObjectLocation poLoc,
AOVector entryPortalLoc) |
PathIntersection |
findFirstObstacle(java.lang.String type,
AOVector loc1,
AOVector loc2) |
protected PathObject |
findModelAtLocation(java.lang.String type,
AOVector loc) |
static PathObjectLocation |
findModelLocation(PathObject pathObject,
AOVector loc) |
PathObjectLocation |
findModelLocation(java.lang.String type,
AOVector loc) |
static PathFinderValue |
findPath(OID playerOid,
PathObject pathObject,
AOVector loc1,
AOVector loc2,
float halfWidth)
This entrypoint is used only for in-room player pathing.
|
static PathFinderValue |
findPath(java.lang.String type,
AOVector loc1,
AOVector loc2,
boolean followsTerrain) |
protected boolean |
findPathInModel(PathFinderValue value,
PathObjectLocation poLoc1,
PathObjectLocation poLoc2,
float halfWidth) |
PathSearcher.PathResult |
findPathThroughTerrain(PathFinderValue value,
java.lang.String type,
AOVector loc1,
AOVector loc2,
PathObjectLocation poLoc2,
AOVector entryPortalLoc,
float halfWidth,
boolean haveStartModel,
boolean haveEndModel) |
protected QuadTree<PathModelElement> |
findQuadTreeForType(java.lang.String type) |
static PathSearcher |
getInstance() |
PathInfo |
getPathInfo() |
boolean |
legalPosition(java.lang.String type,
AOVector loc) |
protected static PathSearcher instance
protected java.util.Map<java.lang.String,QuadTree<PathModelElement>> quadTrees
protected PathInfo pathInfo
protected java.lang.String terrainString
protected static final Logger log
protected static boolean logAll
public static PathSearcher getInstance()
protected void buildQuadTrees(Geometry geometry)
protected QuadTree<PathModelElement> findQuadTreeForType(java.lang.String type)
protected PathObject findModelAtLocation(java.lang.String type, AOVector loc)
public PathObjectLocation findModelLocation(java.lang.String type, AOVector loc)
public static PathObjectLocation findModelLocation(PathObject pathObject, AOVector loc)
public boolean legalPosition(java.lang.String type, AOVector loc)
public static PathFinderValue findPath(java.lang.String type, AOVector loc1, AOVector loc2, boolean followsTerrain)
public static PathFinderValue findPath(OID playerOid, PathObject pathObject, AOVector loc1, AOVector loc2, float halfWidth)
public PathSearcher.PathResult findPathThroughTerrain(PathFinderValue value, java.lang.String type, AOVector loc1, AOVector loc2, PathObjectLocation poLoc2, AOVector entryPortalLoc, float halfWidth, boolean haveStartModel, boolean haveEndModel)
public PathIntersection findFirstObstacle(java.lang.String type, AOVector loc1, AOVector loc2)
protected int findCornerOnPathToPortal(AOVector loc, PathObjectLocation poLoc, AOVector entryPortalLoc)
protected boolean findPathInModel(PathFinderValue value, PathObjectLocation poLoc1, PathObjectLocation poLoc2, float halfWidth)
public PathInfo getPathInfo()