// Virginia Tech Honor Code Pledge:
//
// As a Hokie, I will conduct myself with honor and integrity at all times.
// I will not lie, cheat, or steal, nor will I accept the actions of those
// who do.
// -- Daniel M
...
// Virginia Tech Honor Code Pledge:
//
// As a Hokie, I will conduct myself with honor and integrity at all times.
// I will not lie, cheat, or steal, nor will I accept the actions of those
// who do.
// -- Daniel Montoya (dfmontoya02)
import sofia.micro.jeroo.*;
//-------------------------------------------------------------------------
/**
* A jeroo that traverses all locations on an island, and uses
* a buddy to make a copy of any pattern of flowers it finds.
*
* @author dfmontoya02, Daniel Montoya
* @version 2020.10.19
*/
public class CopyingJeroo extends Jeroo
{
//~ Fields ................................................................
private Jeroo copier;
//~ Constructor ...........................................................
// ----------------------------------------------------------
/**
* Creates a new CopyingJeroo object.
* @param copier copies Jeroo and creates a clone
*
*/
public CopyingJeroo(Jeroo copier)
{
super();
this.copier = copier;
}
//~ Methods ...............................................................
// ----------------------------------------------------------
/**
* Creates a new CopyingJeroo object.
*
*/
public void myProgram()
{
this.hopToWater();
this.turntoNextRowRight();
this.checkFlower();
this.hopToWater();
this.turntoNextRowLeft();
this.checkFlower();
this.hopToWater();
this.turntoNextRowRight();
this.checkFlower();
this.hopToWater();
this.turntoNextRowLeft();
this.checkFlower();
this.hopToWater();
this.turntoNextRowRight();
this.checkFlower();
this.hopToWater();
this.turntoNextRowLeft();
this.checkFlower();
[Show More]