Interface PlayerAction

All Known Implementing Classes:
CombinationLock.TryUnlock, CompletesLevel.WinAction, ContainsItemProperty.OpenAction, CoveringProperty.LookUnderAction, KeyLock.TryLock, KeyLock.TryUnlock, PassphraseLock.TryUnlock, PowerLock.TryUnlock, TrivialLock.TryUnlock

public interface PlayerAction
  • Method Details

    • getActionName

      String getActionName()
    • act

      If the return is present, an additional dialog containing the actor is displayed with a single "Continue" button, which dismisses the dialog after exit. Any state changes that this action enacts need to occur before this function returns. Before the menu is displayed, isValid(group24.escaperoom.data.GameContext) is called to potentially disable the button;
    • isValid

      boolean isValid(GameContext ctx)