rails.game.move
Class TileMove

java.lang.Object
  extended by rails.game.move.Move
      extended by rails.game.move.TileMove

public class TileMove
extends Move

Author:
Erik Vos

Field Summary
(package private)  MapHex hex
           
(package private)  java.util.List<City> newStations
           
(package private)  TileI newTile
           
(package private)  int newTileOrientation
           
(package private)  java.util.List<City> oldStations
           
(package private)  TileI oldTile
           
(package private)  int oldTileOrientation
           
 
Fields inherited from class rails.game.move.Move
log, models
 
Constructor Summary
TileMove(MapHex hex, TileI oldTile, int oldTileOrientation, java.util.List<City> oldStations, TileI newTile, int newTileOrientation, java.util.List<City> newStations)
           
 
Method Summary
 boolean execute()
           
 java.lang.String toString()
           
 boolean undo()
           
 
Methods inherited from class rails.game.move.Move
registerModelToUpdate, updateModels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hex

MapHex hex

oldTile

TileI oldTile

oldTileOrientation

int oldTileOrientation

oldStations

java.util.List<City> oldStations

newTile

TileI newTile

newTileOrientation

int newTileOrientation

newStations

java.util.List<City> newStations
Constructor Detail

TileMove

public TileMove(MapHex hex,
                TileI oldTile,
                int oldTileOrientation,
                java.util.List<City> oldStations,
                TileI newTile,
                int newTileOrientation,
                java.util.List<City> newStations)
Method Detail

execute

public boolean execute()
Specified by:
execute in class Move

undo

public boolean undo()
Specified by:
undo in class Move

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object