Example #1
0
        public List <AliveObject> update_explored()
        {
            List <AliveObject> newObjects;

            update_exploredMap();
            List <AliveObject> foundObjects = myDog.ObjectsAround();

            if (foundObjects != null)
            {
                newObjects = update_knownObjects(foundObjects);
                return(newObjects);
            }
            this.myContext.new_objects = null;
            return(null);
        }
Example #2
0
        void LookButton_Click(object sender, EventArgs e)
        {
            textBoxUpdate(objectsBox, "");
            LookButton.Enabled = false;

            Prims = myAvatar.ObjectsAround();

            //Console.Out.WriteLine("Got " + prims.Count + " objects back");

            // Synchronous object info update
            String message = "";

            for (int i = 0; i < Prims.Count; i++)
            {
                message += i + " " + Prims[i].toString() + "\r\n";
            }

            textBoxUpdate(objectsBox, message);

            LookButton.Enabled = true;
        }