rails.game.move
Class TileMove
java.lang.Object
rails.game.move.Move
rails.game.move.TileMove
public class TileMove
- extends Move
- Author:
- Erik Vos
Constructor Summary |
TileMove(MapHex hex,
TileI oldTile,
int oldTileOrientation,
java.util.List<City> oldStations,
TileI newTile,
int newTileOrientation,
java.util.List<City> newStations)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
TileMove
public TileMove(MapHex hex,
TileI oldTile,
int oldTileOrientation,
java.util.List<City> oldStations,
TileI newTile,
int newTileOrientation,
java.util.List<City> newStations)
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