jfreerails.move
Class UpgradeTrackMove

java.lang.Object
  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.

Author:
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

serialVersionUID

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

UpgradeTrackMove

private UpgradeTrackMove(ChangeTrackPieceMove trackMove)
Method Detail

generateMove

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

getUpdatedTiles

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