Advertisement
aleantorcha

Untitled

Nov 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. /**
  2. * The class for a Wall Builders
  3. * By: Alejandro Antorcha
  4. */
  5. package Lesson3;
  6.  
  7. public class WallBuilder extends Constructicon {
  8.  
  9. public WallBuilder(int x, int y, Direction d, int b) {
  10. super(x, y, d, b);
  11. }
  12.  
  13. /**
  14. * Places one of the beepers and moves
  15. * @param height - where the WallBuilder is at on the wall
  16. * @return void
  17. */
  18. public void brick(int height) {
  19. putBeeper();
  20. if(height < 4) {
  21. move();
  22. }
  23. }
  24.  
  25. /**
  26. * Builds the wall of the house
  27. * @param
  28. * @return void
  29. */
  30. public void build() {
  31. for(int i = 0; i < 5; i++) {
  32. brick(i);
  33. }
  34. }
  35.  
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement