|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object us.asciiroth.client.core.Bag<Item> us.asciiroth.client.board.ItemBag
public class ItemBag
A bag representing the items in a cell. Following the simple C --> M --> V design of the application, this decorates a bag and adds updates to the map/view.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class us.asciiroth.client.core.Bag |
---|
Bag.Entry<T extends Piece> |
Constructor Summary | |
---|---|
ItemBag(Cell cell)
Constructor. |
Method Summary | |
---|---|
void |
add(int index,
Item item)
Add an item to the bag at the indicated index. |
void |
add(Item item)
Add one count of an item to the bag. |
boolean |
containsMeat()
Does this bag contain a bone, fish, or similar meat-type item? Carnivores (dumb ones) will chase after these rather than the player. |
void |
remove(Item item)
Remove one count of an item from the bag. |
Methods inherited from class us.asciiroth.client.core.Bag |
---|
asEntryList, contains, findEntry, get, getCount, getIndex, isEmpty, last, size |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ItemBag(Cell cell)
cell
- Method Detail |
---|
public void add(int index, Item item)
Bag
add
in class Bag<Item>
public void add(Item item)
Bag
add
in class Bag<Item>
public boolean containsMeat()
public void remove(Item item)
Bag
remove
in class Bag<Item>
|
0.7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
© 2009 Alx Dark