Class Turtle


public class Turtle extends SimpleTurtle
Class that represents a turtle which is similar to a Logo turtle. This class inherts from SimpleTurtle and is for students to add methods to. Copyright Georgia Institute of Technology 2004
  • Constructor Details

    • Turtle

      public Turtle(int x, int y, Picture picture)
      Constructor that takes the x and y and a picture to draw on
      Parameters:
      x - the starting x position
      y - the starting y position
      picture - the picture to draw on
    • Turtle

      public Turtle(int x, int y, ModelDisplay modelDisplayer)
      Constructor that takes the x and y and a model display to draw it on
      Parameters:
      x - the starting x position
      y - the starting y position
      modelDisplayer - the thing that displays the model
    • Turtle

      public Turtle(ModelDisplay modelDisplay)
      Constructor that takes the model display
      Parameters:
      modelDisplay - the thing that displays the model
    • Turtle

      public Turtle(Picture p)
      Constructor that takes a picture to draw on
      Parameters:
      p - the picture to draw on
  • Method Details

    • main

      public static void main(String[] args)
      //////////////// methods ///////////////////////