Beispiel #1
0
        static void Main(string[] args)
        {
            /* Player Auto explor

            string str = "satish";
            Convert.ToInt32(str[1]);
            Terrain terrain = new Terrain();
            terrain.PrepareTerrainFromXml(@"ConfigurationFiles\TerrainGraph.xml");
            var player = new Player() { Name = "Akrem" };
            terrain.Subscribe(TripRecorder.Instance);

            var terrainExplore = new TerrainAutoExploration(player, terrain);
            //Call the automated Exploration method
            terrainExplore.Explore();
            */

            // this is a test
            Terrain terrain = new Terrain();
            terrain.PrepareInteractiveTerrainFromXml(@"ConfigurationFiles\InteractiveTerrainGraph.xml");

            Player player = new Player();
            player.PreparePlayerFromXml(@"ConfigurationFiles\PlayerConfiguration.xml");

            terrain.InteractiveExplore(player);
        }