Update TimeGoal.java
This commit is contained in:
parent
68f0fb91c5
commit
3c5290aef1
1 changed files with 6 additions and 2 deletions
|
|
@ -11,9 +11,13 @@ import game.map.Castle;
|
||||||
|
|
||||||
public class TimeGoal extends Goal {
|
public class TimeGoal extends Goal {
|
||||||
|
|
||||||
int maxRounds = 4;
|
int maxRounds;
|
||||||
|
|
||||||
public TimeGoal() {
|
public TimeGoal() {
|
||||||
|
this(4);
|
||||||
|
}
|
||||||
|
|
||||||
|
public TimeGoal(int maxRounds) {
|
||||||
super("Countdown", "Derjenige Spieler gewinnt, der nach " + maxRounds + " Runden die meisten Burgen besitzt.");
|
super("Countdown", "Derjenige Spieler gewinnt, der nach " + maxRounds + " Runden die meisten Burgen besitzt.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue