Advertisement
aleantorcha

Untitled

Nov 21st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. /**
  2. * Class for the Window Builders
  3. * By: Alejandro Antorcha
  4. */
  5. package Lesson3;
  6.  
  7. public class WindowBuilder extends Constructicon {
  8.  
  9. public WindowBuilder(int x, int y, Direction d, int b) {
  10. super(x, y, d, b);
  11. }
  12.  
  13. /**
  14. * Moves forward and then turns left
  15. * @param
  16. * @return void
  17. */
  18. public void moveTurnLeft() {
  19. move();
  20. turnLeft();
  21. }
  22.  
  23. /**
  24. * Builds the window
  25. * @param
  26. * @return void
  27. */
  28. public void build() {
  29. for(int i = 0; i < 4; i++) {
  30. putBeeper();
  31. moveTurnLeft();
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement