Class PhantomProperty
java.lang.Object
group24.escaperoom.entities.properties.ItemProperty<PhantomProperty.PhantomPropertyValue>
group24.escaperoom.entities.properties.PhantomProperty
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable
- Direct Known Subclasses:
AnimatedProperty,Barrier,Brushable,Collideable,CompletesLevel,Connector,ContainableProperty,InteractableProperty,ObtainableProperty,PlayerProperty,SpinnableProperty,Toggleable,Unique,UnlockerProperty
A
PhantomProperty is to be used as a marker object to represent simple object behavior.
e.g. ContainableProperty is a PhantomProperty in that an object is able to be placed in a container
Extend this class to create marker objects
- These properties will not show up in the LevelEditorScreen-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class group24.escaperoom.entities.properties.ItemProperty
ItemProperty.MenuType -
Field Summary
Fields inherited from class group24.escaperoom.entities.properties.ItemProperty
owner -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.utils.Array<PlayerAction>com.badlogic.gdx.utils.Array<PhantomProperty.PhantomPropertyValue>voidread(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData) voidwrite(com.badlogic.gdx.utils.Json json) Methods inherited from class group24.escaperoom.entities.properties.ItemProperty
apply, cloneProperty, defaultConfiguration, getActions, getCurrentValue, getCurrentValues, getCustomItemConfigurationMenu, getDescription, getDisplayName, getOwner, getPopOut, getType, set, set, setOwner, unsafeSet, unsafeSet, updateTexture
-
Constructor Details
-
PhantomProperty
public PhantomProperty()
-
-
Method Details
-
getPotentialValues
- Specified by:
getPotentialValuesin classItemProperty<PhantomProperty.PhantomPropertyValue>- Returns:
- all possible values for this property
-
getValueClass
- Specified by:
getValueClassin classItemProperty<PhantomProperty.PhantomPropertyValue>- Returns:
- the class of the
ItemPropertyValuefor this property
-
getInputType
- Specified by:
getInputTypein classItemProperty<PhantomProperty.PhantomPropertyValue>- Returns:
- the
ItemProperty.MenuTypethat should be used to recieve and display theItemPropertyValueassociated with this property - adding a new input type requires updatingItemMenuto support it
-
getAvailableActions
- Specified by:
getAvailableActionsin classItemProperty<PhantomProperty.PhantomPropertyValue>- Returns:
- all available
PlayerAction
-
write
public void write(com.badlogic.gdx.utils.Json json) -
read
public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData)
-