Class NinjaTurtle


  • public class NinjaTurtle
    extends Turtle
    https://michael0x2a.com/blog/turtle-examples#example-8-jumping-around-and-changing-speed
    • Constructor Detail

      • NinjaTurtle

        public NinjaTurtle​(Model model,
                           int n)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of radial lines
      • NinjaTurtle

        public NinjaTurtle​(Model model,
                           int n,
                           double xPos,
                           double yPos)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of radial lines
        xPos - the intial x-coordinate for this Turtle
        yPos - the intial y-coordinate for this Turtle
      • NinjaTurtle

        public NinjaTurtle​(Model model,
                           int n,
                           double xPos,
                           double yPos,
                           double z)
        Parameters:
        model - a reference to the Model that this Turtle is builing
        n - number of radial lines
        xPos - the intial x-coordinate for this Turtle
        yPos - the intial y-coordinate for this Turtle
        z - the z-plane for this Turtle