Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The class for a Wall Builders
- * By: Alejandro Antorcha
- */
- package Lesson3;
- public class WallBuilder extends Constructicon {
- public WallBuilder(int x, int y, Direction d, int b) {
- super(x, y, d, b);
- }
- /**
- * Places one of the beepers and moves
- * @param height - where the WallBuilder is at on the wall
- * @return void
- */
- public void brick(int height) {
- putBeeper();
- if(height < 4) {
- move();
- }
- }
- /**
- * Builds the wall of the house
- * @param
- * @return void
- */
- public void build() {
- for(int i = 0; i < 5; i++) {
- brick(i);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement