jfreerails.move
Class ChangeTrainMove

java.lang.Object
  extended by jfreerails.move.ChangeItemInListMove
      extended by jfreerails.move.ChangeTrainMove
All Implemented Interfaces:
java.io.Serializable, ListMove, Move, FreerailsSerializable

public class ChangeTrainMove
extends ChangeItemInListMove

This Move can change a train's engine and wagons.

Author:
Luke Lindsay
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
private ChangeTrainMove(int index, FreerailsSerializable before, FreerailsSerializable after, FreerailsPrincipal p)
           
 
Method Summary
static ChangeTrainMove generateMove(int id, TrainModel before, int newEngine, ImInts newWagons, FreerailsPrincipal p)
           
 
Methods inherited from class jfreerails.move.ChangeItemInListMove
beforeEqualsAfter, doMove, equals, getAfter, getBefore, getIndex, getKey, getPrincipal, hashCode, move, toString, tryDoMove, tryMove, 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

ChangeTrainMove

private ChangeTrainMove(int index,
                        FreerailsSerializable before,
                        FreerailsSerializable after,
                        FreerailsPrincipal p)
Method Detail

generateMove

public static ChangeTrainMove generateMove(int id,
                                           TrainModel before,
                                           int newEngine,
                                           ImInts newWagons,
                                           FreerailsPrincipal p)