rails.game.specific._1880
Class Investor_1880

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

public class Investor_1880
extends PublicCompany

Author:
Martin 2011/04/11

Field Summary
protected  boolean canBorrowTrain
           
protected  boolean canOwnShare
           
protected  boolean hasParPrice
           
protected  boolean hasStockPrice
           
protected  PublicCompany linkedCompany
           
protected  int maxPercofShares
           
 
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, hasReachedDestination, hasStarted, 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
Investor_1880()
           
 
Method Summary
 boolean canOwnShare()
           
 PublicCompany getLinkedCompany()
           
 boolean hasParPrice()
           
 boolean hasStockPrice()
          Is company present on the Stock Market?
 int maxPercofShares()
           
 boolean setLinkedCompany(PublicCompany linkedCompany)
           
 
Methods inherited from class rails.game.PublicCompany
addBonus, addCash, addCertificate, addLoans, addObject, addToken, buyPrivate, buyTrain, 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, getGameEndPrice, 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, hasReachedDestination, hasStarted, 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, 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
 

Field Detail

canOwnShare

protected boolean canOwnShare

maxPercofShares

protected int maxPercofShares

hasStockPrice

protected boolean hasStockPrice

hasParPrice

protected boolean hasParPrice

linkedCompany

protected PublicCompany linkedCompany

canBorrowTrain

protected boolean canBorrowTrain
Constructor Detail

Investor_1880

public Investor_1880()
Method Detail

canOwnShare

public boolean canOwnShare()

maxPercofShares

public int maxPercofShares()

hasStockPrice

public boolean hasStockPrice()
Description copied from interface: PublicCompanyI
Is company present on the Stock Market?

Specified by:
hasStockPrice in interface PublicCompanyI
Overrides:
hasStockPrice in class PublicCompany
Returns:
True if the company has a stock price.

hasParPrice

public boolean hasParPrice()
Specified by:
hasParPrice in interface PublicCompanyI
Overrides:
hasParPrice in class PublicCompany

getLinkedCompany

public PublicCompany getLinkedCompany()

setLinkedCompany

public boolean setLinkedCompany(PublicCompany linkedCompany)