rails.game
Class StartRound_1830
java.lang.Object
rails.game.Round
rails.game.StartRound
rails.game.StartRound_1830
- All Implemented Interfaces:
- RoundI
public class StartRound_1830
- extends StartRound
Implements an 1830-style initial auction.
Fields inherited from class rails.game.StartRound |
auctionItemState, companyNeedingPrice, currentPlayer, hasBasePrices, hasBidding, itemIndex, itemsToSell, numPasses, numPlayers, startPacket, startPlayer, variant |
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 |
Method Summary |
protected boolean |
bid(java.lang.String playerName,
BidStartItem bidItem)
The current player bids on a given start item. |
java.lang.String |
getHelp()
|
protected boolean |
pass(java.lang.String playerName)
Process a player's pass. |
boolean |
process(PossibleAction action)
|
boolean |
setPossibleActions()
Default version, does nothing. |
void |
start()
Start the 1830-style start round. |
Methods inherited from class rails.game.StartRound |
assignItem, buy, checksOnBuying, finishRound, getBidModel, getBlockedCashModel, getCurrentPlayerIndex, getFreeCashModel, getMinimumBidModel, getStartItems, getStartPacket, hasBasePrices, hasBidding, setNextPlayer, setPlayer, setPriorityPlayer, startPacketChecks |
Methods inherited from class rails.game.Round |
canCompanyOperateThisRound, canRequestTurn, certCountsAsSold, checkFlotation, exchangeTokens, floatCompany, getAutopasses, getCurrentPhase, getCurrentPlayer, getGameManager, getGameOption, getGameParameter, getGameParameterAsBoolean, getGameParameterAsInt, getNumberOfActivePlayers, getNumberOfPlayers, getPlayers, getRoundName, getRoundTypeForUI, getSoldPercentage, getSpecialProperties, hasAutopassed, pay, pay, requestTurn, resume, setAutopass, setCanRequestTurn, setCurrentPlayer, setCurrentPlayerIndex, setOperatingCompanies, setOperatingCompanies, toString, transferCertificate, transferCertificates, wasInterrupted |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
bidIncrement
int bidIncrement
StartRound_1830
public StartRound_1830(GameManagerI gameManager)
- Constructor, only to be used in dynamic instantiation.
start
public void start()
- Start the 1830-style start round.
- Overrides:
start
in class StartRound
- Parameters:
startPacket
- The startpacket to be sold in this start round.
process
public boolean process(PossibleAction action)
- Specified by:
process
in interface RoundI
- Overrides:
process
in class StartRound
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
bid
protected boolean bid(java.lang.String playerName,
BidStartItem bidItem)
- The current player bids on a given start item.
- Specified by:
bid
in class StartRound
- Parameters:
playerName
- The name of the current player (for checking purposes).itemName
- The name of the start item on which the bid is placed.amount
- The bid amount.
pass
protected boolean pass(java.lang.String playerName)
- Process a player's pass.
- Specified by:
pass
in class StartRound
- Parameters:
playerName
- The name of the current player (for checking purposes).
getHelp
public java.lang.String getHelp()
- Specified by:
getHelp
in interface RoundI
- Overrides:
getHelp
in class Round