rails.game.specific._1825
Class StockRound_1825

java.lang.Object
  extended by rails.game.Round
      extended by rails.game.StockRound
          extended by rails.game.specific._1825.StockRound_1825
All Implemented Interfaces:
RoundI

public class StockRound_1825
extends StockRound


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 rails.game.StockRound
buyShares, checkAgainstHoldLimit, done, executeExchangeForShare, executeShareTransfer, finishRound, finishTurn, getBuyPrice, getCurrentPlayerIndex, getCurrentSellPrice, getHelp, getRoundName, getSharePriceRecipient, getStockRoundNumber, initPlayer, isPlayerOverLimits, isPlayerOverLimitsDetail, isSaleRecorded, isSellObligationLifted, maxAllowedNumberOfSharesToBuy, mayCurrentPlayerBuyAnything, mayCurrentPlayerSellAnything, mayPlayerBuyCertificate, mayPlayerSellShareOfCompany, noSaleIfNotOperated, noSaleInFirstSR, process, processGameSpecificAction, recordSale, releaseCompanyShares, requestTurn, sellShares, setBuyableCerts, setCurrentPlayer, setGameSpecificActions, setNextPlayer, setPossibleActions, setPriority, setSellObligationLifted, setSpecialActions, start, startCompany, toString, useSpecialProperty
 
Methods inherited from class rails.game.Round
canCompanyOperateThisRound, canRequestTurn, certCountsAsSold, checkFlotation, exchangeTokens, floatCompany, getAutopasses, getCurrentPhase, getCurrentPlayer, getGameManager, getGameOption, getGameParameter, getGameParameterAsBoolean, getGameParameterAsInt, getNumberOfActivePlayers, getNumberOfPlayers, getPlayers, getRoundTypeForUI, getSoldPercentage, getSpecialProperties, hasAutopassed, pay, pay, requestTurn, resume, setAutopass, setCanRequestTurn, setCurrentPlayerIndex, setOperatingCompanies, setOperatingCompanies, transferCertificate, transferCertificates, wasInterrupted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

priceBands

protected int[] priceBands
Constructor Detail

StockRound_1825

public StockRound_1825(GameManagerI aGameManager)
Constructor with the GameManager, will call super class (StockRound's) Constructor to initialize

Parameters:
aGameManager - The GameManager Object needed to initialize the Stock Round
Method Detail

adjustSharePrice

protected void adjustSharePrice(PublicCompanyI company,
                                int numberSold,
                                boolean soldBefore)
Overrides:
adjustSharePrice in class StockRound

gameSpecificChecks

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. Hopefully this logic is generic enough to withstand any combination of units for future implementation

Overrides:
gameSpecificChecks in class StockRound
Parameters:
boughtfrom - The portfolio from which a certificate has been bought.
company - The company of which a share has been traded.

setSellableShares

public void setSellableShares()
Description copied from class: StockRound
Create a list of certificates that a player may sell in a Stock Round, taking all rules taken into account.

Overrides:
setSellableShares in class StockRound