//kirajzolja a teknőst private void Draw(Command com) { switch (com.comm) { case Commands.elore: turtle.Forward((int)com.value); break; case Commands.hatra: turtle.Backward((int)com.value); break; case Commands.jobbra: turtle.Right((int)com.value); break; case Commands.balra: turtle.Left((int)com.value); break; case Commands.haza: turtle.Home(); break; case Commands.torol: turtle.Clean(); break; case Commands.tollatle: turtle.PenDown(); break; case Commands.tollatfel: turtle.PenUp(); break; } }