Ejemplo n.º 1
0
        public void moveTo(int newCol, int newRow)
        {
            ArrayList list = Algorithms.havePath(gameShape.matrix, colSelected, rowSelected, newCol, newRow);

            if (list != null)
            {
                jumpThread.Stop();
                moveThread = new MoveThread(this, list);
                isSelected = false;
            }
            else
            if (mainForm.isSound)
            {
                LinesMediaPlayer.cantmoveSound.Play();
            }
        }