public FactoryAnthill(Field[,] map, int widthWorld, int heightWorld, AntQueen queen) { _queen = queen; FactoryAntQueen factoryQueen = new FactoryAntQueen(); FactoryAntPicker factoryAntPicker = new FactoryAntPicker(); FactoryFood factoryFood = new FactoryFood(); FactoryAntFighter factoryAntFighter = new FactoryAntFighter(); _heightWorld = heightWorld; _widthWorld = widthWorld; _map = map; _stackObjet = new Stack(); _stackAnt = new Stack(); _stackAnt.Push(queen ?? factoryQueen.CreateCharacter()); for (var i = 0; i < 5; i++) { _stackAnt.Push(factoryAntFighter.CreateCharacter()); } for (var i = 0; i < 20; i++) { _stackAnt.Push(factoryAntPicker.CreateCharacter()); } for (var i = 0; i < 450; i++) { _stackObjet.Push(factoryFood.CreateObject()); } }
public FactoryEgg() { _factoryAntFighter = new FactoryAntFighter(); _factoryAntPicker = new FactoryAntPicker(); _factoryAntQueen = new FactoryAntQueen(); }