Beispiel #1
0
        /// <summary>
        /// Generates a hill from a file
        /// </summary>
        /// <param name="fileName"> Name of the XML file </param>
        /// <param name="hill"> An empty hill </param>
        private static void generateHill(string fileName, Hill hill)
        {
            XmlNodeList nodes = HillManager.fileNodes(fileName);

            foreach (XmlNode node in nodes)
            {
                if (HillManager.hasAttributes(node))
                {
                    HillManager.createRabbit(hill, node);
                }
            }
        }