Phase 3 & 4: Team colors, player_eliminated push, board shapes, lobby team UI
Phase 3 – Team modes: - GameState: TeamColors dictionary (int → hex color string) populated from palette - GameMessages: PlayerEliminatedPush, PlayerOutcomeDto, extended GameOverPush - GameHandlerBase: FinalizeMultiPlayerGameAsync (pairwise ELO), BroadcastPlayerEliminatedAsync, GetAllPlayerIds for N-player push - GameAttackHandler: snapshot pre-attack elimination state; use FinalizeMultiPlayerGameAsync; push PlayerEliminatedPush for mid-game knockouts - game_screen.gd: turn order strip chips carry team-color left border from state.teamColors - lobby_room_screen.gd: _team_label() helper; team badges on host/guest/additional slots Phase 4 – Board shape library: - BoardShapeGenerator: AutoShape() picks shape by player count; adds Triangular (3p), RadialStar (5p, 5-arm star), HexRing (6p, hex perimeter zones); CoordsInRect helper - GameLobbyReadyHandler: auto-selects board shape at game start; passes BoardShape+PlayerCount into rules snapshot Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -31,6 +31,12 @@ public sealed class GameState
|
||||
/// <summary>"FFA" | "Teams" | "MultiTeam". Used for ability ownership resolution.</summary>
|
||||
public string GameMode { get; set; } = "FFA";
|
||||
|
||||
/// <summary>
|
||||
/// Maps TeamIndex → CSS-style hex color string (e.g. "4488FF").
|
||||
/// Populated at initialization from the built-in palette; empty for legacy 1v1 games.
|
||||
/// </summary>
|
||||
public Dictionary<int, string> TeamColors { get; set; } = new();
|
||||
|
||||
/// <summary>Running sequence number for action log / StateVersion.</summary>
|
||||
public int NextActionSequence { get; set; } = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user