All Packages Class Hierarchy This Package Previous Next Index
Class busrider.Router
java.lang.Object
|
+----busrider.Router
- public class Router
- extends Object
This class is used by the conductor, when a Strategy fails to select
a valid Segment for a player to traverse.
Constructor Index
-
Router()
-
Method Index
-
pickSegment(int, Junction, Junction, Route)
- picks the next segment to traverse.
Constructors
Router
public Router()
Methods
pickSegment
public static Segment pickSegment(int playerIndex,
Junction here,
Junction there,
Route current)
- picks the next segment to traverse.
All Packages Class Hierarchy This Package Previous Next Index