Package commands
Class CmdUpdateHexagon
- java.lang.Object
-
- commands.CmdUpdateHexagon
-
-
Field Summary
Fields Modifier and Type Field Description private HexagonAdapter
newState
private HexagonAdapter
oldState
private HexagonAdapter
originalState
-
Constructor Summary
Constructors Constructor Description CmdUpdateHexagon(HexagonAdapter oldState, HexagonAdapter newState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Update hexagon.void
unexecute()
Undo previous updating and return hexagon to the original values.
-
-
-
Field Detail
-
oldState
private HexagonAdapter oldState
-
newState
private HexagonAdapter newState
-
originalState
private HexagonAdapter originalState
-
-
Constructor Detail
-
CmdUpdateHexagon
public CmdUpdateHexagon(HexagonAdapter oldState, HexagonAdapter newState)
-
-