public class PathState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Point |
endLoc |
protected boolean |
linear |
protected static Logger |
log |
protected static boolean |
logAll |
protected OID |
oid |
protected java.util.List<Point> |
path |
protected PathInterpolator |
pathInterpolator |
protected float |
speed |
protected Point |
startLoc |
protected long |
startTime |
protected java.lang.String |
type |
Constructor and Description |
---|
PathState(OID oid,
long startTime,
java.lang.String type,
Point startLoc,
Point endLoc,
float speed) |
PathState(OID oid,
java.lang.String type,
boolean linear) |
Modifier and Type | Method and Description |
---|---|
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) |
protected OID oid
protected java.lang.String type
protected boolean linear
protected Point startLoc
protected Point endLoc
protected float speed
protected java.util.List<Point> path
protected PathInterpolator pathInterpolator
protected long startTime
protected static final Logger log
protected static boolean logAll
public PathState(OID oid, java.lang.String type, boolean linear)
public void clear()
public WorldManagerClient.MobPathReqMessage setupPathInterpolator(long timeNow, Point newStartLoc, Point newEndLoc, float newSpeed, boolean following, float followDistance, boolean followsTerrain)
public WorldManagerClient.MobPathReqMessage setupDetourPathInterpolator(long timeNow, Point newStartLoc, Point newEndLoc, float newSpeed, java.util.ArrayList<AOVector> points)
public PathLocAndDir interpolatePath(long timeNow)
public long pathTimeRemaining()
public OID getOid()
public java.lang.String getType()
public Point getStartLoc()
public Point getEndLoc()
public float getSpeed()
public java.util.List<Point> getPath()
public PathInterpolator getPathInterpolator()
public long getStartTime()