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, }); }
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(); }
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; }
public FootballBlurEffect(EnumBlurType blurType, EnumBlurBuffCode blurCode, EnumBuffExec execType, bool mainFlag, bool pureFlag) : base(blurType, (int)blurCode, execType, mainFlag, pureFlag) { }
public FootballBlurBuff(ISkill skill, EnumBlurType buffCode, EnumBlurBuffCode blurCode) : base(skill, EnumBuffType.BlurState, new int[] { (int)buffCode }) { this.BlurCode = blurCode; }
public FootballDisableBuff(ISkill skill, EnumBlurBuffCode blurCode) : base(skill, EnumBlurType.BanMan, blurCode) { }