예제 #1
0
 public IBuff CreateBlurBuff(EnumBlurType blurType, EnumBlurBuffCode blurCode, int last)
 {
     if (last > 0)
     {
         last += _match.Status.Round;
     }
     return(new FootballBlurBuff(RootSkill, blurType, blurCode)
     {
         Rate = SkillDefines.MAXStorePercent,
         TimeEnd = (short)last,
     });
 }
예제 #2
0
        void combBuffId_SelectedIndexChanged(object sender, EventArgs e)
        {
            EnumBlurBuffCode blurCode = EnumBlurBuffCode.None;
            EnumBlurType     blurType = EnumBlurType.LockMotion;
            var item = this.combBuffId.SelectedItem as BindItemData;

            if (null != item)
            {
                Enum.TryParse(item.Code, out blurCode);
            }
            switch (blurCode)
            {
            case EnumBlurBuffCode.None:
            case EnumBlurBuffCode.Stand:
            case EnumBlurBuffCode.Falldown:
            case EnumBlurBuffCode.Puzzle:
            case EnumBlurBuffCode.Stun:
            case EnumBlurBuffCode.Inertia:
                blurType = EnumBlurType.LockMotion;
                break;

            case EnumBlurBuffCode.Rebel:
            case EnumBlurBuffCode.OutHand:
                blurType = EnumBlurType.SpecMotion;
                break;

            case EnumBlurBuffCode.Injure:
            case EnumBlurBuffCode.Disable:
                blurType = EnumBlurType.BanMan;
                break;

            case EnumBlurBuffCode.Silence:
                blurType = EnumBlurType.LockSkill;
                break;

            default:
                break;
            }
            this.txtBlurType.Text = blurType.ToString();
        }
예제 #3
0
 public BlurEventArgs(ISkill srcSkill, ISkillPlayer ownPlayer, ISkillPlayer oppPlayer, EnumBlurType blurType, EnumBlurBuffCode blurCode)
 {
     this.SrcSkill  = srcSkill;
     this.OwnPlayer = ownPlayer;
     this.OppPlayer = oppPlayer;
     this.BlurType  = blurType;
     this.BlurCode  = blurCode;
 }
예제 #4
0
 public FootballBlurEffect(EnumBlurType blurType, EnumBlurBuffCode blurCode, EnumBuffExec execType,
                           bool mainFlag, bool pureFlag)
     : base(blurType, (int)blurCode, execType, mainFlag, pureFlag)
 {
 }
예제 #5
0
 public FootballBlurBuff(ISkill skill, EnumBlurType buffCode, EnumBlurBuffCode blurCode)
     : base(skill, EnumBuffType.BlurState, new int[] { (int)buffCode })
 {
     this.BlurCode = blurCode;
 }
예제 #6
0
 public FootballDisableBuff(ISkill skill, EnumBlurBuffCode blurCode)
     : base(skill, EnumBlurType.BanMan, blurCode)
 {
 }