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)
    • 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)