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(); }
public Actor() { Inventory = new Inventory(); }
public Tile(int x, int y) { X = x; Y = y; Inventory = new Inventory(); }