public AttackItemBase createItem(EAttackType type) { AttackItemBase ret = null; if (EAttackType.eCommon == type) { ret = new ComAttackItem(type); } else if(EAttackType.eSkill== type) { ret = new SkillAttackItem(type); } m_attackList.Add(ret); return ret; }
public AttackItemBase createItem(EAttackType type) { AttackItemBase ret = null; if (EAttackType.eCommon == type) { ret = new ComAttackItem(type); } else if (EAttackType.eSkill == type) { ret = new SkillAttackItem(type); } m_attackList.Add(ret); return(ret); }
// 执行普通攻击 public void execAttack(ComAttackItem item) { Ctx.m_instance.m_logSys.fightLog("[Fight] 开始执行普通攻击 execAttack"); // 播放攻击动作 // 播放伤害数字 if (item.damage > 0) { m_card.effectControl.addLinkEffect(HurtItemBase.DAMAGE_EFFECTID); // 掉血特效必然播放 //m_card.playFlyNum((int)item.damage); } m_card.sceneCardBaseData.m_effectControl.updateAttHurtStateEffect(item); // 更新自己的属性显示 m_card.updateCardDataChangeBySvr(item.svrCard); }