Guest User

Untitled

a guest
Jan 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.92 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5.  
  6. using NUnit.Framework;
  7.  
  8. namespace SwinTrek.Model
  9. {
  10.     class Item : IdentifiableObject
  11.     {
  12.         public Item(string[] idents, string name, string desc)
  13.             : base(idents)
  14.         {
  15.  
  16.         }
  17.  
  18.         private List<string> _items = new List<string>();
  19.  
  20.         public Inventory(string[] _items)
  21.         {
  22.            public Item Fetch(string name) : Item
  23.             {
  24.                
  25.                 foreach (Item i in idents)
  26.                 {
  27.                 if(i.AreYou(name)){
  28.                     return i;
  29.                     }
  30.                 }
  31.                 return null;
  32.             }
  33.         }
  34.             //Fetch:(String name) : Item
  35.             //Put:(Item itm) : void
  36.             //Take:(String name) : Item
  37.             //ItemList : List<string> <<readonly, property>>
  38.         }
  39.  
  40.     }
  41. }
Add Comment
Please, Sign In to add comment