rails.game
Interface RoundI

All Known Subinterfaces:
StartRoundI
All Known Implementing Classes:
CGRFormationRound, EndOfGameRound, FinalMinorExchangeRound, OperatingRound, OperatingRound_1825, OperatingRound_1835, OperatingRound_1856, OperatingRound_1880, OperatingRound_1889, OperatingRound_18AL, OperatingRound_18EU, OperatingRound_18TN, PrussianFormationRound, Round, ShareSellingRound, ShareSellingRound_1856, StartRound, StartRound_1825, StartRound_1830, StartRound_1835, StartRound_1851, StartRound_1880, StartRound_18EU, StockRound, StockRound_1825, StockRound_1835, StockRound_1856, StockRound_1880, StockRound_18EU, SwitchableUIRound, TreasuryShareRound

public interface RoundI

A common interface to the various "Rounds". A Round is defined as any process in an 18xx rails.game where different players have "turns".


Method Summary
 Player getCurrentPlayer()
          Get the player that has the next turn.
 java.lang.String getHelp()
           
 java.lang.String getRoundName()
           
 java.lang.Class<? extends RoundI> getRoundTypeForUI()
           
 boolean process(PossibleAction action)
           
 void resume()
           
 boolean setPossibleActions()
           
 boolean wasInterrupted()
           
 

Method Detail

getCurrentPlayer

Player getCurrentPlayer()
Get the player that has the next turn.

Returns:
Player object.

getRoundTypeForUI

java.lang.Class<? extends RoundI> getRoundTypeForUI()

getHelp

java.lang.String getHelp()

process

boolean process(PossibleAction action)

setPossibleActions

boolean setPossibleActions()

wasInterrupted

boolean wasInterrupted()

resume

void resume()

getRoundName

java.lang.String getRoundName()