Atavism Version 2018.1AGIS API

atavism.server.pathing
Class PathSearchNode

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

public class PathSearchNode
extends java.lang.Object


Field Summary
protected  PathArc arc
           
protected static int closeEnough
           
protected  int costSoFar
           
protected  int costToGoal
           
protected  AOVector loc
           
protected static Logger log
           
protected static boolean logAll
           
protected  int polyIndex
           
protected  PathSearchNode predecessor
           
 
Constructor Summary
PathSearchNode(AOVector loc, PathSearchNode predecessor)
           
PathSearchNode(int polyIndex, AOVector loc)
           
PathSearchNode(PathArc arc, int polyIndex, PathSearchNode predecessor)
           
 
Method Summary
 boolean atGoal(PathSearchNode goal)
           
 int distanceEstimate(PathSearchNode goal)
           
 boolean equals(java.lang.Object obj)
           
 PathArc getArc()
           
protected  int getCostBetween(PathSearchNode successor)
           
 int getCostSoFar()
           
 int getCostToEnd()
           
 int getCostToGoal()
           
 AOVector getLoc()
           
 int getPolyIndex()
           
 PathSearchNode getPredecessor()
           
protected  java.util.List<PathSearchNode> getSuccessors(PathAStarSearcher searcher)
           
protected  boolean isSameState(PathSearchNode node)
           
 void setArc(PathArc arc)
           
 void setCostSoFar(int cost)
           
 void setCostToGoal(int cost)
           
 void setLoc(AOVector value)
           
 void setPredecessor(PathSearchNode node)
           
 java.lang.String shortString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

closeEnough

protected static int closeEnough

arc

protected PathArc arc

polyIndex

protected int polyIndex

predecessor

protected PathSearchNode predecessor

loc

protected AOVector loc

costSoFar

protected int costSoFar

costToGoal

protected int costToGoal

log

protected static final Logger log

logAll

protected static boolean logAll
Constructor Detail

PathSearchNode

public PathSearchNode(int polyIndex,
                      AOVector loc)

PathSearchNode

public PathSearchNode(AOVector loc,
                      PathSearchNode predecessor)

PathSearchNode

public PathSearchNode(PathArc arc,
                      int polyIndex,
                      PathSearchNode predecessor)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getLoc

public AOVector getLoc()

setLoc

public void setLoc(AOVector value)

getPolyIndex

public int getPolyIndex()

distanceEstimate

public int distanceEstimate(PathSearchNode goal)

atGoal

public boolean atGoal(PathSearchNode goal)

getSuccessors

protected java.util.List<PathSearchNode> getSuccessors(PathAStarSearcher searcher)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

shortString

public java.lang.String shortString()

isSameState

protected boolean isSameState(PathSearchNode node)

getCostBetween

protected int getCostBetween(PathSearchNode successor)

getArc

public PathArc getArc()

setArc

public void setArc(PathArc arc)

setPredecessor

public void setPredecessor(PathSearchNode node)

getPredecessor

public PathSearchNode getPredecessor()

setCostSoFar

public void setCostSoFar(int cost)

getCostSoFar

public int getCostSoFar()

setCostToGoal

public void setCostToGoal(int cost)

getCostToGoal

public int getCostToGoal()

getCostToEnd

public int getCostToEnd()


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