public Creatures() { ResetMonsters(); Player = new Player(0, GameSetting.Height - Resource1.player.Height); CatridgesMonsters = new List <Catridge>(); var temp = new Bunker(0, 0); Bunkers = temp.MakeBunkers(); }
/// <summary> /// Функция, которая создает на игровом поле 2 бункера /// </summary> /// <returns>Лист, состоящий из двух бункеров</returns> public List <Bunker> MakeBunkers() { var temp = new List <Bunker>(); var bunker1 = new Bunker(GameSetting.Width / 2 - 2 * Width, GameSetting.Height - Height - GameSetting.MoveMonsterY); var bunker2 = new Bunker(GameSetting.Width / 2 + Width, GameSetting.Height - Height - GameSetting.MoveMonsterY); temp.Add(bunker1); temp.Add(bunker2); return(temp); }