//private Item _loot; public GameManager(string name) { _enemyFactory = new RandomEnemyFactory(); _itemFactory = new RandomItemFactory(_enemyFactory.RandomNum); _player = new Character(name, 30); _player.Equipped.Equip(InventorySlotId.WEAPON, _itemFactory.BronzeSword()); _player.Equipped.Equip(InventorySlotId.CHESTPIECE, _itemFactory.Gambeson()); _player.Bag.AddItem(_itemFactory.SmallPotion()); _enemy = _enemyFactory.GenerateRandomEnemy(_depth); _depth = 1; _gameOver = false; _gameWon = false; _inventoryScreenCount = 0; }
public RandomEnemyFactory() { _itemFactory = new RandomItemFactory(_random); //fix }