Exemple #1
0
        public void psstNotifyBattleCardPropertyUserCmd(stNotifyBattleCardPropertyUserCmd msg)
        {
            m_bHasFightData = true;
            FightRoundItemBase attItem = null;

            if (0 == msg.type)      // 攻击
            {
                attItem = new FightRoundAttItem(m_sceneDZData);
            }
            else if (1 == msg.type)     // 召唤
            {
                attItem = new FightRoundSummonItem(m_sceneDZData);
            }
            else if (2 == msg.type)     // 抽牌
            {
                attItem = new FightRoundGetItem(m_sceneDZData);
            }

            attItem.addOneAttackAndHurtEndHandle(onOneAttackAndHurtEndHandle);
            attItem.psstNotifyBattleCardPropertyUserCmd(msg);
            m_cacheList.Add(attItem);
            //nextOneAttact();
        }
Exemple #2
0
        public void psstNotifyBattleCardPropertyUserCmd(stNotifyBattleCardPropertyUserCmd msg)
        {
            m_bHasFightData = true;
            FightRoundItemBase attItem = null;
            if (0 == msg.type)      // 攻击
            {
                attItem = new FightRoundAttItem(m_sceneDZData);
            }
            else if (1 == msg.type)     // 召唤
            {
                attItem = new FightRoundSummonItem(m_sceneDZData);
            }
            else if (2 == msg.type)     // 抽牌
            {
                attItem = new FightRoundGetItem(m_sceneDZData);
            }

            attItem.addOneAttackAndHurtEndHandle(onOneAttackAndHurtEndHandle);
            attItem.psstNotifyBattleCardPropertyUserCmd(msg);
            m_cacheList.Add(attItem);
            //nextOneAttact();
        }