|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing.NavMeshRunner
public class NavMeshRunner
Runner for navigation with navigation mesh. Evolved from KefikRunner.
We assume that we work with path generated by NavMesh path planner. It should
contain point on the navigation mesh, which should be navigable by simple
running, and off-mesh connections, which we will handle as original runner.
Jump computing is working with exact locations, no reserves. Needed edge
should be achieved by delay in executing the jump.
| Field Summary | |
|---|---|
protected WallCollision |
lastCollidingEvent
Last received wall colliding event |
| Constructor Summary | |
|---|---|
NavMeshRunner(UT2004Bot bot,
AgentInfo agentInfo,
AdvancedLocomotion locomotion,
Logger log,
NavMesh navMesh)
Constructor. |
|
| Method Summary | |
|---|---|
void |
reset()
Resets the runner state. |
boolean |
runToLocation(Location runningFrom,
Location firstLocation,
Location secondLocation,
ILocated focus,
NavPointNeighbourLink navPointsLink,
boolean reachable,
boolean forceNoJump)
Called iteratively to reach the 'firstLocation'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected WallCollision lastCollidingEvent
| Constructor Detail |
|---|
public NavMeshRunner(UT2004Bot bot,
AgentInfo agentInfo,
AdvancedLocomotion locomotion,
Logger log,
NavMesh navMesh)
bot - Agent's bot.agentInfo - locomotion - log - navMesh - | Method Detail |
|---|
public void reset()
IUT2004PathRunnerCalled before the navigator turns its attention to another location.
reset in interface IUT2004PathRunner
public boolean runToLocation(Location runningFrom,
Location firstLocation,
Location secondLocation,
ILocated focus,
NavPointNeighbourLink navPointsLink,
boolean reachable,
boolean forceNoJump)
IUT2004PathRunnerThe 'secondLocation' is the location that will most likely be pursued next.
runToLocation in interface IUT2004PathRunnerrunningFrom - location we're running from (i.e., where the bot may safely return), may be nullfirstLocation - where the bot should run tosecondLocation - where the bot will the most likely continue its runfocus - where the bot should be looking while runningnavPointsLink - if we are traveling between two NavPoints connected by a link, we will receive the link with movement information herereachable - NOT USED ANYMOREforceNoJump - runner MUST NOT jump
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||