public class HardStateResetSpecialAction extends java.lang.Object implements SpecialExplorerAction
| Constructor and Description |
|---|
HardStateResetSpecialAction(State s)
Initializes which base state to reset to
|
HardStateResetSpecialAction(StateGenerator stateGenerator)
Initializes with a state generator to draw from on reset
|
| Modifier and Type | Method and Description |
|---|---|
State |
applySpecialAction(State curState) |
void |
setBase(State s)
Sets the base state to reset to
|
void |
setBaseStateGenerator(StateGenerator stateGenerator)
Sets the state generator to draw from on reset
|
public HardStateResetSpecialAction(State s)
s - the state to reset to when this action is executedpublic HardStateResetSpecialAction(StateGenerator stateGenerator)
stateGenerator - the state generate to draw from.public void setBase(State s)
s - the state to reset to when this action is executedpublic void setBaseStateGenerator(StateGenerator stateGenerator)
stateGenerator - the state generator to draw from on resetpublic State applySpecialAction(State curState)
applySpecialAction in interface SpecialExplorerAction