예제 #1
0
        static void Main()
        {
            string       logFilename = "Log-" + DateTime.Now.Ticks + ".txt";
            StreamWriter sw          = new StreamWriter(logFilename);

            Console.SetOut(sw);
            sw.AutoFlush = true;


            ParameterManager mgr = new ParameterManager();

            mgr.Load();

            HexagonalMap map = new HexagonalMap(mgr.hexagonalWidthNum, mgr.hexagonalHeightNum, mgr.hexagonalSize, Hexagonal.HexOrientation.Pointy);

            map.GetState().BackgroundColor      = Color.White;
            map.GetState().GridPenWidth         = 2;
            map.GetState().ActiveHexBorderColor = Color.Red;
            map.GetState().ActiveHexBorderWidth = 2;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            MapForm form = new MapForm(map, mgr);

            //form.Width = mgr.winFormWidth;
            //form.Height = mgr.winFormHeight;

            Application.Run(form);

            //Generate human path here



            sw.Flush();
            sw.Close();
        }
예제 #2
0
 public ParameterTester(MapForm form)
 {
     _mapForm        = form;
     performanceList = new List <PerformanceParameter>();
 }
예제 #3
0
 public TeleportTester(MapForm form)
 {
     _mapForm        = form;
     performanceList = new List <TeleportParameter>();
 }