/// <summary> /// Adds item to the game. Item should have its position set. /// </summary> /// <param name="item">Item to be added.</param> public void AddItem(AbstractItem item) { MapBlock pos = item.Position; if (pos != null && pos.X >= 0 && pos.X < GameMap.Width && pos.Y >= 0 && pos.Y < GameMap.Height) { GameMap.AddItem(item); } }