rails.game.specific._18AL
Class NameableTrain

java.lang.Object
  extended by rails.game.Train
      extended by rails.game.specific._18AL.NameableTrain
All Implemented Interfaces:
Moveable, TrainI

public class NameableTrain
extends Train


Field Summary
 
Fields inherited from class rails.game.Train
cityScoreFactor, cost, holder, log, majorStops, minorStops, obsolete, townCountIndicator, townScoreFactor, tradeable, type, uniqueId
 
Fields inherited from interface rails.game.move.Moveable
AT_END
 
Constructor Summary
NameableTrain()
           
 
Method Summary
 NamedTrainToken getNameToken()
           
 void init(TrainTypeI type, int index)
           
 void moveTo(MoveableHolder to)
           
 void setNameToken(NamedTrainToken nameToken)
           
 java.lang.String toDisplay()
           
 
Methods inherited from class rails.game.Train
canBeExchanged, getCityScoreFactor, getCost, getHolder, getMajorStops, getMinorStops, getName, getOwner, getTownCountIndicator, getTownScoreFactor, getType, getUniqueId, isObsolete, isTradeable, setHolder, setObsolete, setRusted, setTradeable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameableTrain

public NameableTrain()
Method Detail

init

public void init(TrainTypeI type,
                 int index)
Specified by:
init in interface TrainI
Overrides:
init in class Train

setNameToken

public void setNameToken(NamedTrainToken nameToken)

getNameToken

public NamedTrainToken getNameToken()

moveTo

public void moveTo(MoveableHolder to)
Specified by:
moveTo in interface Moveable
Overrides:
moveTo in class Train

toDisplay

public java.lang.String toDisplay()
Specified by:
toDisplay in interface TrainI
Overrides:
toDisplay in class Train