Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Class for the Window Builders
- * By: Alejandro Antorcha
- */
- package Lesson3;
- public class WindowBuilder extends Constructicon {
- public WindowBuilder(int x, int y, Direction d, int b) {
- super(x, y, d, b);
- }
- /**
- * Moves forward and then turns left
- * @param
- * @return void
- */
- public void moveTurnLeft() {
- move();
- turnLeft();
- }
- /**
- * Builds the window
- * @param
- * @return void
- */
- public void build() {
- for(int i = 0; i < 4; i++) {
- putBeeper();
- moveTurnLeft();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement