public ImmeAttackItemBase createItem(EImmeAttackType type) { ImmeAttackItemBase ret = null; if (EImmeAttackType.eCommon == type) { ret = new ImmeComAttackItem(type); } else if (EImmeAttackType.eSkill == type) { ret = new ImmeSkillAttackItem(type); } m_attackList.Add(ret); return ret; }
public ImmeAttackItemBase createItem(EImmeAttackType type) { ImmeAttackItemBase ret = null; if (EImmeAttackType.eCommon == type) { ret = new ImmeComAttackItem(type); } else if (EImmeAttackType.eSkill == type) { ret = new ImmeSkillAttackItem(type); } m_attackList.Add(ret); return(ret); }
protected MList<uint> m_hurtIdList; // 被击者 this id 列表 public ImmeSkillAttackItem(EImmeAttackType attackType) : base(attackType) { m_hurtIdList = new MList<uint>(); }
protected float m_moveTime; // 攻击的时候移动到攻击目标的时间 public ImmeComAttackItem(EImmeAttackType attackType) : base(attackType) { m_moveTime = ImmeAttackItemBase.ComAttMoveTime; }
protected EventDispatch m_attackEndDisp; // 整个攻击结束,从发起攻击,到回到原地 public ImmeAttackItemBase(EImmeAttackType attackType) { m_attackType = attackType; m_attackEndDisp = new AddOnceAndCallOnceEventDispatch(); }
protected MList <uint> m_hurtIdList; // 被击者 this id 列表 public ImmeSkillAttackItem(EImmeAttackType attackType) : base(attackType) { m_hurtIdList = new MList <uint>(); }