rails.game
Interface PrivateCompanyI
- All Superinterfaces:
- Certificate, Closeable, CompanyI, ConfigurableComponentI, Moveable, MoveableHolder
- All Known Implementing Classes:
- PrivateCompany
public interface PrivateCompanyI
- extends CompanyI, Certificate, MoveableHolder, Closeable
Methods inherited from interface rails.game.CompanyI |
clone, equals, getAlias, getCertLimitCount, getCompanyNumber, getInfoText, getLongName, getName, getPortfolio, getSpecialProperties, getType, getTypeName, getValue, hasSpecialProperties, init, isClosed, setCertLimitCount, setClosed, setValue, toString |
TYPE_TAG
static final java.lang.String TYPE_TAG
- See Also:
- Constant Field Values
REVENUE
static final java.lang.String REVENUE
- See Also:
- Constant Field Values
NO_PRICE_LIMIT
static final int NO_PRICE_LIMIT
- See Also:
- Constant Field Values
getPrivateNumber
int getPrivateNumber()
- Returns:
getBasePrice
int getBasePrice()
- Returns:
getRevenue
int[] getRevenue()
- Returns:
getRevenueByPhase
int getRevenueByPhase(PhaseI phase)
getBlockedHexes
java.util.List<MapHex> getBlockedHexes()
setHolder
void setHolder(Portfolio portfolio)
isCloseable
boolean isCloseable()
getPreventClosingConditions
java.util.List<java.lang.String> getPreventClosingConditions()
closesIfAllExercised
boolean closesIfAllExercised()
closesIfAnyExercised
boolean closesIfAnyExercised()
closesAtEndOfTurn
boolean closesAtEndOfTurn()
closesManually
boolean closesManually()
checkClosingIfExercised
void checkClosingIfExercised(boolean endOfOR)
getUpperPrice
int getUpperPrice()
- Returns:
- Returns the upperPrice that the company can be sold in for.
getUpperPrice
int getUpperPrice(boolean saleToPlayer)
getLowerPrice
int getLowerPrice()
- Returns:
- Returns the lowerPrice that the company can be sold in for.
getLowerPrice
int getLowerPrice(boolean saleToPlayer)
tradeableToCompany
boolean tradeableToCompany()
- Returns:
- Returns whether or not the company can be bought by a company
tradeableToPlayer
boolean tradeableToPlayer()
- Returns:
- Returns whether or not the company can be bought by a player (from another player)