Пример #1
0
 private void cycleProcessShowActionResult(asd.Vector2DF pos)
 {
     _attackResult.SetIcon(selectedAttack);
     _attackResult.Show();
     _deffenceResult.SetIcon(selectedDeffece);
     _deffenceResult.Show();
 }
Пример #2
0
        private void cycleProcessSelectAttackAction(asd.Vector2DF pos)
        {
            if (_player == Player.Attack)
            {
                _image_gu_attack.Show();
                _image_choki_attack.Show();
                _image_par_attack.Show();
                _image_gu_attack.OnMouse(pos);
                _image_choki_attack.OnMouse(pos);
                _image_par_attack.OnMouse(pos);
            }
            else
            {
                var r = Singleton.Random;
                switch (r.Next(0, 3))
                {
                case 0:
                    selectedAttack = BattleIcon.Icon.Gu;
                    break;

                case 1:
                    selectedAttack = BattleIcon.Icon.Choki;
                    break;

                case 2:
                    selectedAttack = BattleIcon.Icon.Par;
                    break;
                }
                _status = GameStatus.ShowActionResult;
            }
        }