jfreerails.move
Class AddStationMove
java.lang.Object
jfreerails.move.CompositeMove
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
| 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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
AddStationMove
private AddStationMove(Move[] moves)
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)