Class Usage

java.lang.Object
de.rpgframework.genericrpg.items.Usage

public class Usage extends Object
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getMode

      public CarryMode getMode()
      Returns:
      the mode
    • getSlot

      public <H extends Hook> H getSlot()
      Returns:
      the slot
    • getFormula

      public Formula getFormula()
    • setFormula

      public void setFormula(Formula value)
    • getRawValue

      public String getRawValue()
      Returns the declaration like it appears in the XML definition. Use this method, if the value contains variables/formulas
    • setRawValue

      public void setRawValue(String val)
    • getSize

      public float getSize()
      Shortcut for getFormula().getAsFloat()
    • getType

      public String getType()
      Returns an uninterpreted type attribute
      Returns:
      the type
    • setSlot

      public <H extends Hook> void setSlot(H slot)