Ejemplo n.º 1
0
        public void goTo(int x, int y, Traktor_agent traktor)
        {
            //dispatcherTimer.Stop();
            directionX = x;
            directionY = y;

            LogJazdy.Content = "Jadę do: x " + x.ToString() + " y " + y.ToString();
            trasa            = traktor.AGwiazdka(x, y);
            int i = 0;

            stepCounterHelper = i;
            while (trasa[i] == traktorek.pozycja && i < trasa.Count - 1)
            {
                i++;
                stepCounterHelper = i;
            }
            dispatcherTimerMoving.Start();
        }