示例#1
0
        //Старт Игры
        public void StartGame()
        {
            ListParty = new List <ListUnit>();
            ListParty.Add(new ListUnit(Color.Red, new Point(25, 20), 10));
            ListParty.Add(new ListUnit(Color.Blue, new Point(75, 80), 10));

            //Sound.SW();
            //Sound();

            listShot = new ListShot();
            actoin   = new Action();
            shooting = new Shooting();
        }
示例#2
0
        //Обход всех юнитов
        public void ActUnit(List <ListUnit> ListParty, ListShot listShot)
        {
            this.ListParty = ListParty;
            this.listShot  = listShot;

            foreach (ListUnit party in ListParty)
            {
                foreach (dynamic unit in party.listUnits)
                {
                    if (unit.act != Act.DEAD)
                    {
                        Logic(unit);
                    }
                }
            }
        }