improvements
This commit is contained in:
@@ -5,6 +5,7 @@ public enum TurnState
|
||||
Playing,
|
||||
SelectingSuit,
|
||||
PassScreen,
|
||||
RoundOver,
|
||||
GameOver
|
||||
}
|
||||
|
||||
@@ -25,7 +26,15 @@ public class GameState
|
||||
public Player? PendingHornikPlayer { get; set; }
|
||||
public Card? TopCard => DiscardPile.Count > 0 ? DiscardPile[^1] : null;
|
||||
|
||||
// Olympijský režim (Turnaj)
|
||||
public int RoundNumber { get; set; } = 1;
|
||||
public bool IsRoundOver { get; set; } = false;
|
||||
public Player? RoundLoser { get; set; }
|
||||
public Player? MatchWinner { get; set; }
|
||||
public bool IsMatchOver { get; set; } = false;
|
||||
|
||||
public Player CurrentPlayer => Players.Count > 0 ? Players[CurrentPlayerIndex % Players.Count] : new Player();
|
||||
|
||||
public int ActivePlayersCount => Players.Count(p => !p.HasFinished);
|
||||
public int ActivePlayersCount => Players.Where(p => !p.IsEliminated).Count(p => !p.HasFinished);
|
||||
public List<Player> ActiveTournamentPlayers => Players.Where(p => !p.IsEliminated).ToList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user