Class UpgradeTrackMove

  extended by jfreerails.move.CompositeMove
      extended by jfreerails.move.UpgradeTrackMove
All Implemented Interfaces:
java.io.Serializable, MapUpdateMove, Move, TrackMove, FreerailsSerializable

public class UpgradeTrackMove
extends CompositeMove
implements TrackMove

This CompositeMove changes the track type at a point on the map and charges the players account for the cost of the change.

Luke Lindsay
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
Constructor Summary
private UpgradeTrackMove(ChangeTrackPieceMove trackMove)
Method Summary
static UpgradeTrackMove generateMove(TrackPiece before, TrackPiece after, ImPoint p)
 java.awt.Rectangle getUpdatedTiles()
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
Methods inherited from interface jfreerails.move.Move
doMove, tryDoMove, tryUndoMove, undoMove

Field Detail


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


private UpgradeTrackMove(ChangeTrackPieceMove trackMove)
Method Detail


public static UpgradeTrackMove generateMove(TrackPiece before,
                                            TrackPiece after,
                                            ImPoint p)


public java.awt.Rectangle getUpdatedTiles()
Specified by:
getUpdatedTiles in interface MapUpdateMove