Submit your work, meet writers and drop the ads. Become a member
Nov 2014
import becker.robots;
import becker.reggae;

public class ReggaeBoy extends Robot{

public ReggaeBoy(City c, int s, int a, Direction d, String label){
super(c,s,a,d);
this.setIcon("ReggaeBoy.png");
this­.setLabel("Reggae Boy");
}

public void bunUp(){
this.setIcon("kush.png");
this.setColor(GREEN);
th­is.setSpeed(this.getSpeed/2);
}

public void playReggae(int songNumber){
String musicFile = ("bobM.mp3,herbs.mp3,reggaeTime.mp3");
String[] musicFileSplit = musicFile.split(",");
this.playSong(musicFileSplit[songNumber])­;
}
}
reggae in code
TheCanadianReggaeBoy
Written by
TheCanadianReggaeBoy  Jamaica, ON
(Jamaica, ON)   
Please log in to view and add comments on poems