Beispiel #1
0
 public void addItem(string username, RPGItem item)
 {
     if (this.inventory.Count == 6)
     {
         return;
     }
     this.inventory.Add(item);
 }
Beispiel #2
0
 public void removeItem(string username, RPGItem item)
 {
     foreach (RPGItem checkItem in inventory)
     {
         if (checkItem == item)
         {
             inventory.Remove(item);
         }
     }
 }
Beispiel #3
0
 public string getNameOfItem(RPGItem item)
 {
     return(item.getName());
 }