Add Engineer class to class selection
Integrated the Engineer class into the game by utilizing the EngineerCreator. This ensures teams now have access to the Engineer role during class selection, enhancing gameplay diversity.
This commit is contained in:
parent
6bb4673b08
commit
e5077b40c5
|
|
@ -5,6 +5,7 @@ import com.alttd.ctf.config.Messages;
|
|||
import com.alttd.ctf.game.GameManager;
|
||||
import com.alttd.ctf.game.GamePhase;
|
||||
import com.alttd.ctf.game_class.GameClass;
|
||||
import com.alttd.ctf.game_class.creation.EngineerCreator;
|
||||
import com.alttd.ctf.game_class.creation.FighterCreator;
|
||||
import com.alttd.ctf.game_class.creation.TankCreator;
|
||||
import com.alttd.ctf.gui.ClassSelectionGUI;
|
||||
|
|
@ -28,6 +29,7 @@ public class SelectClass extends SubCommand {
|
|||
gameManager.getTeams().forEach(team -> {
|
||||
gameClasses.computeIfAbsent(team.getId(), teamId -> new ArrayList<>()).add(FighterCreator.createFighter(team.getColor()));
|
||||
gameClasses.computeIfAbsent(team.getId(), teamId -> new ArrayList<>()).add(TankCreator.createTank(team.getColor()));
|
||||
gameClasses.computeIfAbsent(team.getId(), teamId -> new ArrayList<>()).add(EngineerCreator.createEngineer(team.getColor()));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user