Add: endGame To Complete
This commit is contained in:
@@ -349,16 +349,16 @@ public class Game {
|
||||
currentState.RoundUpdate();
|
||||
|
||||
}
|
||||
|
||||
// TODO pulire game ?
|
||||
private void endGame() {
|
||||
//DO SOMETHING THEN
|
||||
for(Player p : playersList){
|
||||
List<BuildingCard> cards = p.buildingCards.stream().
|
||||
filter(x -> x.getEffectType() == EffectType.FINAL).toList();
|
||||
}
|
||||
playersList.forEach(
|
||||
p -> p.buildingCards.stream().filter(x -> x.getEffectType() == EffectType.FINAL).
|
||||
forEach(x -> x.applyEffect(p))
|
||||
);
|
||||
currentState.GameStageUpdate(GameStages.ENDED);
|
||||
}
|
||||
|
||||
// TODO endGame, optional cards,
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user