rails.game.specific._1856
Class CGRFormationRound

java.lang.Object
  extended by rails.game.Round
      extended by rails.game.SwitchableUIRound
          extended by rails.game.specific._1856.CGRFormationRound
All Implemented Interfaces:
RoundI

public class CGRFormationRound
extends SwitchableUIRound


Field Summary
static int STEP_DISCARD_TRAINS
           
static int STEP_EXCHANGE_TOKENS
           
static int STEP_REPAY_LOANS
           
 
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
CGRFormationRound(GameManagerI gameManager)
           
 
Method Summary
 boolean discardTrain(DiscardTrain action)
           
 java.util.List<PublicCompanyI> getMergingCompanies()
           
 java.lang.Class<? extends RoundI> getRoundTypeForUI()
          Allows round instances to tell the UI what type of window to raise.
 boolean process(PossibleAction action)
           
protected  boolean repayLoans(RepayLoans action)
           
 boolean setPossibleActions()
          Default version, does nothing.
 void start(Player startingPlayer)
           
 java.lang.String toString()
           
 
Methods inherited from class rails.game.Round
canCompanyOperateThisRound, canRequestTurn, certCountsAsSold, checkFlotation, exchangeTokens, finishRound, floatCompany, getAutopasses, getCurrentPhase, getCurrentPlayer, getCurrentPlayerIndex, getGameManager, getGameOption, getGameParameter, getGameParameterAsBoolean, getGameParameterAsInt, getHelp, getNumberOfActivePlayers, getNumberOfPlayers, getPlayers, getRoundName, getSoldPercentage, getSpecialProperties, hasAutopassed, pay, pay, requestTurn, resume, setAutopass, setCanRequestTurn, setCurrentPlayer, setCurrentPlayerIndex, setOperatingCompanies, setOperatingCompanies, transferCertificate, transferCertificates, wasInterrupted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STEP_REPAY_LOANS

public static final int STEP_REPAY_LOANS
See Also:
Constant Field Values

STEP_DISCARD_TRAINS

public static final int STEP_DISCARD_TRAINS
See Also:
Constant Field Values

STEP_EXCHANGE_TOKENS

public static final int STEP_EXCHANGE_TOKENS
See Also:
Constant Field Values
Constructor Detail

CGRFormationRound

public CGRFormationRound(GameManagerI gameManager)
Method Detail

getRoundTypeForUI

public java.lang.Class<? extends RoundI> getRoundTypeForUI()
Description copied from class: Round
Allows round instances to tell the UI what type of window to raise. Normally the type corresponds to the round type (e.g. OperatingRound needs ORWindow), but sometimes deviations occur (such as the CGRFormationRound, which isn't a StockRound type but needs StatusWindow).

Specified by:
getRoundTypeForUI in interface RoundI
Overrides:
getRoundTypeForUI in class Round

start

public void start(Player startingPlayer)

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 Round

repayLoans

protected boolean repayLoans(RepayLoans action)

process

public boolean process(PossibleAction action)
Specified by:
process in interface RoundI
Overrides:
process in class Round

discardTrain

public boolean discardTrain(DiscardTrain action)

getMergingCompanies

public java.util.List<PublicCompanyI> getMergingCompanies()

toString

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