rails.game.specific._18EU
Class FinalMinorExchangeRound

java.lang.Object
  extended by rails.game.Round
      extended by rails.game.StockRound
          extended by rails.game.specific._18EU.StockRound_18EU
              extended by rails.game.specific._18EU.FinalMinorExchangeRound
All Implemented Interfaces:
RoundI

public class FinalMinorExchangeRound
extends StockRound_18EU

Implements a basic Stock Round.

A new instance must be created for each new Stock Round. At the end of a round, the current instance should be discarded.

Permanent memory is formed by static attributes (like who has the Priority Deal).


Field Summary
 
Fields inherited from class rails.game.specific._18EU.StockRound_18EU
compWithExcessTrains, discardingCompanies, discardingCompanyIndex, discardingTrains, phase5Reached
 
Fields inherited from class rails.game.StockRound
BOUGHT, companyBoughtThisTurnWrapper, currentPlayer, hasActed, hasSoldThisTurnBeforeBuying, numberOfPlayers, numPasses, playersThatSoldThisRound, SELL_BUY, SELL_BUY_OR_BUY_SELL, SELL_BUY_SELL, sellObligationLifted, sellPrices, sequenceRule, SOLD, startingPlayer
 
Fields inherited from class rails.game.Round
autopasses, bank, canRequestTurn, companyManager, gameManager, guiHints, hasRequestedTurn, ipo, log, mapManager, moveStack, playerManager, pool, possibleActions, scrapHeap, stockMarket, unavailable, wasInterrupted
 
Constructor Summary
FinalMinorExchangeRound(GameManagerI aGameManager)
           
 
Method Summary
 boolean done(java.lang.String playerName, boolean hasAutopassed)
          The current Player passes or is done.
protected  void initPlayer()
           
 boolean setPossibleActions()
          Default version, does nothing.
 void start(Player playerToStartFMERound)
           
 java.lang.String toString()
           
 
Methods inherited from class rails.game.specific._18EU.StockRound_18EU
discardTrain, finishRound, finishTurn, floatCompany, mergeCompanies, processGameSpecificAction, setBuyableCerts, setGameSpecificActions, setTrainDiscardActions, start, startCompany
 
Methods inherited from class rails.game.StockRound
adjustSharePrice, buyShares, checkAgainstHoldLimit, executeExchangeForShare, executeShareTransfer, gameSpecificChecks, getBuyPrice, getCurrentPlayerIndex, getCurrentSellPrice, getHelp, getRoundName, getSharePriceRecipient, getStockRoundNumber, isPlayerOverLimits, isPlayerOverLimitsDetail, isSaleRecorded, isSellObligationLifted, maxAllowedNumberOfSharesToBuy, mayCurrentPlayerBuyAnything, mayCurrentPlayerSellAnything, mayPlayerBuyCertificate, mayPlayerSellShareOfCompany, noSaleIfNotOperated, noSaleInFirstSR, process, recordSale, releaseCompanyShares, requestTurn, sellShares, setCurrentPlayer, setNextPlayer, setPriority, setSellableShares, setSellObligationLifted, setSpecialActions, useSpecialProperty
 
Methods inherited from class rails.game.Round
canCompanyOperateThisRound, canRequestTurn, certCountsAsSold, checkFlotation, exchangeTokens, getAutopasses, getCurrentPhase, getCurrentPlayer, getGameManager, getGameOption, getGameParameter, getGameParameterAsBoolean, getGameParameterAsInt, getNumberOfActivePlayers, getNumberOfPlayers, getPlayers, getRoundTypeForUI, getSoldPercentage, getSpecialProperties, hasAutopassed, pay, pay, requestTurn, resume, setAutopass, setCanRequestTurn, setCurrentPlayerIndex, setOperatingCompanies, setOperatingCompanies, transferCertificate, transferCertificates, wasInterrupted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FinalMinorExchangeRound

public FinalMinorExchangeRound(GameManagerI aGameManager)
Method Detail

start

public void start(Player playerToStartFMERound)

setPossibleActions

public boolean setPossibleActions()
Description copied from class: Round
Default version, does nothing. Subclasses should override this method with a real version.

Specified by:
setPossibleActions in interface RoundI
Overrides:
setPossibleActions in class StockRound_18EU

done

public boolean done(java.lang.String playerName,
                    boolean hasAutopassed)
Description copied from class: StockRound
The current Player passes or is done.

Overrides:
done in class StockRound
Returns:
False if an error is found.

initPlayer

protected void initPlayer()
Overrides:
initPlayer in class StockRound

toString

public java.lang.String toString()
Overrides:
toString in class StockRound_18EU