|
||||||||||
| 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._1825.StockRound_1825
public class StockRound_1825
| Field Summary | |
|---|---|
protected int[] |
priceBands
|
| 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_1825(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 |
gameSpecificChecks(Portfolio boughtFrom,
PublicCompanyI company)
In 1825, whenever a company is sold out, the block of companies with the next lowest price become available. |
void |
setSellableShares()
Create a list of certificates that a player may sell in a Stock Round, taking all rules taken into account. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int[] priceBands
| Constructor Detail |
|---|
public StockRound_1825(GameManagerI aGameManager)
aGameManager - The GameManager Object needed to initialize the Stock Round| Method Detail |
|---|
protected void adjustSharePrice(PublicCompanyI company,
int numberSold,
boolean soldBefore)
adjustSharePrice in class StockRound
protected void gameSpecificChecks(Portfolio boughtFrom,
PublicCompanyI company)
gameSpecificChecks in class StockRoundboughtfrom - The portfolio from which a certificate has been bought.company - The company of which a share has been traded.public void setSellableShares()
StockRound
setSellableShares in class StockRound
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||