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);
this.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]);
}
}
Nov 28, 2014
Nov 28, 2014 at 11:34 AM UTC
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);
this.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]);
}
}
