Package dev.bbzbl.m320
Class Competition
java.lang.Object
dev.bbzbl.m320.Competition
Class which contains all Methods for a regatta
- Version:
- 1.0
- Author:
- yannick
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new ship to the race.voidPrints out the result of the competitionvoidstart()Start the ship Race
-
Constructor Details
-
Competition
Constructor for a new Competition- Parameters:
name- the name of the competition
-
-
Method Details
-
start
public void start()Start the ship Race- See Also:
-
addShip
Add a new ship to the race.- Parameters:
ship- the ship which should be added
-
printResult
public void printResult()Prints out the result of the competition
-