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

 o StrategyAdapter()

Method Index

 o beginTurn()
does nothing.
 o chooseDestination(Junction, Junction)
returns null, to let the conductor choose the destination.
 o chooseSegment(int)
returns null, to let the conductor choose the path.
 o endGame(int)
does nothing.
 o endTurn()
does nothing.
 o playerIsFast(int)
does nothing.
 o receiveFare(int, int)
does nothing.
 o startGame(Game, PlayerView)
does nothing.
 o transferRoute(int)
does nothing.
 o youAreBroke()
does nothing.
 o youArrived()
returns null, to purchase nothing.
 o youMustSell()
returns null, to let the conductor choose the sale.

Constructors

 o StrategyAdapter
 public StrategyAdapter()

Methods

 o startGame
 public void startGame(Game ga,
                       PlayerView me)
does nothing. (A real Strategy would store the parameters.)

 o endGame
 public void endGame(int winner)
does nothing.

 o playerIsFast
 public void playerIsFast(int playerIndex)
does nothing.

 o transferRoute
 public void transferRoute(int routeIndex)
does nothing.

 o receiveFare
 public void receiveFare(int fromwhom,
                         int payment)
does nothing.

 o beginTurn
 public void beginTurn()
does nothing.

 o endTurn
 public void endTurn()
does nothing.

 o chooseDestination
 public Junction chooseDestination(Junction term1,
                                   Junction term2)
returns null, to let the conductor choose the destination.

 o youArrived
 public Purchase youArrived()
returns null, to purchase nothing.

 o chooseSegment
 public Segment chooseSegment(int roll)
returns null, to let the conductor choose the path.

 o youMustSell
 public Route youMustSell()
returns null, to let the conductor choose the sale.

 o youAreBroke
 public void youAreBroke()
does nothing.


All Packages  Class Hierarchy  This Package  Previous  Next  Index