Package breadboards

Class GTurtle

    • Constructor Detail

      • GTurtle

        public GTurtle​(double x,
                       double y,
                       double stepSize,
                       double turnSize)
    • Method Detail

      • forgetCommands

        public void forgetCommands()
      • setLocation

        public void setLocation​(double x,
                                double y)
        Description copied from class: GObject
        sets the location of this GObject to (x,y)
        Overrides:
        setLocation in class GObject
        Parameters:
        x - the new x-coordinate for this GObject
        y - the new y-coordinate for this GObject
      • setX

        public void setX​(double x)
        Description copied from class: GObject
        sets the x-coordinate for this GObject to the specified x-coordinate
        Overrides:
        setX in class GObject
        Parameters:
        x - the specified x-coordinate
      • setY

        public void setY​(double y)
        Description copied from class: GObject
        sets the y-coordinate for this GObject to the specified y-coordinate
        Overrides:
        setY in class GObject
        Parameters:
        y - the specified y-coordinate
      • getHeading

        public double getHeading()
      • setDelay

        public void setDelay​(int delay)
      • setHeading

        public void setHeading​(double heading)
      • penUp

        public void penUp()
      • penDown

        public void penDown()
      • onPenDown

        public void onPenDown()
      • onPenUp

        public void onPenUp()
      • turn

        public void turn()
      • onTurn

        public void onTurn()
      • step

        public void step()
      • onStep

        public void onStep()