Package commands
Class CmdUpdateHexagon
- java.lang.Object
-
- commands.CmdUpdateHexagon
-
-
Field Summary
Fields Modifier and Type Field Description private HexagonAdapternewStateprivate HexagonAdapteroldStateprivate HexagonAdapteroriginalState
-
Constructor Summary
Constructors Constructor Description CmdUpdateHexagon(HexagonAdapter oldState, HexagonAdapter newState)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()Update hexagon.voidunexecute()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)
-
-