Class SetHiddenStates
java.lang.Object
io.github.jspinak.brobot.manageStates.SetHiddenStates
Set the hidden States after a successful State transition.
Any active States that are in the newly activated State's canHide set
will become hidden States.
-
Constructor Summary
ConstructorsConstructorDescriptionSetHiddenStates
(AllStatesInProjectService allStatesInProjectService, StateMemory stateMemory) -
Method Summary
-
Constructor Details
-
SetHiddenStates
public SetHiddenStates(AllStatesInProjectService allStatesInProjectService, StateMemory stateMemory)
-
-
Method Details
-
set
After stateToSet is active, set the hidden States and remove them from the active States.- Parameters:
stateToSet
- the State to add to the list of active States.- Returns:
- true when the stateToSet is a valid State
-