Javadoc for goals
This commit is contained in:
parent
c348da2de2
commit
c3284910eb
4 changed files with 28 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue