public class ResetVertexLocationsEvent extends BaseEvent<PuzzleInstance> implements MoveEvent
SQUARE_OF_DISTANCE_THRESHOLD
Constructor and Description |
---|
ResetVertexLocationsEvent(PuzzleInstance game) |
ResetVertexLocationsEvent(PuzzleInstance game,
java.util.ArrayList<java.awt.Point> origLocations) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDefaultBeforeActionComment() |
java.lang.String |
getDefaultBetweenActionComment() |
java.lang.String |
getDefaultIntroductoryComment() |
java.lang.String |
getEventName()
Return the name of the event for printing.
|
java.lang.String |
getPrintableDetails()
Return the details for printing (e.g.
|
boolean |
involvesMultipleVertices() |
boolean |
involvesOneVertex() |
boolean |
modifiedGraph() |
void |
performEvent() |
void |
takebackSideEffects()
Implement anything special that has to be done after a move has been taken back.
|
void |
updateNewLocations() |
canUserGenerate, clearComments, encodeEvent, encodeEvents, equals, getAfterActionComment, getBeforeActionComment, getBetweenActionComment, getGame, getIntroductoryComment, getInverseEvent, getRealAfterActionComment, getRealBeforeActionComment, getRealBetweenActionComment, getRealIntroductoryComment, getTimeSinceFirstEvent, hashCode, isCreatedFromConstructor, isSameEvent, modifiedPuzzle, performInverseEvent, performTakebackEvent, setAfterActionComment, setBeforeActionComment, setBetweenActionComment, setCreatedFromConstructor, setGame, setIntroductoryComment, setTimeSinceFirstEvent, toString, toStringWithoutTime
public ResetVertexLocationsEvent(PuzzleInstance game)
public ResetVertexLocationsEvent(PuzzleInstance game, java.util.ArrayList<java.awt.Point> origLocations)
public void performEvent()
performEvent
in interface Event<PuzzleInstance>
public java.lang.String getDefaultIntroductoryComment()
getDefaultIntroductoryComment
in interface Event<PuzzleInstance>
getDefaultIntroductoryComment
in class BaseEvent<PuzzleInstance>
public java.lang.String getDefaultBeforeActionComment()
getDefaultBeforeActionComment
in interface Event<PuzzleInstance>
getDefaultBeforeActionComment
in class BaseEvent<PuzzleInstance>
public java.lang.String getDefaultBetweenActionComment()
getDefaultBetweenActionComment
in interface Event<PuzzleInstance>
getDefaultBetweenActionComment
in class BaseEvent<PuzzleInstance>
public java.lang.String getEventName()
BaseEvent
getEventName
in class BaseEvent<PuzzleInstance>
public boolean modifiedGraph()
modifiedGraph
in interface Event<PuzzleInstance>
modifiedGraph
in class BaseEvent<PuzzleInstance>
public void takebackSideEffects()
Event
takebackSideEffects
in interface Event<PuzzleInstance>
public void updateNewLocations()
updateNewLocations
in interface MoveEvent
public java.lang.String getPrintableDetails()
BaseEvent
getPrintableDetails
in class BaseEvent<PuzzleInstance>
public boolean involvesOneVertex()
involvesOneVertex
in interface Event<PuzzleInstance>
involvesOneVertex
in class BaseEvent<PuzzleInstance>
public boolean involvesMultipleVertices()
involvesMultipleVertices
in interface Event<PuzzleInstance>
involvesMultipleVertices
in class BaseEvent<PuzzleInstance>