rails.game.specific._1856
Class CGRFormationRound
java.lang.Object
rails.game.Round
rails.game.SwitchableUIRound
rails.game.specific._1856.CGRFormationRound
- All Implemented Interfaces:
- RoundI
public class CGRFormationRound
- extends SwitchableUIRound
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 |
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 |
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
CGRFormationRound
public CGRFormationRound(GameManagerI gameManager)
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