|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrails.game.Round
rails.game.StartRound
rails.game.StartRound_1835
public class StartRound_1835
Implements an 1835-style startpacket sale.
| Field Summary | |
|---|---|
static java.lang.String |
CLEMENS_VARIANT
|
static java.lang.String |
SNAKE_VARIANT
|
| 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 |
| Constructor Summary | |
|---|---|
StartRound_1835(GameManagerI gameManager)
Constructor, only to be used in dynamic instantiation. |
|
| Method Summary | |
|---|---|
boolean |
bid(java.lang.String playerName,
BidStartItem item)
The current player bids on a given start item. |
java.lang.String |
getHelp()
|
boolean |
pass(java.lang.String playerName)
Process a player's pass. |
protected void |
setNextPlayer()
Set the next player turn. |
boolean |
setPossibleActions()
Default version, does nothing. |
void |
start()
Start the 1835-style start round. |
| Methods inherited from class rails.game.StartRound |
|---|
assignItem, buy, checksOnBuying, finishRound, getBidModel, getBlockedCashModel, getCurrentPlayerIndex, getFreeCashModel, getMinimumBidModel, getStartItems, getStartPacket, hasBasePrices, hasBidding, process, setPlayer, setPriorityPlayer, startPacketChecks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLEMENS_VARIANT
public static final java.lang.String SNAKE_VARIANT
| Constructor Detail |
|---|
public StartRound_1835(GameManagerI gameManager)
| Method Detail |
|---|
public void start()
start in class StartRoundstartPacket - The startpacket to be sold in this start round.public boolean setPossibleActions()
Round
setPossibleActions in interface RoundIsetPossibleActions in class Round
public boolean bid(java.lang.String playerName,
BidStartItem item)
StartRound
bid in class StartRoundplayerName - The name of the current player (for checking purposes).protected void setNextPlayer()
setNextPlayer in class StartRoundpublic boolean pass(java.lang.String playerName)
pass in class StartRoundplayerName - The name of the current player (for checking purposes).public java.lang.String getHelp()
getHelp in interface RoundIgetHelp in class Round
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||