bot
Class PathFinderModule

Package class diagram package PathFinderModule
java.lang.Object
  extended by bot.PathFinderModule

public class PathFinderModule
extends Object

Author:
Knight

Field Summary
 double currentTime
          Current UT time.
 double jumpDelay
           
 HashMap<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint> knownNavPoints
           
 cz.cuni.amis.pogamut.base3d.worldview.object.Location lastFollowPathLocation
          We will check this in our navigation method if our path is still actual if not, we will request a new path
 double lastJumpTime
           
 cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BeginMessage> myBegListener
          Listener to Beg Message
 ArrayList<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> myPath
          Here we store latest path we got from GameBots
 cz.cuni.amis.pogamut.base3d.worldview.object.Location nearestNavLocation
          This is navigation point closest to our goalTarget
 boolean pathReceived
          True if we have already received path to our latest goal
 boolean pathRequested
          True if we have already requested path to our latest goal
 double pathRequestedTime
          Time of our last path request
 int pathRerequestDelay
          If we haven't received path in this time seconds, we will request it again
 
Method Summary
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Location getNearestNavLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation)
          Returns nearest navigation point to input location in the map.
 boolean goToLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation)
          Goes to target location.
 boolean runAroundItemsInTheMap(ArrayList<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Item> newItemsToRunAround)
          We will run around items received from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

knownNavPoints

public HashMap<cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId,cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.NavPoint> knownNavPoints

myPath

public ArrayList<cz.cuni.amis.pogamut.base3d.worldview.object.ILocated> myPath
Here we store latest path we got from GameBots


pathRequested

public boolean pathRequested
True if we have already requested path to our latest goal


pathReceived

public boolean pathReceived
True if we have already received path to our latest goal


pathRequestedTime

public double pathRequestedTime
Time of our last path request


pathRerequestDelay

public int pathRerequestDelay
If we haven't received path in this time seconds, we will request it again


nearestNavLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location nearestNavLocation
This is navigation point closest to our goalTarget


lastJumpTime

public double lastJumpTime

jumpDelay

public double jumpDelay

lastFollowPathLocation

public cz.cuni.amis.pogamut.base3d.worldview.object.Location lastFollowPathLocation
We will check this in our navigation method if our path is still actual if not, we will request a new path


currentTime

public double currentTime
Current UT time.


myBegListener

public cz.cuni.amis.pogamut.base.communication.worldview.event.IWorldEventListener<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.BeginMessage> myBegListener
Listener to Beg Message

Method Detail

getNearestNavLocation

protected cz.cuni.amis.pogamut.base3d.worldview.object.Location getNearestNavLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation)
Returns nearest navigation point to input location in the map.

Parameters:
targetLocation -
Returns:

runAroundItemsInTheMap

public boolean runAroundItemsInTheMap(ArrayList<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.Item> newItemsToRunAround)
We will run around items received from the list.

Parameters:
newItemsToRunAround -
Returns:

goToLocation

public boolean goToLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location targetLocation)
Goes to target location. Keeps returning true while we are on our way there. If we are at location or some problem encountered, then returns false.

Parameters:
targetLocation -
Returns:


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