Class SetHiddenStates

java.lang.Object
io.github.jspinak.brobot.manageStates.SetHiddenStates

@Component public class SetHiddenStates extends Object
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 Details

  • Method Details

    • set

      public boolean set(Long stateToSet)
      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