public class NavigationGraphBuilder.NewNavPointBuilder extends Object
You must call createNavPoint() after you set it up to truly create the navpoint inside bot's IWorldView.
| Modifier | Constructor and Description |
|---|---|
protected |
NavigationGraphBuilder.NewNavPointBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEdge(NavigationGraphBuilder.NewNavPointEdgeBuilder newNavPointEdgeBuilder)
Adds new edge into
edges. |
void |
createNavPoint()
Finalizing method that will insert the navpoint into the underlying
IWorldView of the bot. |
void |
createSimpleEdgeTo(String navPointId)
Creates simple edge that leads from the navpoint you're currently creating to 'navPointId'
|
NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> |
newEdge()
Creates new edge builder for the navpoint you're creating.
|
NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> |
newEdgeTo(String navPointId)
Creates new edge (to 'navPointId') builder for the navpoint you're creating.
|
NavigationGraphBuilder.NewNavPointBuilder |
setId(String id)
Sets the ID to be used for the new navpoint, corresponds to
NavPoint.getId(). |
NavigationGraphBuilder.NewNavPointBuilder |
setLocation(double x,
double y,
double z)
Sets the location of the new navpoint, corresponds to
NavPoint.getLocation(). |
protected NavigationGraphBuilder.NewNavPointBuilder()
public NavigationGraphBuilder.NewNavPointBuilder setId(String id)
NavPoint.getId().id - will be auto-prefixed (if enabled, which is default)public NavigationGraphBuilder.NewNavPointBuilder setLocation(double x, double y, double z)
NavPoint.getLocation().x - y - z - public void createNavPoint()
IWorldView of the bot.
You must have ID/Location set via setId(String) and setLocation(double, double, double)
otherwise an exception will be thrown.
WARNING: IF USED INSIDE THE IAgentLogic.logic(), THAN THE NEW NAVPOINT WON'T BE ACCESSIBLE IMMEDIATELLY, IT WILL BE ACCESSIBLE FROM THE NEXT LOGIC ITERATION!
public NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> newEdge()
After setting up the edge properties, use NavigationGraphBuilder.NewNavPointEdgeBuilder.createEdge() to return to this object (and truly creates the edge!).
public NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.NewNavPointBuilder> newEdgeTo(String navPointId)
After setting up the edge properties, use NavigationGraphBuilder.NewNavPointEdgeBuilder.createEdge() to return to this object (and truly creates the edge!).
navPointId - will be auto-prefixedpublic void createSimpleEdgeTo(String navPointId)
navPointId - will be auto-prefixed (if enabled, which is default)protected void addEdge(NavigationGraphBuilder.NewNavPointEdgeBuilder newNavPointEdgeBuilder)
edges. Their true creation is postponed until createNavPoint().newNavPointEdgeBuilder - Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.