Atavism Version 2018.1AGIS API

atavism.server.pathing
Class PathState

java.lang.Object
  extended by 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.


Field Summary
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 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
 

Field Detail

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
Constructor Detail

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)
Method Detail

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()


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