Class PowerLock.TryUnlock
java.lang.Object
group24.escaperoom.entities.properties.PowerLock.TryUnlock
- All Implemented Interfaces:
PlayerAction
- Enclosing class:
- PowerLock
-
Nested Class Summary
Nested classes/interfaces inherited from interface group24.escaperoom.entities.player.PlayerAction
PlayerAction.ActionResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(GameContext ctx) If the return is present, an additional dialog containing the actor is displayed with a single "Continue" button, which dismisses the dialog after exit.booleanisValid(GameContext ctx)
-
Constructor Details
-
TryUnlock
protected TryUnlock()
-
-
Method Details
-
getActionName
- Specified by:
getActionNamein interfacePlayerAction
-
act
Description copied from interface:PlayerActionIf 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,PlayerAction.isValid(group24.escaperoom.data.GameContext)is called to potentially disable the button;- Specified by:
actin interfacePlayerAction
-
isValid
- Specified by:
isValidin interfacePlayerAction
-