public class MirrorableModel extends java.lang.Object implements Mirrorable
Constructor and Description |
---|
MirrorableModel()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getMirror()
Get current mirror state.
|
boolean |
getMirrorCancel()
Get mirror cancel state.
|
void |
mirror(boolean state)
Set the next mirror state and apply it on next turn.
|
void |
setMirrorCancel(boolean state)
Set cancel state for the mirror operation.
|
void |
updateMirror()
Update mirror and apply it if necessary.
|
public void mirror(boolean state)
Mirrorable
mirror
in interface Mirrorable
state
- The next mirror state.public void updateMirror()
Mirrorable
updateMirror
in interface Mirrorable
public void setMirrorCancel(boolean state)
Mirrorable
setMirrorCancel
in interface Mirrorable
state
- The state.public boolean getMirrorCancel()
Mirrorable
getMirrorCancel
in interface Mirrorable
public boolean getMirror()
Mirrorable
getMirror
in interface Mirrorable