Esempio n. 1
0
        public bool Move(Item item, int amount, Inventory target)
        {
            Inventory source = item.Location;

            if (source.Items[item] < amount) return false;
            source.Items[item] -= amount;
            if (source.Items[item] == 0) source.Items.Remove(item);

            target.Items.Add(item, amount);
            item.Location = target;

            throw new NotImplementedException();
        }
Esempio n. 2
0
 public Actor()
 {
     Inventory = new Inventory();
 }
Esempio n. 3
0
 public Tile(int x, int y)
 {
     X = x;
     Y = y;
     Inventory = new Inventory();
 }