public class Path
extends Object
Modifier and Type | Field and Description |
---|---|
int |
cAttackRouteBackLeft |
int |
cAttackRouteBackRight |
int |
cAttackRouteFrontLeft |
int |
cAttackRouteFrontRight |
int |
cAttackRouteLeftBack |
int |
cAttackRouteLeftFront |
int |
cAttackRouteRightBack |
int |
cAttackRouteRightFront |
int |
cTransportPathTypeAreas |
int |
cTransportPathTypePoints |
Modifier and Type | Method and Description |
---|---|
bool |
kbAddAttackRouteIgnoreID(int ignoreAreaID)
Ignore this area when finding the route.
|
bool |
kbAddAttackRouteIgnoreType(int ignoreAreaTypeID)
Ignore this area type when finding the route.
|
bool |
kbAddAttackRouteSector(int sector)
Add a new sector to path to.
|
bool |
kbAttackRouteAddPath(int attackRouteID,
int pathID)
Returns true if path was added to attack route.
|
bool |
kbCanPath2(vector pointA,
vector pointB,
long protoUnitTypeID,
float range)
Returns true if the given unit type can path from pointA to pointB.
|
bool |
kbCanSimPath(vector pointA,
vector pointB,
long protoUnitTypeID,
float range)
Returns true if the given unit type can path from pointA to pointB.
|
int |
kbCreateAttackRoute(string name,
int startAreaID,
int goalAreaID,
int numInitialRoutes)
Returns the Route ID if successful.
|
int |
kbCreateAttackRouteWithPath(string name,
vector startPt,
vector endPt)
Returns the Route ID if successful.
|
bool |
kbDestroyAttackRoute(int routeID)
Returns true if the route was deleted.
|
int |
kbGetAttackRouteID(long startAreaID,
long goalAreaID)
Returns the id of the routes from area1 to area2.
|
int |
kbGetNumAttackRoutes(long startAreaID,
long goalAreaID)
Returns the number of paths from start to goal area.
|
bool |
kbMakeAttackRoutes()
Find all the paths to the sector specified.
|
bool |
kbPathAddWaypoint(int pathID,
vector waypoint)
Adds the waypoint to the given path.
|
int |
kbPathCreate(string name)
Creates a path with the given name.
|
bool |
kbPathDestroy(int pathID)
Destroys the given path.
|
int |
kbPathGetIDByIndex(long index)
Returns the index'th path ID.
|
float |
kbPathGetLength(int pathID)
Returns the length of the given path.
|
string |
kbPathGetName(int pathID)
Returns the name of the given path.
|
int |
kbPathGetNumber()
Returns the number of paths.
|
int |
kbPathGetNumberWaypoints(int pathID)
Returns the number of waypoints in the given path.
|
vector |
kbPathGetWaypoint(int pathID,
long waypointNumber)
Returns the appropriate waypoint from the given path.
|
public final int cTransportPathTypePoints
public final int cTransportPathTypeAreas
public final int cAttackRouteFrontRight
public final int cAttackRouteRightFront
public final int cAttackRouteRightBack
public final int cAttackRouteBackRight
public final int cAttackRouteBackLeft
public final int cAttackRouteLeftBack
public final int cAttackRouteLeftFront
public final int cAttackRouteFrontLeft
public int kbPathCreate(string name)
public bool kbPathDestroy(int pathID)
public int kbPathGetNumber()
public int kbPathGetIDByIndex(long index)
public string kbPathGetName(int pathID)
public float kbPathGetLength(int pathID)
public int kbPathGetNumberWaypoints(int pathID)
public bool kbPathAddWaypoint(int pathID, vector waypoint)
public vector kbPathGetWaypoint(int pathID, long waypointNumber)
public bool kbCanSimPath(vector pointA, vector pointB, long protoUnitTypeID, float range)
public bool kbCanPath2(vector pointA, vector pointB, long protoUnitTypeID, float range)
public int kbCreateAttackRoute(string name, int startAreaID, int goalAreaID, int numInitialRoutes)
public int kbCreateAttackRouteWithPath(string name, vector startPt, vector endPt)
public bool kbDestroyAttackRoute(int routeID)
public bool kbAddAttackRouteSector(int sector)
public bool kbAddAttackRouteIgnoreID(int ignoreAreaID)
public bool kbAddAttackRouteIgnoreType(int ignoreAreaTypeID)
public bool kbAttackRouteAddPath(int attackRouteID, int pathID)
public bool kbMakeAttackRoutes()
public int kbGetNumAttackRoutes(long startAreaID, long goalAreaID)
public int kbGetAttackRouteID(long startAreaID, long goalAreaID)