cz.cuni.amis.pogamut.ut2004.agent.module.sensor
Class NavigationGraphBuilder.ExistingNavPointEdgeBuilder

java.lang.Object
  extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
      extended by cz.cuni.amis.pogamut.ut2004.agent.module.sensor.NavigationGraphBuilder.ExistingNavPointEdgeBuilder
Enclosing class:
NavigationGraphBuilder

public class NavigationGraphBuilder.ExistingNavPointEdgeBuilder
extends NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.agent.module.sensor.NavigationGraphBuilder.NewNavPointEdgeBuilder
collisionH, collisionR, flags, forceDoubleJump, neededJump, owner, toNavPointId
 
Constructor Summary
protected NavigationGraphBuilder.ExistingNavPointEdgeBuilder(NavigationGraphBuilder.ExistingNavPointModifier navPointModifier)
           
protected NavigationGraphBuilder.ExistingNavPointEdgeBuilder(NavigationGraphBuilder.ExistingNavPointModifier navPointModifier, NavPointNeighbourLink parent)
           
 
Method Summary
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder clearFlags()
          Clears all flags to 0.
 NavigationGraphBuilder.ExistingNavPointModifier createEdge()
          Immediately creates a new edge.
 NavigationGraphBuilder.ExistingNavPointModifier modifyEdge()
          Alias for createEdge().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeDoorFlag()
          Removes LinkFlag.DOOR flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeDoubleJump()
          Removes "requires double jump" from the edge.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeFlyFlag()
          Removes LinkFlag.FLY flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeForcedFlag()
          Removes LinkFlag.FORCED flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeJumpFlag()
          Removes LinkFlag.JUMP flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeLadderFlag()
          Removes LinkFlag.LADDER flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeNeededJump()
          Removes "needed jump at location" from the edge.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removePlayerOnlyFlag()
          Removes LinkFlag.PLAYERONLY flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeProscribedFlag()
          Removes LinkFlag.PROSCRIBED flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeSpecialFlag()
          Removes LinkFlag.SPECIAL flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeSwimFlag()
          Removes LinkFlag.SWIM flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeWalkFlag()
          Removes LinkFlag.WALK flag from edge flags.
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setCollisionHeight(int collisionHeight)
          Sets collision height of the edge, corresponds to NavPointNeighbourLink.getCollisionH().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setCollisionRadius(int collisionRadius)
          Sets collision radius of the edge, corresponds to NavPointNeighbourLink.getCollisionR().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setDoorFlag()
          Sets LinkFlag.DOOR flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setDoubleJump()
          Sets the flag "double jump is needed" to true, corresponds to NavPointNeighbourLink.isForceDoubleJump().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setFlyFlag()
          Sets LinkFlag.FLY flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setForcedFlag()
          Sets LinkFlag.FORCED flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setJumpFlag()
          Sets LinkFlag.JUMP flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setLadderFlag()
          Sets LinkFlag.LADDER flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setNeededJump(double x, double y, double z)
          Sets the location from where the bot should jump to reach the target, corresponds to NavPointNeighbourLink.getNeededJump().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setPlayerOnlyFlag()
          Sets LinkFlag#PLAYERONLYK flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setProscribedFlag()
          Sets LinkFlag.PROSCRIBED flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setSpecialFlag()
          Sets LinkFlag.SPECIAL flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setSwimFlag()
          Sets LinkFlag.SWIM flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setTo(java.lang.String navPointId)
          Sets the remote end of the edge (i.e., navpoint id where the edge is leading to), corresponds to NavPointNeighbourLink.getToNavPoint().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setTo(UnrealId navPointId)
          Sets the remote end of the edge (i.e., navpoint id where the edge is leading to), corresponds to NavPointNeighbourLink.getToNavPoint().
 NavigationGraphBuilder.ExistingNavPointEdgeBuilder setWalkFlag()
          Sets LinkFlag.WALK flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NavigationGraphBuilder.ExistingNavPointEdgeBuilder

protected NavigationGraphBuilder.ExistingNavPointEdgeBuilder(NavigationGraphBuilder.ExistingNavPointModifier navPointModifier)

NavigationGraphBuilder.ExistingNavPointEdgeBuilder

protected NavigationGraphBuilder.ExistingNavPointEdgeBuilder(NavigationGraphBuilder.ExistingNavPointModifier navPointModifier,
                                                             NavPointNeighbourLink parent)
Method Detail

setTo

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setTo(java.lang.String navPointId)
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets the remote end of the edge (i.e., navpoint id where the edge is leading to), corresponds to NavPointNeighbourLink.getToNavPoint().

Overrides:
setTo in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Parameters:
navPointId - will be auto-prefixed (if enabled, which is default)
Returns:

setTo

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setTo(UnrealId navPointId)
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets the remote end of the edge (i.e., navpoint id where the edge is leading to), corresponds to NavPointNeighbourLink.getToNavPoint().

Overrides:
setTo in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Parameters:
navPointId - WON'T BE AUTO-PREFIXED AS IT IS ALREADY EXISTING ID!!!
Returns:

setCollisionRadius

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setCollisionRadius(int collisionRadius)
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets collision radius of the edge, corresponds to NavPointNeighbourLink.getCollisionR().

Overrides:
setCollisionRadius in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

setCollisionHeight

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setCollisionHeight(int collisionHeight)
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets collision height of the edge, corresponds to NavPointNeighbourLink.getCollisionH().

Overrides:
setCollisionHeight in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

setNeededJump

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setNeededJump(double x,
                                                                        double y,
                                                                        double z)
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets the location from where the bot should jump to reach the target, corresponds to NavPointNeighbourLink.getNeededJump().

Overrides:
setNeededJump in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeNeededJump

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeNeededJump()
Removes "needed jump at location" from the edge.

Returns:

setDoubleJump

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setDoubleJump()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets the flag "double jump is needed" to true, corresponds to NavPointNeighbourLink.isForceDoubleJump().

Overrides:
setDoubleJump in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeDoubleJump

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeDoubleJump()
Removes "requires double jump" from the edge.

Returns:

setWalkFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setWalkFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.WALK flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setWalkFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeWalkFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeWalkFlag()
Removes LinkFlag.WALK flag from edge flags.

Returns:

setFlyFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setFlyFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.FLY flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setFlyFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeFlyFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeFlyFlag()
Removes LinkFlag.FLY flag from edge flags.

Returns:

setSwimFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setSwimFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.SWIM flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setSwimFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeSwimFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeSwimFlag()
Removes LinkFlag.SWIM flag from edge flags.

Returns:

setJumpFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setJumpFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.JUMP flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setJumpFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeJumpFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeJumpFlag()
Removes LinkFlag.JUMP flag from edge flags.

Returns:

setDoorFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setDoorFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.DOOR flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setDoorFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeDoorFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeDoorFlag()
Removes LinkFlag.DOOR flag from edge flags.

Returns:

setSpecialFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setSpecialFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.SPECIAL flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setSpecialFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeSpecialFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeSpecialFlag()
Removes LinkFlag.SPECIAL flag from edge flags.

Returns:

setLadderFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setLadderFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.LADDER flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setLadderFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeLadderFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeLadderFlag()
Removes LinkFlag.LADDER flag from edge flags.

Returns:

setProscribedFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setProscribedFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.PROSCRIBED flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setProscribedFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeProscribedFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeProscribedFlag()
Removes LinkFlag.PROSCRIBED flag from edge flags.

Returns:

setForcedFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setForcedFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag.FORCED flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setForcedFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removeForcedFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removeForcedFlag()
Removes LinkFlag.FORCED flag from edge flags.

Returns:

setPlayerOnlyFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder setPlayerOnlyFlag()
Description copied from class: NavigationGraphBuilder.NewNavPointEdgeBuilder
Sets LinkFlag#PLAYERONLYK flag into NavigationGraphBuilder.NewNavPointEdgeBuilder.flags of the new navpoint edge, corresponds to NavPointNeighbourLink.getFlags().

Overrides:
setPlayerOnlyFlag in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:

removePlayerOnlyFlag

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder removePlayerOnlyFlag()
Removes LinkFlag.PLAYERONLY flag from edge flags.

Returns:

clearFlags

public NavigationGraphBuilder.ExistingNavPointEdgeBuilder clearFlags()
Clears all flags to 0.

Returns:

createEdge

public NavigationGraphBuilder.ExistingNavPointModifier createEdge()
Immediately creates a new edge. Checks whether the same edge does not already exist (if so, replaces it).

WARNING: the created edge is oriented! Its counterpart (from the remote navpoint to one that is being modified) must be created manually! (If needed.)

Overrides:
createEdge in class NavigationGraphBuilder.NewNavPointEdgeBuilder<NavigationGraphBuilder.ExistingNavPointModifier>
Returns:
previously used navpoint modifier

modifyEdge

public NavigationGraphBuilder.ExistingNavPointModifier modifyEdge()
Alias for createEdge().

WARNING: the modify edge is oriented! Its counterpart (from the remote navpoint to one that is being modifier) must be modified manually! (If needed.)

Returns:
previously used navpoint modifier