Class TraitFactory.Trait

java.lang.Object
zombie.characters.traits.TraitFactory.Trait
All Implemented Interfaces:
IListBoxItem
Enclosing class:
TraitFactory

public static class TraitFactory.Trait extends Object implements IListBoxItem
  • Field Details

  • Constructor Details

    • Trait

      public Trait(String tr, String _name, int _cost, String desc, boolean _prof, boolean _removeInMP)
  • Method Details

    • addXPBoost

      public void addXPBoost(PerkFactory.Perk perk, int level)
    • addFreeTrait

      public void addFreeTrait(String string)
    • getFreeTraits

      public ArrayList<String> getFreeTraits()
    • getFreeRecipes

      public List<String> getFreeRecipes()
    • setFreeRecipes

      public void setFreeRecipes(List<String> _freeRecipes)
    • getType

      public String getType()
    • getTexture

      public Texture getTexture()
    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface IListBoxItem
    • getLeftLabel

      public String getLeftLabel()
      Specified by:
      getLeftLabel in interface IListBoxItem
    • getRightLabel

      public String getRightLabel()
      Specified by:
      getRightLabel in interface IListBoxItem
    • getCost

      public int getCost()
    • isFree

      public boolean isFree()
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String desc)
    • getMutuallyExclusiveTraits

      public ArrayList<String> getMutuallyExclusiveTraits()
    • getXPBoostMap

      public HashMap<PerkFactory.Perk,Integer> getXPBoostMap()
    • isRemoveInMP

      public boolean isRemoveInMP()
    • setRemoveInMP

      public void setRemoveInMP(boolean _removeInMP)