Exemplo n.º 1
0
    public static void ShowOppoentViewInfo(GC_HUASHAN_PVP_OPPONENTVIEW msg)
    {
        if (null != ActivityController.Instance())
        {
            ActivityController.Instance().ChangeToHSPvPShowOppoentView();
        }


        OppoViewInfo.Clean();
        OppoViewInfo.guid       = msg.Guid;
        OppoViewInfo.name       = msg.Name;
        OppoViewInfo.profession = (CharacterDefine.PROFESSION)msg.Profession;
        OppoViewInfo.level      = msg.Level;
        OppoViewInfo.combat     = msg.Combatnum;
        OppoViewInfo.pos        = msg.Pos;
        OppoViewInfo.hp         = msg.Hp;
        OppoViewInfo.mp         = msg.Mp;
        OppoViewInfo.atk        = msg.Attack;
        OppoViewInfo.def        = msg.Defense;
        OppoViewInfo.cri        = msg.Critical;
        OppoViewInfo.spd        = msg.Speed;
        OppoViewInfo.dge        = msg.Dodge;

        if (null != delegateShowOpponentViewInfo)
        {
            delegateShowOpponentViewInfo();
        }
    }
        public uint Execute(PacketDistributed ipacket)
        {
            GC_HUASHAN_PVP_OPPONENTVIEW packet = (GC_HUASHAN_PVP_OPPONENTVIEW )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            HuaShanPVPData.ShowOppoentViewInfo(packet);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }