aim4.map.destination
Class TurnBasedDestinationSelector

java.lang.Object
  extended by aim4.map.destination.TurnBasedDestinationSelector
All Implemented Interfaces:
DestinationSelector

public class TurnBasedDestinationSelector
extends Object
implements DestinationSelector

The turn based destination selector.


Constructor Summary
TurnBasedDestinationSelector(BasicMap layout)
          Create a new identity destination selector from the given Layout.
 
Method Summary
 Road selectDestination(Lane currentLane)
          Select the Road which the given Vehicle should use as its destination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TurnBasedDestinationSelector

public TurnBasedDestinationSelector(BasicMap layout)
Create a new identity destination selector from the given Layout.

Parameters:
layout - the layout from which to create the new identity destination selector
Method Detail

selectDestination

public Road selectDestination(Lane currentLane)
Select the Road which the given Vehicle should use as its destination.

Specified by:
selectDestination in interface DestinationSelector
Parameters:
currentLane - the lane the Vehicle is currently on, usually also the lane the vehicle spawned on
Returns:
the Road which the Vehicle should use as its destination


Copyright © 2011. All Rights Reserved.