Class TiledBrushable
java.lang.Object
group24.escaperoom.entities.properties.ItemProperty<PhantomProperty.PhantomPropertyValue>
group24.escaperoom.entities.properties.PhantomProperty
group24.escaperoom.entities.properties.Brushable
group24.escaperoom.entities.properties.TiledBrushable
- All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class group24.escaperoom.entities.properties.PhantomProperty
PhantomProperty.PhantomPropertyValueNested 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
ConstructorsConstructorDescriptionEmpty constructor forJson.Serializablecompatability constructorTiledBrushable(Item item) TiledBrushable(Item item, TiledBrushable.TileType orientation, int rotation) -
Method Summary
Modifier and TypeMethodDescriptiongetType()voidread(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue data) voidvoidsetOrientation(TiledBrushable.TileType orientation) voidsetRotation(int rotation) voidUpdates the owner's texture based on the property.voidwrite(com.badlogic.gdx.utils.Json json) Methods inherited from class group24.escaperoom.entities.properties.PhantomProperty
getAvailableActions, getInputType, getPotentialValues, getValueClassMethods inherited from class group24.escaperoom.entities.properties.ItemProperty
apply, cloneProperty, defaultConfiguration, getActions, getCurrentValue, getCurrentValues, getCustomItemConfigurationMenu, getOwner, getPopOut, set, set, setOwner, unsafeSet, unsafeSet
-
Constructor Details
-
TiledBrushable
public TiledBrushable()Empty constructor forJson.Serializablecompatability constructor -
TiledBrushable
-
TiledBrushable
-
-
Method Details
-
getDescription
- Overrides:
getDescriptionin classBrushable- Returns:
- the
PropertyDescriptionof this Property
-
refreshAdjacency
-
getOrientation
-
setOrientation
-
setRotation
public void setRotation(int rotation) -
getDisplayName
- Overrides:
getDisplayNamein classBrushable- Returns:
- name of this property, used as a display string in menus
-
getType
- Overrides:
getTypein classBrushable- Returns:
PropertyTypeof this property. This allows us to get the property of an item from it's property map- See Also:
-
write
public void write(com.badlogic.gdx.utils.Json json) - Specified by:
writein interfacecom.badlogic.gdx.utils.Json.Serializable- Overrides:
writein classPhantomProperty
-
updateTexture
public void updateTexture()Description copied from class:ItemPropertyUpdates the owner's texture based on the property. Properties which do not change the texture should not override this function. Typically used when reloading textures on already placed items.- Overrides:
updateTexturein classItemProperty<PhantomProperty.PhantomPropertyValue>
-
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 classPhantomProperty
-