31 Zeilen
801 B
Java
31 Zeilen
801 B
Java
package de.steamwar.fightsystem.countdown;
|
|
|
|
import de.steamwar.fightsystem.Config;
|
|
import de.steamwar.fightsystem.FightSystem;
|
|
import de.steamwar.fightsystem.fight.Fight;
|
|
import de.steamwar.fightsystem.fight.FightTeam;
|
|
|
|
public class PreSchemPasteCountdown extends Countdown {
|
|
|
|
public PreSchemPasteCountdown() {
|
|
super(Config.PreSchemPasteDuration, SWSound.BLOCK_NOTE_PLING, false);
|
|
}
|
|
|
|
@Override
|
|
String countdownCounting() {
|
|
return "bis eine Public-Schematic gewählt wird!";
|
|
}
|
|
|
|
@Override
|
|
void countdownFinished() {
|
|
checkTeam(Fight.getBlueTeam());
|
|
checkTeam(Fight.getRedTeam());
|
|
FightSystem.setPostSchemState();
|
|
}
|
|
|
|
private void checkTeam(FightTeam team){
|
|
if(!team.hasSchematic())
|
|
team.pasteDummy();
|
|
}
|
|
}
|