Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Trailbot class
- import becker.robots.*;
- public class TrailBot extends RobotSE {
- public TrailBot(City city, int aStreet, int anAvenue, Direction aDirection, int numThings) {
- super(city, aStreet, anAvenue, aDirection, 100);
- }
- /*public void trailMove() {
- this.putThing();
- this.move();*/
- public void move() {
- this.putThing();
- super.move();
- }
- }
- //Main class
- import becker.robots.*;
- public class Main {
- public static void main(String[] args) {
- City Mississauga = new City();
- TrailBot Robot = new TrailBot(Mississauga,1,1,Direction.SOUTH,0);
- Robot.move();
- Robot.move();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement