|
|
|
@ -33,6 +33,7 @@ public class BoatInRace extends Boat {
|
|
|
|
* @param name Name of the boat.
|
|
|
|
* @param name Name of the boat.
|
|
|
|
* @param velocity Speed that the boat travels.
|
|
|
|
* @param velocity Speed that the boat travels.
|
|
|
|
* @param colour Colour the boat will be displayed as on the map
|
|
|
|
* @param colour Colour the boat will be displayed as on the map
|
|
|
|
|
|
|
|
* @param abbrev of boat
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public BoatInRace(String name, double velocity, Color colour, String abbrev) {
|
|
|
|
public BoatInRace(String name, double velocity, Color colour, String abbrev) {
|
|
|
|
super(name, velocity, abbrev);
|
|
|
|
super(name, velocity, abbrev);
|
|
|
|
@ -112,7 +113,7 @@ public class BoatInRace extends Boat {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets the boat's scaled velocity
|
|
|
|
* Sets the boat's scaled velocity
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param velocity
|
|
|
|
* @param velocity of boat
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void setScaledVelocity(double velocity) {
|
|
|
|
public void setScaledVelocity(double velocity) {
|
|
|
|
this.scaledVelocity = velocity;
|
|
|
|
this.scaledVelocity = velocity;
|
|
|
|
@ -225,7 +226,7 @@ public class BoatInRace extends Boat {
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Sets whether boat is finished or not
|
|
|
|
* Sets whether boat is finished or not
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @param bool
|
|
|
|
* @param bool is finished value
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public void setFinished(boolean bool) {
|
|
|
|
public void setFinished(boolean bool) {
|
|
|
|
this.finished = bool;
|
|
|
|
this.finished = bool;
|
|
|
|
|