public class CommandTurn extends StreetsideCommand
| Modifier and Type | Field and Description |
|---|---|
private double |
ca |
images| Constructor and Description |
|---|
CommandTurn(Set<StreetsideAbstractImage> images,
double ca)
Main constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
redo()
Redoes the action.
|
void |
sum(StreetsideCommand command)
If two equal commands are applied consecutively to the same set of images,
they are summed in order to reduce them to just one command.
|
String |
toString() |
void |
undo()
Undoes the action.
|
private double ca
public CommandTurn(Set<StreetsideAbstractImage> images, double ca)
images - Set of images that is turned.ca - How much the images turn.public void undo()
StreetsideCommandundo in class StreetsideCommandpublic void redo()
StreetsideCommandredo in class StreetsideCommandpublic String toString()
toString in class StreetsideCommandpublic void sum(StreetsideCommand command)
StreetsideCommandsum in class StreetsideCommandcommand - The command to be summed to last command.