rails.game
Interface TrainI
- All Superinterfaces:
- Moveable
- All Known Implementing Classes:
- NameableTrain, Train
public interface TrainI
- extends Moveable
init
void init(TrainTypeI type,
int index)
getCost
int getCost()
- Returns:
- Returns the cost.
getMajorStops
int getMajorStops()
- Returns:
- Returns the number of major stops cities, off-board, perhaps
towns.
getMinorStops
int getMinorStops()
- Returns:
- Returns the minorStops (towns).
getTownCountIndicator
int getTownCountIndicator()
- Returns:
- Returns the townCountIndicator (major, minor or not at all).
getCityScoreFactor
int getCityScoreFactor()
- Returns:
- Returns the cityScoreFactor (0 or 1).
getTownScoreFactor
int getTownScoreFactor()
- Returns:
- Returns the townScoreFactor (0 or 1).
getType
TrainTypeI getType()
- Returns:
- Returns the train type.
getName
java.lang.String getName()
- Specified by:
getName
in interface Moveable
getUniqueId
java.lang.String getUniqueId()
getHolder
Portfolio getHolder()
- Specified by:
getHolder
in interface Moveable
getOwner
CashHolder getOwner()
isObsolete
boolean isObsolete()
setHolder
void setHolder(Portfolio newHolder)
setRusted
void setRusted()
setObsolete
void setObsolete()
canBeExchanged
boolean canBeExchanged()
toDisplay
java.lang.String toDisplay()
isTradeable
boolean isTradeable()
setTradeable
void setTradeable(boolean tradeable)