atavism.server.pathing
Class PathState
java.lang.Object
atavism.server.pathing.PathState
public class PathState
- extends java.lang.Object
defines a the "state" of a path, for a given entity, specified by
an Oid, a starting point and a destination.
Constructor Summary |
PathState(OID oid,
long startTime,
java.lang.String type,
Point startLoc,
Point endLoc,
float speed)
|
PathState(OID oid,
java.lang.String type,
boolean linear)
|
Method Summary |
void |
clear()
|
Point |
getEndLoc()
|
OID |
getOid()
|
java.util.List<Point> |
getPath()
|
PathInterpolator |
getPathInterpolator()
|
float |
getSpeed()
|
Point |
getStartLoc()
|
long |
getStartTime()
|
java.lang.String |
getType()
|
PathLocAndDir |
interpolatePath(long timeNow)
|
long |
pathTimeRemaining()
|
WorldManagerClient.MobPathReqMessage |
setupDetourPathInterpolator(long timeNow,
Point newStartLoc,
Point newEndLoc,
float newSpeed,
java.util.ArrayList<AOVector> points)
|
WorldManagerClient.MobPathReqMessage |
setupPathInterpolator(long timeNow,
Point newStartLoc,
Point newEndLoc,
float newSpeed,
boolean following,
float followDistance,
boolean followsTerrain)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
oid
protected OID oid
type
protected java.lang.String type
linear
protected boolean linear
startLoc
protected Point startLoc
endLoc
protected Point endLoc
speed
protected float speed
path
protected java.util.List<Point> path
pathInterpolator
protected PathInterpolator pathInterpolator
startTime
protected long startTime
log
protected static final Logger log
logAll
protected static boolean logAll
PathState
public PathState(OID oid,
java.lang.String type,
boolean linear)
PathState
public PathState(OID oid,
long startTime,
java.lang.String type,
Point startLoc,
Point endLoc,
float speed)
clear
public void clear()
setupPathInterpolator
public WorldManagerClient.MobPathReqMessage setupPathInterpolator(long timeNow,
Point newStartLoc,
Point newEndLoc,
float newSpeed,
boolean following,
float followDistance,
boolean followsTerrain)
setupDetourPathInterpolator
public WorldManagerClient.MobPathReqMessage setupDetourPathInterpolator(long timeNow,
Point newStartLoc,
Point newEndLoc,
float newSpeed,
java.util.ArrayList<AOVector> points)
interpolatePath
public PathLocAndDir interpolatePath(long timeNow)
pathTimeRemaining
public long pathTimeRemaining()
getOid
public OID getOid()
getType
public java.lang.String getType()
getStartLoc
public Point getStartLoc()
getEndLoc
public Point getEndLoc()
getSpeed
public float getSpeed()
getPath
public java.util.List<Point> getPath()
getPathInterpolator
public PathInterpolator getPathInterpolator()
getStartTime
public long getStartTime()