Exemplo 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();
        }
Exemplo n.º 2
0
 public Actor()
 {
     Inventory = new Inventory();
 }
Exemplo n.º 3
0
 public Tile(int x, int y)
 {
     X = x;
     Y = y;
     Inventory = new Inventory();
 }