public class PortalLordSetValueEvent extends SingleVertexEvent<PortalLordInstance> implements PortalLordEvent
Constructor and Description |
---|
PortalLordSetValueEvent(PortalLordInstance game) |
PortalLordSetValueEvent(PortalLordInstance game,
Vertex v,
int oldValue,
int newValue) |
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.
|
int |
getNewValue() |
int |
getOldValue() |
java.lang.String |
getPrintableDetails()
Return the details for printing (e.g.
|
Event<PortalLordInstance> |
inverseEvent()
This is the method that will be called by the public method getInverseEvent.
|
boolean |
isSameEvent(Event arg) |
boolean |
modifiedPuzzle() |
void |
performEvent() |
void |
setNewValue(int newValue) |
void |
setOldValue(int oldValue) |
void |
takebackSideEffects()
Implement anything special that has to be done after a move has been taken back.
|
decodeData, getVertex, involvesMultipleVertices, involvesOneVertex, setVertex
canUserGenerate, clearComments, encodeEvent, encodeEvents, equals, getAfterActionComment, getBeforeActionComment, getBetweenActionComment, getGame, getIntroductoryComment, getInverseEvent, getRealAfterActionComment, getRealBeforeActionComment, getRealBetweenActionComment, getRealIntroductoryComment, getTimeSinceFirstEvent, hashCode, isCreatedFromConstructor, modifiedGraph, performInverseEvent, performTakebackEvent, setAfterActionComment, setBeforeActionComment, setBetweenActionComment, setCreatedFromConstructor, setGame, setIntroductoryComment, setTimeSinceFirstEvent, toString, toStringWithoutTime
public PortalLordSetValueEvent(PortalLordInstance game)
public PortalLordSetValueEvent(PortalLordInstance game, Vertex v, int oldValue, int newValue)
public boolean modifiedPuzzle()
modifiedPuzzle
in interface Event<PortalLordInstance>
modifiedPuzzle
in class BaseEvent<PortalLordInstance>
public Event<PortalLordInstance> inverseEvent()
BaseEvent
public void performEvent()
performEvent
in interface Event<PortalLordInstance>
public int getOldValue()
public void setOldValue(int oldValue)
public int getNewValue()
public void setNewValue(int newValue)
public boolean isSameEvent(Event arg)
isSameEvent
in interface Event<PortalLordInstance>
isSameEvent
in class SingleVertexEvent<PortalLordInstance>
public java.lang.String getDefaultIntroductoryComment()
getDefaultIntroductoryComment
in interface Event<PortalLordInstance>
getDefaultIntroductoryComment
in class BaseEvent<PortalLordInstance>
public java.lang.String getDefaultBeforeActionComment()
getDefaultBeforeActionComment
in interface Event<PortalLordInstance>
getDefaultBeforeActionComment
in class BaseEvent<PortalLordInstance>
public java.lang.String getDefaultBetweenActionComment()
getDefaultBetweenActionComment
in interface Event<PortalLordInstance>
getDefaultBetweenActionComment
in class BaseEvent<PortalLordInstance>
public java.lang.String getEventName()
BaseEvent
getEventName
in class BaseEvent<PortalLordInstance>
public java.lang.String getPrintableDetails()
BaseEvent
getPrintableDetails
in class SingleVertexEvent<PortalLordInstance>
public void takebackSideEffects()
Event
takebackSideEffects
in interface Event<PortalLordInstance>