|
||||||||||
| 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.specific._1851.StartRound_1851
public class StartRound_1851
Implements an 1835-style startpacket sale.
| Field Summary |
|---|
| Fields inherited from class rails.game.StartRound |
|---|
auctionItemState, 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_1851(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()
|
java.util.List<StartItem> |
getStartItems()
Get the current list of start items. |
boolean |
pass(java.lang.String playerName)
Process a player's pass. |
boolean |
setPossibleActions()
Get a list of items that may be bought immediately. |
void |
start()
Start the 1835-style start round. |
| Methods inherited from class rails.game.StartRound |
|---|
assignItem, buy, checksOnBuying, finishRound, getBidModel, getBlockedCashModel, getCurrentPlayerIndex, getFreeCashModel, getMinimumBidModel, getStartPacket, hasBasePrices, hasBidding, process, setNextPlayer, setPlayer, setPriorityPlayer, startPacketChecks |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StartRound_1851(GameManagerI gameManager)
| Method Detail |
|---|
public void start()
start in class StartRoundstartPacket - The startpacket to be sold in this start round.public boolean setPossibleActions()
In an 1835-style auction this method will usually return several items.
setPossibleActions in interface RoundIsetPossibleActions in class Roundpublic java.util.List<StartItem> getStartItems()
StartRound
getStartItems in class StartRound
public boolean bid(java.lang.String playerName,
BidStartItem item)
StartRound
bid in class StartRoundplayerName - The name of the current player (for checking purposes).public 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 | |||||||||