Esempio n. 1
0
        protected override void FormulatedAvailableActions()
        {
            ClerrAvaileCells();


            this.CellsForWalks.AddRange(ManagerAlgorithmsMotion.GetHorisontal(this, true));
            this.CellsForWalks.AddRange(ManagerAlgorithmsMotion.GetVertical(this, true));
            this.CellsForWalks.AddRange(ManagerAlgorithmsMotion.GetDiagonaleA(this, true));
            this.CellsForWalks.AddRange(ManagerAlgorithmsMotion.GetDiagonaleB(this, true));

            // Если найлена фигура опонента, своим положением доступна для действий данной фигуры
            // Вносим ее координаті в список доступныых для атаки клеток.
            foreach (var item in this.CellsForWalks)
            {
                if (this.isCellForAttack(item))
                {
                    this.CellsForAttacks.Add(item);
                }
            }
        }
Esempio n. 2
0
 // Формирет списки доступных клеток Сastle
 protected override void FormulatedAvailableActions()
 {
     this.CellsForWalks.AddRange(ManagerAlgorithmsMotion.GetHorisontal(this, false));
     this.CellsForWalks.AddRange(ManagerAlgorithmsMotion.GetVertical(this, false));
 }