rails.game.specific._1880
Class StockRound_1880

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

public class StockRound_1880
extends StockRound


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_1880(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)
          Share price goes down 1 space for any number of shares sold.
protected  int getCurrentSellPrice(PublicCompanyI company)
           
 
Methods inherited from class rails.game.StockRound
buyShares, checkAgainstHoldLimit, done, executeExchangeForShare, executeShareTransfer, finishRound, finishTurn, gameSpecificChecks, getBuyPrice, getCurrentPlayerIndex, 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, setSellableShares, 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
 

Constructor Detail

StockRound_1880

public StockRound_1880(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

getCurrentSellPrice

protected int getCurrentSellPrice(PublicCompanyI company)
Overrides:
getCurrentSellPrice in class StockRound

adjustSharePrice

protected void adjustSharePrice(PublicCompanyI company,
                                int numberSold,
                                boolean soldBefore)
Share price goes down 1 space for any number of shares sold.

Overrides:
adjustSharePrice in class StockRound