Ejemplo n.º 1
0
 private void comboBoxMtdSel_SelectedIndexChanged(object sender, EventArgs e)
 {
     for (int i = 0; i < methods.Length; i++)
     {
         if (comboBoxMtdSel.SelectedItem.ToString() == methods[i])
         {
             _planMethod = planMethodList[i];
         }
     }
 }
Ejemplo n.º 2
0
        public SimTestForm(ParameterManager paramMgr)
        {
            _paramMgr   = paramMgr;
            _map        = new HexagonalMap(paramMgr.simTestWidth, paramMgr.simTestHeight, paramMgr.simTestSize, Hexagonal.HexOrientation.Pointy);
            _mapDrawer  = new HexagonalMapDrawer(_map, 5, 5);
            _human      = new Human(_map);
            _robot      = new Robot(_map);
            _planMethod = PlanningForm.planMethod.UNKNOWN;

            InitializeComponent();
        }