Class Stylable.Style

java.lang.Object
group24.escaperoom.entities.properties.Stylable.Style
All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable, ItemPropertyValue
Enclosing class:
Stylable

public class Stylable.Style extends Object implements ItemPropertyValue, com.badlogic.gdx.utils.Json.Serializable
  • Constructor Details

    • Style

      public Style()
      Empty constructor for Json.Serializable compatability
    • Style

      public Style(String name, String texture)
  • Method Details

    • getStyleName

      public String getStyleName()
    • apply

      public void apply(Item to)
    • write

      public void write(com.badlogic.gdx.utils.Json json)
      Specified by:
      write in interface com.badlogic.gdx.utils.Json.Serializable
    • read

      public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData)
      Specified by:
      read in interface com.badlogic.gdx.utils.Json.Serializable
    • getTexture

      public com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion getTexture()
    • getDisplay

      public Menu.MenuEntry getDisplay(Menu parent)
      Specified by:
      getDisplay in interface ItemPropertyValue
      Parameters:
      parent - the menu spawning this entry
      Returns:
      the Menu.MenuEntry describing this ItemPropertyValue