Modifier and Type | Field and Description |
---|---|
private int |
change |
private InventorySet |
inventory |
private Record |
oldvalue |
private boolean |
runOnce |
private Video |
video |
Constructor and Description |
---|
CmdAdd(InventorySet inventory,
Video video,
int change) |
Modifier and Type | Method and Description |
---|---|
void |
redo()
Redo the command.
|
boolean |
run()
Do the command.
|
void |
undo()
Undo the command.
|
private boolean runOnce
private InventorySet inventory
private int change
CmdAdd(InventorySet inventory, Video video, int change)