Javadoc for goals

This commit is contained in:
joachimschmidt557 2019-03-26 17:55:53 +01:00
parent c348da2de2
commit c3284910eb
4 changed files with 28 additions and 0 deletions

View file

@ -13,10 +13,17 @@ public class TimeGoal extends Goal {
int maxRounds;
/**
* Creates a new time goal with the default limit
*/
public TimeGoal() {
this(4);
}
/**
* Creates a new time goal with the specified limit
* @param maxRounds The limit of rounds
*/
public TimeGoal(int maxRounds) {
super("Countdown", "Derjenige Spieler gewinnt, der nach " + maxRounds + " Runden die meisten Burgen besitzt.");
this.maxRounds = maxRounds;