Exemple #1
0
        public void PickUpItem(Player player)
        {
            var item = ItemsNearPlayer.First();

            if (!player.Inventory.Add(item))
            {
                return;
            }
            ItemsOnMap.Remove(item);
            UpdateMap(player);
            RedrawMap();
        }
Exemple #2
0
 public void AddItemsOnMap()
 {
     ItemsOnMap.Add(new OnMapItem("testItem", 200, 100, 10, false, true));
     ItemsOnMap.Add(new OnMapItem("testItem", 400, 100, 10, false, true));
     ItemsOnMap.Add(new OnMapItem("testItem", 600, 100, 10, false, true));
 }