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


Field Summary
static int NO_PRICE_LIMIT
           
static java.lang.String REVENUE
           
static java.lang.String TYPE_TAG
           
 
Fields inherited from interface rails.game.CompanyI
COMPANY_ELEMENT_ID, COMPANY_NAME_TAG, COMPANY_TYPE_TAG
 
Fields inherited from interface rails.game.move.Moveable
AT_END
 
Method Summary
 void checkClosingIfExercised(boolean endOfOR)
           
 boolean closesAtEndOfTurn()
           
 boolean closesIfAllExercised()
           
 boolean closesIfAnyExercised()
           
 boolean closesManually()
           
 int getBasePrice()
           
 java.util.List<MapHex> getBlockedHexes()
           
 int getLowerPrice()
           
 int getLowerPrice(boolean saleToPlayer)
           
 java.util.List<java.lang.String> getPreventClosingConditions()
           
 int getPrivateNumber()
           
 int[] getRevenue()
           
 int getRevenueByPhase(PhaseI phase)
           
 int getUpperPrice()
           
 int getUpperPrice(boolean saleToPlayer)
           
 boolean isCloseable()
           
 void setHolder(Portfolio portfolio)
           
 boolean tradeableToCompany()
           
 boolean tradeableToPlayer()
           
 
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
 
Methods inherited from interface rails.game.ConfigurableComponentI
configureFromXML, finishConfiguration
 
Methods inherited from interface rails.game.move.MoveableHolder
addObject, getListIndex, removeObject
 
Methods inherited from interface rails.game.Certificate
getName, getPortfolio
 
Methods inherited from interface rails.game.move.Moveable
getHolder, moveTo
 
Methods inherited from interface rails.game.Closeable
close, getClosingInfo
 

Field Detail

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
Method Detail

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)