Exemple #1
0
        /// <summary>
        /// Приспособленец
        /// </summary>
        public static void GoFlyweightPlatoonSpecialty()
        {
            PlatoonFactory platoonFactory = new PlatoonFactory();
            Platoon        platoon        = platoonFactory.GetPlatoon("Танкисты");

            if (platoon != null)
            {
                platoon.SetTitleAndConnect("2Т-15");
                platoon.SetTitleAndConnect("4Т-16");
                platoon.SetTitleAndConnect("1Т-18");
            }

            platoon = platoonFactory.GetPlatoon("Артиллеристы");
            if (platoon != null)
            {
                platoon.SetTitleAndConnect("3М-08");
            }

            platoon = platoonFactory.GetPlatoon("Связисты");
            if (platoon != null)
            {
                platoon.SetTitleAndConnect("2С-12");
            }

            platoon = platoonFactory.GetPlatoon("Медицинский");
            if (platoon != null)
            {
                platoon.SetTitleAndConnect("5М-17");
                platoon.SetTitleAndConnect("5М-18");
            }

            Console.ReadKey();
        }
Exemple #2
0
        /// <summary>
        /// Добавить доп. взводы
        /// </summary>
        public void AddSubPlatoon()
        {
            PlatoonFactory platoonFactory = new PlatoonFactory();
            Platoon        platoon        = platoonFactory.GetPlatoonClear("Артиллеристы");

            platoon.SetTitleAndConnect("5F-13");
            sq.Add(platoon);
            platoon = platoonFactory.GetPlatoon("Медицинский");
            platoon.SetTitleAndConnect("5М-17");
            sq.Add(platoon);
            platoon = platoonFactory.GetPlatoon("Связисты");
            platoon.SetTitleAndConnect("3C-17");
            sq.Add(platoon);
        }
Exemple #3
0
        /// <summary>
        /// Добавить доп. взводы
        /// </summary>
        public List <string> AddSubPlatoon()
        {
            List <string>  vs             = new List <string>();
            PlatoonFactory platoonFactory = new PlatoonFactory();
            Platoon        platoon        = platoonFactory.GetPlatoonClear("Артиллеристы");

            vs.Add(platoon.SetTitleAndConnect("5F-13"));
            sq.Add(platoon);
            platoon = platoonFactory.GetPlatoon("Медицинский");
            vs.Add(platoon.SetTitleAndConnect("5М-17"));
            sq.Add(platoon);
            platoon = platoonFactory.GetPlatoon("Связисты");
            vs.Add(platoon.SetTitleAndConnect("3C-17"));
            sq.Add(platoon);
            return(vs);
        }