Modifier and Type | Field and Description |
---|---|
Armor |
armor |
Bag |
backpack |
static int |
BACKPACK_SIZE |
Artifact |
ring1 |
Artifact |
ring2 |
KindOfWeapon |
weapon |
Constructor and Description |
---|
Belongings(Hero owner) |
Modifier and Type | Method and Description |
---|---|
int |
charge(boolean full) |
void |
countIronKeys() |
int |
discharge() |
static int |
getBackpackSize() |
<T extends Item> |
getItem(java.lang.Class<T> itemClass) |
<T extends Key> |
getKey(java.lang.Class<T> kind,
int depth,
java.lang.String levelId) |
void |
identify() |
java.util.Iterator<Item> |
iterator() |
void |
observe() |
Item |
randomUnequipped() |
boolean |
removeItem(Item itemToRemove) |
void |
restoreFromBundle(Bundle bundle) |
void |
resurrect(int depth) |
void |
storeInBundle(Bundle bundle) |
void |
uncurseEquipped() |
public static final int BACKPACK_SIZE
public Bag backpack
public KindOfWeapon weapon
public Armor armor
public Artifact ring1
public Artifact ring2
public Belongings(Hero owner)
public void storeInBundle(Bundle bundle)
public void restoreFromBundle(Bundle bundle)
public <T extends Item> T getItem(java.lang.Class<T> itemClass)
@Nullable public <T extends Key> T getKey(java.lang.Class<T> kind, int depth, @NonNull java.lang.String levelId)
public void countIronKeys()
public void identify()
public void observe()
public void uncurseEquipped()
public Item randomUnequipped()
public boolean removeItem(Item itemToRemove)
public void resurrect(int depth)
public int charge(boolean full)
public int discharge()
public java.util.Iterator<Item> iterator()
iterator
in interface java.lang.Iterable<Item>
public static int getBackpackSize()