Atavism Version 2018.1AGIS API

atavism.server.pathing
Class PathSearcher

java.lang.Object
  extended by atavism.server.pathing.PathSearcher

public class PathSearcher
extends java.lang.Object


Nested Class Summary
static class PathSearcher.PathResult
           
 
Field Summary
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
           
 
Constructor Summary
protected PathSearcher(PathInfo pathInfo, Geometry geometry)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static PathSearcher instance

quadTrees

protected java.util.Map<java.lang.String,QuadTree<PathModelElement>> quadTrees

pathInfo

protected PathInfo pathInfo

terrainString

protected java.lang.String terrainString

log

protected static final Logger log

logAll

protected static boolean logAll
Constructor Detail

PathSearcher

protected PathSearcher(PathInfo pathInfo,
                       Geometry geometry)
Method Detail

getInstance

public static PathSearcher getInstance()

createPathSearcher

public static void createPathSearcher(PathInfo pathInfo,
                                      Geometry geometry)

buildQuadTrees

protected void buildQuadTrees(Geometry geometry)

findQuadTreeForType

protected QuadTree<PathModelElement> findQuadTreeForType(java.lang.String type)

findModelAtLocation

protected PathObject findModelAtLocation(java.lang.String type,
                                         AOVector loc)

findModelLocation

public PathObjectLocation findModelLocation(java.lang.String type,
                                            AOVector loc)

findModelLocation

public static PathObjectLocation findModelLocation(PathObject pathObject,
                                                   AOVector loc)

legalPosition

public boolean legalPosition(java.lang.String type,
                             AOVector loc)

findPath

public static PathFinderValue findPath(java.lang.String type,
                                       AOVector loc1,
                                       AOVector loc2,
                                       boolean followsTerrain)

findPath

public static PathFinderValue findPath(OID playerOid,
                                       PathObject pathObject,
                                       AOVector loc1,
                                       AOVector loc2,
                                       float halfWidth)
This entrypoint is used only for in-room player pathing.


findPathThroughTerrain

public PathSearcher.PathResult findPathThroughTerrain(PathFinderValue value,
                                                      java.lang.String type,
                                                      AOVector loc1,
                                                      AOVector loc2,
                                                      PathObjectLocation poLoc2,
                                                      AOVector entryPortalLoc,
                                                      float halfWidth,
                                                      boolean haveStartModel,
                                                      boolean haveEndModel)

findFirstObstacle

public PathIntersection findFirstObstacle(java.lang.String type,
                                          AOVector loc1,
                                          AOVector loc2)

findCornerOnPathToPortal

protected int findCornerOnPathToPortal(AOVector loc,
                                       PathObjectLocation poLoc,
                                       AOVector entryPortalLoc)

findPathInModel

protected boolean findPathInModel(PathFinderValue value,
                                  PathObjectLocation poLoc1,
                                  PathObjectLocation poLoc2,
                                  float halfWidth)

getPathInfo

public PathInfo getPathInfo()


Copyright © 2018 Dragonsan Studios Sp. z o.o.