Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Lesson3Activity4;
- //Creates the WallBuilder Robot
- public class WallBuilder extends Constructicons{
- /**
- * Constructor for WallBuilder class
- * @param a
- * @param s
- * @param d
- * @param b
- * @ return - none
- */
- public WallBuilder(int a, int s, Direction d, int b){
- super(a,s,d,b);
- }
- /**
- * Overrides build method of Constructicons and instills the set of instructions for the WallBuilder
- * @ param - none
- * @ return - void
- */
- public void build(){
- //Goes up wall while setting beepers
- for(int i=0;i<4;i++){
- putBeeper();
- move();
- }
- }
- }
Add Comment
Please, Sign In to add comment