public class Bag extends Item implements java.lang.Iterable<Item>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AC_OPEN |
java.util.ArrayList<Item> |
items |
Char |
owner |
int |
size |
cursed, cursedKnown, defaultAction, levelKnown, stackable
Constructor and Description |
---|
Bag() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<java.lang.String> |
actions(Hero hero) |
void |
clear() |
boolean |
collect(Bag container) |
boolean |
contains(Item item) |
java.lang.String |
desc() |
void |
execute(Hero hero,
java.lang.String action) |
boolean |
grab(Item item) |
boolean |
isIdentified() |
boolean |
isUpgradable() |
java.util.Iterator<Item> |
iterator() |
void |
onDetach() |
void |
restoreFromBundle(Bundle bundle) |
void |
storeInBundle(Bundle bundle) |
affectLevelObjects, burn, cast, collect, degrade, degrade, detach, detachAll, doDrop, dontPack, doPickUp, doThrow, emitter, emitterInterval, evoke, execute, freeze, fromJson, glowing, identify, image, imageFile, info, isEquipped, isFliesFastRotating, isFliesStraight, level, level, name, pick, poison, price, quantity, quantity, random, removeItemFrom, status, toString, trueName, updateQuickslot, upgrade, upgrade, virtual, visiblyUpgraded
public static final java.lang.String AC_OPEN
public Char owner
public java.util.ArrayList<Item> items
public int size
public java.util.ArrayList<java.lang.String> actions(Hero hero)
public void onDetach()
public boolean isUpgradable()
isUpgradable
in class Item
public boolean isIdentified()
isIdentified
in class Item
public void clear()
public void storeInBundle(Bundle bundle)
storeInBundle
in interface Bundlable
storeInBundle
in class Item
public void restoreFromBundle(Bundle bundle)
restoreFromBundle
in interface Bundlable
restoreFromBundle
in class Item
public boolean contains(Item item)
public boolean grab(Item item)