Removed sout statements.
This commit is contained in:
+2
-2
@@ -26,12 +26,12 @@ public class BoatCollisionCommand implements Command {
|
||||
public void execute() {
|
||||
|
||||
if(visualiserRace.getPlayerBoatID()==yachtEvent.getSourceID()){
|
||||
System.out.println("I crashed!");
|
||||
//System.out.println("I crashed!");
|
||||
AudioClip sound = new AudioClip(this.getClass().getResource("/visualiser/sounds/collision.wav").toExternalForm());
|
||||
sound.play();
|
||||
|
||||
} else {
|
||||
System.out.println("Someone else crashed!");
|
||||
//System.out.println("Someone else crashed!");
|
||||
AudioClip sound = new AudioClip(this.getClass().getResource("/visualiser/sounds/quietcollision.wav").toExternalForm());
|
||||
sound.play();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user