All Packages Class Hierarchy This Package Previous Next Index
Class busrider.StrategyAdapter
java.lang.Object
|
+----busrider.StrategyAdapter
- public class StrategyAdapter
- extends Object
- implements Strategy
This class implements a simple Strategy.
Constructor Index
-
StrategyAdapter()
-
Method Index
-
beginTurn()
- does nothing.
-
chooseDestination(Junction, Junction)
- returns null, to let the conductor choose the destination.
-
chooseSegment(int)
- returns null, to let the conductor choose the path.
-
endGame(int)
- does nothing.
-
endTurn()
- does nothing.
-
playerIsFast(int)
- does nothing.
-
receiveFare(int, int)
- does nothing.
-
startGame(Game, PlayerView)
- does nothing.
-
transferRoute(int)
- does nothing.
-
youAreBroke()
- does nothing.
-
youArrived()
- returns null, to purchase nothing.
-
youMustSell()
- returns null, to let the conductor choose the sale.
Constructors
StrategyAdapter
public StrategyAdapter()
Methods
startGame
public void startGame(Game ga,
PlayerView me)
- does nothing. (A real Strategy would store the parameters.)
endGame
public void endGame(int winner)
- does nothing.
playerIsFast
public void playerIsFast(int playerIndex)
- does nothing.
transferRoute
public void transferRoute(int routeIndex)
- does nothing.
receiveFare
public void receiveFare(int fromwhom,
int payment)
- does nothing.
beginTurn
public void beginTurn()
- does nothing.
endTurn
public void endTurn()
- does nothing.
chooseDestination
public Junction chooseDestination(Junction term1,
Junction term2)
- returns null, to let the conductor choose the destination.
youArrived
public Purchase youArrived()
- returns null, to purchase nothing.
chooseSegment
public Segment chooseSegment(int roll)
- returns null, to let the conductor choose the path.
youMustSell
public Route youMustSell()
- returns null, to let the conductor choose the sale.
youAreBroke
public void youAreBroke()
- does nothing.
All Packages Class Hierarchy This Package Previous Next Index