cz.cuni.amis.pogamut.ut2004.agent.navigation.navmesh
Class NavMeshModule

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

public class NavMeshModule
extends Object

Main class of Navigation Mesh module

Author:
Jakub Tomek, Jakub Gemrot aka Jimmy

Constructor Summary
NavMeshModule(IUT2004ServerProvider serverProvider, IWorldView worldView, IAgentLogger logger)
           
 
Method Summary
 NavMesh getNavMesh()
          Always non-null, always returns NavMesh.
 NavMeshDraw getNavMeshDraw()
           
 boolean isInitialized()
          Tells whether NavMesh has been initialized and getNavMesh() is usable.
 void setFwMap(FloydWarshallMap fwMap)
           
 void setReloadNavMesh(boolean value)
          Whether NavMeshModule should ignored ".processed" navmesh and reload it from ".navmesh".
 boolean shouldReloadNavMesh()
          Whether NavMeshModule should ignored ".processed" navmesh and reload it from ".navmesh".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavMeshModule

public NavMeshModule(IUT2004ServerProvider serverProvider,
                     IWorldView worldView,
                     IAgentLogger logger)
Method Detail

isInitialized

public boolean isInitialized()
Tells whether NavMesh has been initialized and getNavMesh() is usable.

Returns:

shouldReloadNavMesh

public boolean shouldReloadNavMesh()
Whether NavMeshModule should ignored ".processed" navmesh and reload it from ".navmesh".

Note that reloading can happen only during load(GameInfo) that means you have to set this flag before GameInfo came from GB2004, i.e., during IUT2004BotController.prepareBot(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot).

Returns:

setReloadNavMesh

public void setReloadNavMesh(boolean value)
Whether NavMeshModule should ignored ".processed" navmesh and reload it from ".navmesh".

Note that reloading can happen only during load(GameInfo) that means you have to set this flag before GameInfo came from GB2004, i.e., during IUT2004BotController.prepareBot(cz.cuni.amis.pogamut.ut2004.bot.impl.UT2004Bot).


getNavMesh

public NavMesh getNavMesh()
Always non-null, always returns NavMesh. However, you should check isInitialized() whether the NavMesh is usable.

Returns:

getNavMeshDraw

public NavMeshDraw getNavMeshDraw()

setFwMap

public void setFwMap(FloydWarshallMap fwMap)


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