jfreerails.move
Class AddStationMove

java.lang.Object
  extended by jfreerails.move.CompositeMove
      extended by jfreerails.move.AddStationMove
All Implemented Interfaces:
java.io.Serializable, Move, FreerailsSerializable

public class AddStationMove
extends CompositeMove

This CompositeMoveadds a station to the station list and adds a cargo bundle (to store the cargo waiting at the station) to the cargo bundle list.

Author:
Luke
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
private AddStationMove(Move[] moves)
           
 
Method Summary
static AddStationMove generateMove(ReadOnlyWorld w, java.lang.String stationName, ImPoint p, ChangeTrackPieceMove upgradeTrackMove, FreerailsPrincipal principal)
           
 StationModel getNewStation()
           
static AddStationMove upgradeStation(ChangeTrackPieceMove upgradeTrackMove)
           
 
Methods inherited from class jfreerails.move.CompositeMove
compositeTest, doMove, equals, getMove, getMoves, hashCode, size, toString, tryDoMove, tryUndoMove, undoMove
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

AddStationMove

private AddStationMove(Move[] moves)
Method Detail

getNewStation

public StationModel getNewStation()

generateMove

public static AddStationMove generateMove(ReadOnlyWorld w,
                                          java.lang.String stationName,
                                          ImPoint p,
                                          ChangeTrackPieceMove upgradeTrackMove,
                                          FreerailsPrincipal principal)

upgradeStation

public static AddStationMove upgradeStation(ChangeTrackPieceMove upgradeTrackMove)