private void MapSizeLoad(float xmax, float ymax)
 {
     MapSize = new Spot(xmax, ymax);
     MapTxtInput.Text = MapSize.ToString();
 }
        /// <summary>
        /// Start버튼 눌렀으때
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void StartBtn_Click(object sender, EventArgs e)
        {
            GraphicManager.GetManager().ListInit();
            string Start = StartTxtInput.Text;
            Spot StartSpot;
            if (Start == null || Start == "")
                StartSpot = new Spot(0, 0);
            else StartSpot = new Spot(Start);
            GraphicManager.GetManager().RobotPostInit(new Microsoft.DirectX.Vector3(StartSpot.x, 0, StartSpot.y));
            LogicWraper.init((int)StartSpot.y, (int)StartSpot.x, (int)MapSize.x, (int)MapSize.y);

            foreach (Spot s in HazardList)
            {
                GraphicManager.GetManager().CreateHazard(s.x, s.y);
                LogicWraper.AddHazardPoint((int)s.y, (int)s.x);
            }

            foreach (Spot s in SpotList)
            {
                LogicWraper.addExplorationPoint((int)s.y, (int)s.x);
            }
            LogicWraper.start();
        }
Example #3
0
 private void MapSizeLoad(float xmax, float ymax)
 {
     MapSize          = new Spot(xmax, ymax);
     MapTxtInput.Text = MapSize.ToString();
 }