Class KeyLock
java.lang.Object
group24.escaperoom.entities.properties.LockingMethod
group24.escaperoom.entities.properties.KeyLock
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable,ItemPropertyValue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classprotected class -
Field Summary
Fields inherited from class group24.escaperoom.entities.properties.LockingMethod
isBarrier, isLocked, owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<PlayerAction>getDisplay(Menu parent) protected LockingMethodgetName()getType()protected PlayerActionprotected PlayerActionvoidread(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue data) voidwrite(com.badlogic.gdx.utils.Json json) Methods inherited from class group24.escaperoom.entities.properties.LockingMethod
clone, equals, getLockAction, getUnlockAction, isLocked, onAttach, onDetatch
-
Constructor Details
-
KeyLock
public KeyLock()
-
-
Method Details
-
getName
- Specified by:
getNamein classLockingMethod
-
getType
- Specified by:
getTypein classLockingMethod
-
getDisplay
- Specified by:
getDisplayin interfaceItemPropertyValue- Overrides:
getDisplayin classLockingMethod- Parameters:
parent- the menu spawning this entry- Returns:
- the
Menu.MenuEntrydescribing thisItemPropertyValue
-
getActions
- Specified by:
getActionsin classLockingMethod
-
getEmptyMethod
- Specified by:
getEmptyMethodin classLockingMethod
-
write
public void write(com.badlogic.gdx.utils.Json json) - Specified by:
writein interfacecom.badlogic.gdx.utils.Json.Serializable- Overrides:
writein classLockingMethod
-
read
public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue data) - Specified by:
readin interfacecom.badlogic.gdx.utils.Json.Serializable- Overrides:
readin classLockingMethod
-
maybeGetLockAction
- Specified by:
maybeGetLockActionin classLockingMethod
-
maybeGetUnlockAction
- Specified by:
maybeGetUnlockActionin classLockingMethod
-