us.asciiroth.client.core
Class Bag.Entry<T extends Piece>

java.lang.Object
  extended by us.asciiroth.client.core.Bag.Entry<T>
Type Parameters:
T -
Enclosing class:
Bag<T extends Piece>

public static class Bag.Entry<T extends Piece>
extends java.lang.Object

An entry in the bag. An entry keeps track of the number of items in the bag when there is more than one.


Method Summary
 void changeAmmo(int delta)
           
 int getAmmo()
           
 int getCount()
          Get the number of items in the bag.
 T getPiece()
          Get the item.
 void setPiece(T piece)
          Set the item.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

changeAmmo

public void changeAmmo(int delta)

getAmmo

public int getAmmo()

getCount

public int getCount()
Get the number of items in the bag.

Returns:
the number of items in the bag

getPiece

public T getPiece()
Get the item.

Returns:
the item.

setPiece

public void setPiece(T piece)
Set the item.

Parameters:
piece -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

0.7

2009 Alx Dark