/// <summary>
        /// The functions converts the xml data 
        /// </summary>
        /// <param name="objects"></param>
        public void getMapObjects(ObjectSpace objects)
        {
            IEnumerator<xmlObject> iter = objects.getIter();
            String temp;

            while (iter.MoveNext())
            {
                MapObject obj = new MapObject();

                temp = iter.Current.findValueOfProperty("x");
                if (temp != null)
                {
                    obj.X = (float) Convert.ToDouble(temp);
                }

                temp = iter.Current.findValueOfProperty("y");

                if (temp != null)
                {
                    obj.Y = (float)Convert.ToDouble(temp);
                }

                temp = iter.Current.findValueOfProperty("visible");

                if (temp != null)
                {
                    obj.Visible=Convert.ToBoolean(temp);
                }

                temp = iter.Current.findValueOfProperty("collision");

                if (temp != null)
                {
                    obj.Collision = Convert.ToBoolean(temp);
                }

                temp = iter.Current.findValueOfProperty("image");

                if (temp != null)
                {
                    obj.ImageAlias = temp;
                }

                temp = iter.Current.findValueOfProperty("alias");

                if (temp != null)
                {
                    obj.Alias = temp;
                }

                information.Add(obj);
            }
        }
 public void addMapObject(MapObject mapo)
 {
     information.Add(mapo);
 }