I need help dropping an actor subclass (marker) at the current location of my other subclass (turtle) if there is not a marker at the turtles current location.
Here is a snippet of my method and I have no clue how to fix it
This is not running the first 3 lines, I know HERE is not in the appropriate location but I can't figure out how to indicate that it must drop a marker at the turtles current location.
1 2 3 4 5 6 7 8 9 | public void move() { while ( this .isClear(HERE)) { Marker marker = new Marker(); this .add(marker); } super .move( 1 ); } |