|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrails.game.Round
rails.game.StockRound
rails.game.specific._1856.StockRound_1856
public class StockRound_1856
| Field Summary |
|---|
| Fields inherited from class rails.game.StockRound |
|---|
BOUGHT, companyBoughtThisTurnWrapper, currentPlayer, hasActed, hasSoldThisTurnBeforeBuying, numberOfPlayers, numPasses, playersThatSoldThisRound, SELL_BUY, SELL_BUY_OR_BUY_SELL, SELL_BUY_SELL, sellObligationLifted, sellPrices, sequenceRule, SOLD, startingPlayer |
| 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 | |
|---|---|
StockRound_1856(GameManagerI aGameManager)
Constructor with the GameManager, will call super class (StockRound's) Constructor to initialize |
|
| Method Summary | |
|---|---|
protected void |
adjustSharePrice(PublicCompanyI company,
int numberSold,
boolean soldBefore)
|
protected void |
checkFlotation(PublicCompanyI company)
Special 1856 code to check for company flotation. |
protected void |
gameSpecificChecks(Portfolio boughtFrom,
PublicCompanyI company)
Check for the special condition that the CGR president has just bought his second share. |
protected CashHolder |
getSharePriceRecipient(PublicCompanyI company,
Portfolio from,
int price)
Who receives the cash when a certificate is bought. |
protected void |
initPlayer()
|
void |
resume()
Generic stub to resume an interrupted round. |
boolean |
setPossibleActions()
Check if the player is president of CGR and must buy a second share |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StockRound_1856(GameManagerI aGameManager)
aGameManager - The GameManager Object needed to initialize the Stock Round| Method Detail |
|---|
protected void checkFlotation(PublicCompanyI company)
checkFlotation in class Roundcompany - protected void initPlayer()
initPlayer in class StockRound
protected void adjustSharePrice(PublicCompanyI company,
int numberSold,
boolean soldBefore)
adjustSharePrice in class StockRound
protected CashHolder getSharePriceRecipient(PublicCompanyI company,
Portfolio from,
int price)
StockRound
getSharePriceRecipient in class StockRound
protected void gameSpecificChecks(Portfolio boughtFrom,
PublicCompanyI company)
gameSpecificChecks in class StockRoundpublic void resume()
Round
resume in interface RoundIresume in class Roundpublic boolean setPossibleActions()
setPossibleActions in interface RoundIsetPossibleActions in class StockRound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||