Class CombinationLock
java.lang.Object
group24.escaperoom.entities.properties.LockingMethod
group24.escaperoom.entities.properties.CombinationLock
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable,ItemPropertyValue,StringItemPropertyValue
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class group24.escaperoom.entities.properties.LockingMethod
isBarrier, isLocked, owner -
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor forJson.Serializablecompatability constructorCombinationLock(String val) -
Method Summary
Modifier and TypeMethodDescriptiongroup24.escaperoom.entities.properties.CombinationLock.NumberInputcom.badlogic.gdx.utils.Array<PlayerAction>getDisplay(Menu parent) protected LockingMethodgetName()getType()getValue()booleanisLocked()protected PlayerActionprotected PlayerActionvoidread(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue data) voidvoidwrite(com.badlogic.gdx.utils.Json json) Methods inherited from class group24.escaperoom.entities.properties.LockingMethod
clone, equals, getLockAction, getUnlockAction, onAttach, onDetatch
-
Field Details
-
combination
-
-
Constructor Details
-
CombinationLock
public CombinationLock()Empty constructor forJson.Serializablecompatability constructor -
CombinationLock
-
-
Method Details
-
getValue
- Specified by:
getValuein interfaceStringItemPropertyValue
-
setValue
- Specified by:
setValuein interfaceStringItemPropertyValue
-
isLocked
public boolean isLocked()- Overrides:
isLockedin classLockingMethod
-
getDisplay
- Specified by:
getDisplayin interfaceItemPropertyValue- Overrides:
getDisplayin classLockingMethod- Parameters:
parent- the menu spawning this entry- Returns:
- the
Menu.MenuEntrydescribing thisItemPropertyValue
-
configurationDisplay
public group24.escaperoom.entities.properties.CombinationLock.NumberInput configurationDisplay() -
getName
- Specified by:
getNamein classLockingMethod
-
getActions
- Specified by:
getActionsin 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
-
getType
- Specified by:
getTypein classLockingMethod
-
getEmptyMethod
- Specified by:
getEmptyMethodin classLockingMethod
-
maybeGetLockAction
- Specified by:
maybeGetLockActionin classLockingMethod
-
maybeGetUnlockAction
- Specified by:
maybeGetUnlockActionin classLockingMethod
-