Cockatrice/cockatrice/src/game
BruebachL 750d5b3c21
[Client] Add option to use game time in game log timestamps (#7265)
* [Client] Add option to use game time in game log timestamps (#2202)

Game log timestamps showed the local clock time, which is meaningless in
a replay or in a log read after the fact — nobody can tell when a play
happened relative to the game.

Add a "Use game time instead of local time in game logs" setting. When
enabled, the message log stamps entries with the elapsed game time
(HH:MM:SS since the game started); regular chat views keep the local
clock.

* [Game] Move formatElapsedTime helper out of public slots (#2202)

The message log needs the HH:MM:SS formatter used by the game timer, but
it lives in GameState's public slots, tying a pure formatting helper to
the signal-slot machinery.

Move formatElapsedTime into a public section of GameState so the log can
call it directly, and add the missing trailing newline to game_state.cpp.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-10-02 17:30:48 +02:00
..
board [Replay] Skip damage animations when skipping backward in replays (#7249) 2026-09-07 02:26:52 +02:00
player [Game] Preserve hand card order when restoring connection (#7266) 2026-09-07 08:21:44 +02:00
zones [Replay] Fix cards accumulating in zone view when rewinding (#7357) 2026-10-02 17:17:34 +02:00
abstract_game.cpp [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00
abstract_game.h [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00
arrow_registry.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
arrow_registry.h [Game] [Arrows] Use arrowData/registry and generate unique server-side ids (#6973) 2026-06-07 21:11:02 +02:00
game.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
game.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
game_event_handler.cpp [Game] Prevent spectator duplication when replaying joined events (#7248) 2026-09-07 01:57:35 +02:00
game_event_handler.h [Networking] Doxygen (#7030) 2026-07-27 11:27:00 +02:00
game_meta_info.cpp Removed unused fields in GameMetaInfo and GameState (#6142) 2025-09-15 10:22:11 +02:00
game_meta_info.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
game_state.cpp [Client] Add option to use game time in game log timestamps (#7265) 2026-10-02 17:30:48 +02:00
game_state.h [Client] Add option to use game time in game log timestamps (#7265) 2026-10-02 17:30:48 +02:00
phase.cpp add phase to delete arrows in to protocol (#6159) 2025-11-26 09:16:10 -05:00
phase.h Standardize Doxygen documentation (#6885) 2026-05-21 22:58:07 +02:00
replay.cpp [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00
replay.h [Replay] Refactor: extract replay playback logic into single class (#7060) 2026-08-02 19:22:33 -07:00