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 tr, java.lang.String name, int cost, java.lang.String desc, boolean prof, boolean removeInMP)
-
Method Summary
Modifier and Type Method Description void
addXPBoost(PerkFactory.Perks perk, int level)
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 desc)
void
setFreeRecipes(java.util.List freeRecipes)
void
setRemoveInMP(boolean removeInMP)
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 tr, java.lang.String name, int cost, java.lang.String desc, boolean prof, boolean removeInMP)
-
-
Method Details
-
addXPBoost
-
getFreeRecipes
public java.util.List getFreeRecipes() -
setFreeRecipes
public void setFreeRecipes(java.util.List freeRecipes) -
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 desc) -
getMutuallyExclusiveTraits
public java.util.ArrayList getMutuallyExclusiveTraits() -
getXPBoostMap
public java.util.HashMap getXPBoostMap() -
isRemoveInMP
public boolean isRemoveInMP() -
setRemoveInMP
public void setRemoveInMP(boolean removeInMP)
-