cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing
Class JumpBoundaries

Package class diagram package JumpBoundaries
java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh.pathfollowing.JumpBoundaries

public class JumpBoundaries
extends Object

Contains precomputed information about coming jump. If it is even jumpable, minimal and maximal take off point, landing target and navigation target of current link.

Author:
Bogo

Constructor Summary
JumpBoundaries(NavPointNeighbourLink link)
          Constructor for not jumpable link.
JumpBoundaries(NavPointNeighbourLink link, Location takeOffMin, Location takeOffMax, Location takeoffEdgeDirection, Location target, Location targetEdgeDirection, Location navigTarget)
          Constructor for jumpable link.
 
Method Summary
 Location getLandingTarget()
          Get landing target.
 NavPointNeighbourLink getLink()
          Get link this boundaries are for.
 Location getNavigTarget()
          Get target of current link.
 Location getTakeoffEdgeDirection()
          Get direction of the mesh edge the take off point lies on.
 Location getTakeOffMax()
          Get latest take off point.
 Location getTakeOffMin()
          Get earliest take off point.
 Location getTargetEdgeDirection()
          Get direction of the mesh edge the landing target lies on.
 boolean isJumpable()
          If is jumpable.
 boolean isJumpUp()
          If the jump is up and not fall.
 void setJumpable(boolean jumpable)
          Set jumpable.
 void setLandingTarget(Location landingTarget)
          Set landing target.
 void setLink(NavPointNeighbourLink link)
          Get link this boundaries are for.
 void setTakeOffMax(Location takeOffMax)
          Set latest take off point.
 void setTakeOffMin(Location takeOffMin)
          Set earliest take off point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JumpBoundaries

public JumpBoundaries(NavPointNeighbourLink link,
                      Location takeOffMin,
                      Location takeOffMax,
                      Location takeoffEdgeDirection,
                      Location target,
                      Location targetEdgeDirection,
                      Location navigTarget)
Constructor for jumpable link.

Parameters:
link -
takeOffMin -
takeOffMax -
takeoffEdgeDirection -
target -
targetEdgeDirection -
navigTarget -

JumpBoundaries

public JumpBoundaries(NavPointNeighbourLink link)
Constructor for not jumpable link.

Parameters:
link -
Method Detail

getLink

public NavPointNeighbourLink getLink()
Get link this boundaries are for.

Returns:

setLink

public void setLink(NavPointNeighbourLink link)
Get link this boundaries are for.

Parameters:
link -

isJumpable

public boolean isJumpable()
If is jumpable.

Returns:

setJumpable

public void setJumpable(boolean jumpable)
Set jumpable.

Parameters:
jumpable -

getTakeOffMin

public Location getTakeOffMin()
Get earliest take off point.

Returns:

setTakeOffMin

public void setTakeOffMin(Location takeOffMin)
Set earliest take off point.

Parameters:
takeOffMin -

getTakeOffMax

public Location getTakeOffMax()
Get latest take off point.

Returns:

setTakeOffMax

public void setTakeOffMax(Location takeOffMax)
Set latest take off point.

Parameters:
takeOffMax -

getLandingTarget

public Location getLandingTarget()
Get landing target.

Returns:

setLandingTarget

public void setLandingTarget(Location landingTarget)
Set landing target.

Parameters:
landingTarget -

isJumpUp

public boolean isJumpUp()
If the jump is up and not fall.

Returns:

getTargetEdgeDirection

public Location getTargetEdgeDirection()
Get direction of the mesh edge the landing target lies on.

Returns:

getTakeoffEdgeDirection

public Location getTakeoffEdgeDirection()
Get direction of the mesh edge the take off point lies on.

Returns:

getNavigTarget

public Location getNavigTarget()
Get target of current link.

Returns:


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.