예제 #1
0
 private void onClickMouseSelectAttackAction(asd.Vector2DF pos)
 {
     if (_player == Player.Attack)
     {
         if (_image_gu_attack.IsOnMouse(pos))
         {
             selectedAttack = BattleIcon.Icon.Gu;
         }
         else if (_image_choki_attack.IsOnMouse(pos))
         {
             selectedAttack = BattleIcon.Icon.Choki;
         }
         else if (_image_par_attack.IsOnMouse(pos))
         {
             selectedAttack = BattleIcon.Icon.Par;
         }
         else
         {
             return;
         }
         _image_gu_attack.Hide();
         _image_choki_attack.Hide();
         _image_par_attack.Hide();
         _status = GameStatus.ShowActionResult;
     }
 }
예제 #2
0
 private void onClickMouseSelectDeffenceAction(asd.Vector2DF pos)
 {
     if (_player == Player.Deffence)
     {
         if (_image_gu_deffence.IsOnMouse(pos))
         {
             selectedDeffece = BattleIcon.Icon.Gu;
             _image_gu_deffence.Hide();
             _image_choki_deffence.Hide();
             _image_par_deffence.Hide();
             _status = GameStatus.SelectAttackAction;
         }
         else if (_image_choki_deffence.IsOnMouse(pos))
         {
             selectedDeffece = BattleIcon.Icon.Choki;
             _image_gu_deffence.Hide();
             _image_choki_deffence.Hide();
             _image_par_deffence.Hide();
             _status = GameStatus.SelectAttackAction;
         }
         else if (_image_par_deffence.IsOnMouse(pos))
         {
             selectedDeffece = BattleIcon.Icon.Par;
             _image_gu_deffence.Hide();
             _image_choki_deffence.Hide();
             _image_par_deffence.Hide();
             _status = GameStatus.SelectAttackAction;
         }
     }
 }