Class Competition

java.lang.Object
dev.bbzbl.m320.Competition

public class Competition extends Object
Class which contains all Methods for a regatta
Version:
1.0
Author:
yannick
  • Constructor Details

    • Competition

      public Competition(String name)
      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

      public void addShip(Ship ship)
      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