jfreerails.move
Class RemoveTrainMove

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

public class RemoveTrainMove
extends CompositeMove

This Move removes a train from the list of trains, and the corresponding CargoBundle and Schedule.

Author:
Luke
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
private RemoveTrainMove(Move[] moves)
           
 
Method Summary
static RemoveTrainMove getInstance(int index, FreerailsPrincipal p, ReadOnlyWorld world)
           
 
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

RemoveTrainMove

private RemoveTrainMove(Move[] moves)
Method Detail

getInstance

public static RemoveTrainMove getInstance(int index,
                                          FreerailsPrincipal p,
                                          ReadOnlyWorld world)