예제 #1
0
 public long GetNumOfSpecificItem(TheBrain.ItemTypes type)
 {
     return(itemCart[type]);
 }
예제 #2
0
 public ItemContainer(TheBrain.ItemTypes type, int num)
 {
     itemType   = type;
     numOfItems = num;
 }
예제 #3
0
 /// <summary>
 /// Adds a single instance of the item type given to the shopping cart
 /// </summary>
 /// <param name="type"></param>
 public void addItemToCart(TheBrain.ItemTypes type)
 {
     itemCart[type]++;
     size++;
 }