Package com.ngt.jopenmetaverse.shared.protocol

Examples of com.ngt.jopenmetaverse.shared.protocol.FindAgentPacket


        /// </summary>
        /// <param name="friendID">Friends UUID to find</param>
        /// <remarks><seealso cref="E:OnFriendFound"/></remarks>
        public void MapFriend(UUID friendID)
        {
            FindAgentPacket stalk = new FindAgentPacket();
            stalk.AgentBlock.Hunter = Client.self.getAgentID();
            stalk.AgentBlock.Prey = friendID;
            stalk.AgentBlock.SpaceIP = 0; // Will be filled in by the simulator
            stalk.LocationBlock = new FindAgentPacket.LocationBlockBlock[1];
            stalk.LocationBlock[0] = new FindAgentPacket.LocationBlockBlock();
View Full Code Here


        public void OnFindAgentReplyHandler(Object sender, PacketReceivedEventArgs e)
        {
            if (onFriendFoundReply != null)
            {
                Packet packet = e.getPacket();
                FindAgentPacket reply = (FindAgentPacket)packet;

                float[] xy = new float[2];
                UUID prey = reply.AgentBlock.Prey;
                BigInteger regionHandle = Helpers.GlobalPosToRegionHandle((float)reply.LocationBlock[0].GlobalX,
                    (float)reply.LocationBlock[0].GlobalY, xy);
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.protocol.FindAgentPacket

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.