rails.game.specific._1856
Class PublicCompany_1856

java.lang.Object
  extended by rails.game.Company
      extended by rails.game.PublicCompany
          extended by rails.game.specific._1856.PublicCompany_1856
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<Company>, CashHolder, CompanyI, ConfigurableComponentI, MoveableHolder, PublicCompanyI, TokenHolder

public class PublicCompany_1856
extends PublicCompany


Field Summary
 
Fields inherited from class rails.game.PublicCompany
allBaseTokens, bank, BASE_COST_DISTANCE, BASE_COST_SEQUENCE, baseTokenLayCost, baseTokenLayCostMethod, baseTokensBuyCost, baseTokensModel, bgColour, bgHexColour, bonuses, bonusValue, buyable, canBeRestarted, canBuyPrivates, canBuyStock, canClose, canHoldOwnShares, canSharePriceVary, canUseSpecialProperties, capitalisation, certificates, currentLoanValue, currentNumberOfLoans, currentPrice, DEFAULT_SHARE_UNIT, destinationHex, destinationHexName, extraTileLays, extraTiles, fgColour, fgHexColour, fixedPrice, floatPerc, freeBaseTokens, gameManager, hasFloated, hasOperated, hasParPrice, hasReachedDestination, hasStarted, hasStockPrice, homeAllCitiesBlocked, homeBaseTokensLayTime, homeCityNumber, homeHexes, homeHexNames, inGameState, initialTrainCost, initialTrainTradeable, initialTrainType, ipoPaysOut, laidBaseTokens, lastRevenue, lastRevenueAllocation, loanInterestPct, lowerPrivatePriceFactor, mapManager, maxLoansPerRound, maxNumberOfLoans, maxPercOfOwnShares, mayTradeShares, mustHaveOperatedToTradeShares, mustOwnATrain, mustTradeTrainsAtFixedPrice, numberOfBaseTokens, numberOfPublicCompanies, parPrice, payoutMustExceedPriceToMove, poolPaysOut, presidentModel, privatesCostThisTurn, privateToCloseOnFirstTrain, privateToCloseOnFirstTrainName, publicNumber, sharePriceUpOnFloating, shareUnit, shareUnitsForSharePrice, splitAllowed, splitAlways, START_OF_FIRST_OR, startSpace, stockMarket, tilesCostThisTurn, tilesLaidThisTurn, tokenLayTimeNames, tokensCostThisTurn, tokensLaidThisTurn, trainLimit, trainsCostThisTurn, treasury, treasuryPaysOut, turnsWithExtraTileLays, turnsWithExtraTileLaysInit, upperPrivatePriceFactor, valuePerLoan, WHEN_FLOATED, WHEN_STARTED
 
Fields inherited from class rails.game.Company
alias, certLimitCount, closedObject, companyNumber, infoText, log, longName, name, parentInfoText, portfolio, specialProperties, type, value
 
Fields inherited from interface rails.game.PublicCompanyI
CAPITALISE_FULL, CAPITALISE_INCREMENTAL, CAPITALISE_WHEN_BOUGHT
 
Fields inherited from interface rails.game.CompanyI
COMPANY_ELEMENT_ID, COMPANY_NAME_TAG, COMPANY_TYPE_TAG
 
Constructor Summary
PublicCompany_1856()
           
 
Method Summary
 void addMoneyInEscrow(int amount)
           
 void buyTrain(TrainI train, int price)
          Must be called in stead of Portfolio.buyTrain if side-effects can occur.
 int getGameEndPrice()
          Return the price per share at game end.
 int getMoneyInEscrow()
           
 int getTrainNumberAvailableAtStart()
           
 boolean hadPermanentTrain()
           
 void setMoneyInEscrow(int amount)
           
 void start(StockSpaceI startSpace)
          Start the company.
 
Methods inherited from class rails.game.PublicCompany
addBonus, addCash, addCertificate, addLoans, addObject, addToken, buyPrivate, canBuyPrivates, canBuyStock, canClose, canHoldOwnShares, canLoan, canRunTrains, canSharePriceVary, canUseSpecialProperties, checkPresidency, checkPresidencyOnBuy, checkPresidencyOnSale, clone, configureFromXML, finishConfiguration, getBaseTokenLayCost, getBaseTokenLayCosts, getBaseTokensBuyCost, getBaseTokensModel, getBgColour, getBonuses, getBonusTokensModel, getCapitalisation, getCash, getCashModel, getCertificates, getCurrentLoanValue, getCurrentNumberOfLoans, getCurrentPriceModel, getCurrentSpace, getCurrentTrainLimit, getDestinationHex, getExtraShareMarks, getFgColour, getFixedPrice, getFloatPercentage, getFormattedCash, getFreeToken, getHexBgColour, getHexFgColour, getHomeCityNumber, getHomeHexes, getInGameModel, getIPOPrice, getIsClosedModel, getLastRevenue, getLastRevenueAllocationModel, getlastRevenueAllocationText, getLastRevenueModel, getListIndex, getLoanInterestPct, getLoanValueModel, getMarketPrice, getMaxLoansPerRound, getMaxNumberOfLoans, getNumberOfBaseTokens, getNumberOfFreeBaseTokens, getNumberOfLaidBaseTokens, getNumberOfShares, getNumberOfTileLays, getNumberOfTrains, getParPriceModel, getPresident, getPresidentModel, getPresidentsShare, getPrivatesSpentThisTurnModel, getPublicNumber, getShareUnit, getShareUnitsForSharePrice, getStartSpace, getTilesCostThisTurnModel, getTilesLaidThisTurnModel, getTokens, getTokensCostThisTurnModel, getTokensLaidThisTurnModel, getTrainLimit, getTrainsSpentThisTurnModel, getValuePerLoan, hasDestination, hasFloated, hasLaidHomeBaseTokens, hasOperated, hasParPrice, hasReachedDestination, hasStarted, hasStockPrice, hasTokens, init, initTurn, isAvailable, isBuyable, isHomeBlockedForAllCities, isSoldOut, isSplitAllowed, isSplitAlways, layBaseToken, layBaseTokenInNoMapMode, layHomeBaseTokens, layTile, layTileInNoMapMode, mayBuyTrainType, mayTradeShares, mustHaveOperatedToTradeShares, mustOwnATrain, mustTradeTrainsAtFixedPrice, nameCertificates, payout, paysOutToTreasury, reinitialise, removeBonus, removeBonus, removeObject, removeToken, setBuyable, setCapitalisation, setCertificates, setClosed, setCurrentSpace, setFloated, setHomeCityNumber, setHomeHex, setIndex, setLastRevenue, setLastRevenueAllocation, setOperated, setParSpace, setReachedDestination, sharesOwnedByPlayers, start, start, toString, transferAssetsFrom, updatePlayersWorth, withhold
 
Methods inherited from class rails.game.Company
addToken, compareTo, equals, getAlias, getCertLimitCount, getCompanyNumber, getHolder, getInfoText, getLongName, getName, getNumber, getPortfolio, getSpecialProperties, getType, getTypeName, getValue, hasSpecialProperties, isClosed, joinNamesWithDelimiter, setCertLimitCount, setValue
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface rails.game.CompanyI
equals, getAlias, getCertLimitCount, getCompanyNumber, getInfoText, getLongName, getName, getPortfolio, getSpecialProperties, getType, getTypeName, getValue, hasSpecialProperties, isClosed, setCertLimitCount, setValue
 
Methods inherited from interface rails.game.CashHolder
getName
 
Methods inherited from interface rails.game.TokenHolder
getName
 

Constructor Detail

PublicCompany_1856

public PublicCompany_1856()
Method Detail

start

public void start(StockSpaceI startSpace)
Description copied from interface: PublicCompanyI
Start the company.

Specified by:
start in interface PublicCompanyI
Overrides:
start in class PublicCompany

getTrainNumberAvailableAtStart

public int getTrainNumberAvailableAtStart()

setMoneyInEscrow

public void setMoneyInEscrow(int amount)

addMoneyInEscrow

public void addMoneyInEscrow(int amount)

getMoneyInEscrow

public int getMoneyInEscrow()

hadPermanentTrain

public boolean hadPermanentTrain()

buyTrain

public void buyTrain(TrainI train,
                     int price)
Description copied from class: PublicCompany
Must be called in stead of Portfolio.buyTrain if side-effects can occur.

Specified by:
buyTrain in interface PublicCompanyI
Overrides:
buyTrain in class PublicCompany

getGameEndPrice

public int getGameEndPrice()
Description copied from class: PublicCompany
Return the price per share at game end. Normally, it is equal to the market price, but in some games (e.g. 1856) deductions may apply.

Specified by:
getGameEndPrice in interface PublicCompanyI
Overrides:
getGameEndPrice in class PublicCompany