Hello Poetry
Submit your work and get some sparkles! Create free account
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]); } }
0
Nov 28, 2014
Nov 28, 2014 at 11:34 AM UTC
Becker.Robot.ReggaeBoy
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]); } }
TheCanadianReggaeBoy
Written by
Nov 28, 2014
Nov 28, 2014 at 11:34 AM UTC
Request permission to use this poem