Update TimeGoal.java
This commit is contained in:
parent
68f0fb91c5
commit
3c5290aef1
1 changed files with 6 additions and 2 deletions
|
|
@ -11,12 +11,16 @@ 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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isCompleted() {
|
public boolean isCompleted() {
|
||||||
return this.getWinner() != null;
|
return this.getWinner() != null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue