Package zombie.characters.traits
Class TraitFactory.Trait
java.lang.Object
zombie.characters.traits.TraitFactory.Trait
- All Implemented Interfaces:
IListBoxItem
- Enclosing class:
- TraitFactory
public static class TraitFactory.Trait extends java.lang.Object implements IListBoxItem
-
Field Summary
Fields Modifier and Type Field Description int
cost
java.lang.String
description
java.util.ArrayList
MutuallyExclusive
java.lang.String
name
boolean
prof
Texture
texture
java.lang.String
traitID
java.util.HashMap
XPBoostMap
-
Constructor Summary
Constructors Constructor Description Trait(java.lang.String string, java.lang.String string2, int int1, java.lang.String string3, boolean boolean1, boolean boolean2)
-
Method Summary
Modifier and Type Method Description void
addXPBoost(PerkFactory.Perks perks, int int1)
int
getCost()
java.lang.String
getDescription()
java.util.List
getFreeRecipes()
java.lang.String
getLabel()
java.lang.String
getLeftLabel()
java.util.ArrayList
getMutuallyExclusiveTraits()
java.lang.String
getRightLabel()
Texture
getTexture()
java.lang.String
getType()
java.util.HashMap
getXPBoostMap()
boolean
isFree()
boolean
isRemoveInMP()
void
setDescription(java.lang.String string)
void
setFreeRecipes(java.util.List list)
void
setRemoveInMP(boolean boolean1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
traitID
public java.lang.String traitID -
name
public java.lang.String name -
cost
public int cost -
description
public java.lang.String description -
prof
public boolean prof -
texture
-
MutuallyExclusive
public java.util.ArrayList MutuallyExclusive -
XPBoostMap
public java.util.HashMap XPBoostMap
-
-
Constructor Details
-
Trait
public Trait(java.lang.String string, java.lang.String string2, int int1, java.lang.String string3, boolean boolean1, boolean boolean2)
-
-
Method Details
-
addXPBoost
-
getFreeRecipes
public java.util.List getFreeRecipes() -
setFreeRecipes
public void setFreeRecipes(java.util.List list) -
getType
public java.lang.String getType() -
getTexture
-
getLabel
public java.lang.String getLabel()- Specified by:
getLabel
in interfaceIListBoxItem
-
getLeftLabel
public java.lang.String getLeftLabel()- Specified by:
getLeftLabel
in interfaceIListBoxItem
-
getRightLabel
public java.lang.String getRightLabel()- Specified by:
getRightLabel
in interfaceIListBoxItem
-
getCost
public int getCost() -
isFree
public boolean isFree() -
getDescription
public java.lang.String getDescription() -
setDescription
public void setDescription(java.lang.String string) -
getMutuallyExclusiveTraits
public java.util.ArrayList getMutuallyExclusiveTraits() -
getXPBoostMap
public java.util.HashMap getXPBoostMap() -
isRemoveInMP
public boolean isRemoveInMP() -
setRemoveInMP
public void setRemoveInMP(boolean boolean1)
-