Modern UI contract: the end of the game

Resigning as the only or last human ends the game as the end of the set
duration does: the highscore hook updates and shows the table. The end's
reason and date are saved; the session read follows the contract's
Session schema (archived managers, termination reason, ownership, mode),
managers become archived (resigned or retired) and their employments end
with the career. The resign answer carries the ownership change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-27 18:39:32 +01:00
1 parent 6570384642
commit d6d31f939d
10 files changed
+99 -20

No files matched your search

+1 -1
View File
@@ -914,7 +914,7 @@ public:
GameRandom& game() { return game_; }
WatcomRandom& rand() { return rand_; }
uint64_t session_id() const { return session_id_; }
bool career_complete() const { return turn_driver_.stage == TurnDriver::Stage::CareerComplete; }
bool career_complete() const { return turn_driver_.stage == TurnDriver::Stage::CareerComplete || !g_.career_end_reason.empty(); }
// Portable host driver capabilities replace SOUND.CFG runtime latches; they
// are never inferred from a saved switch or written into an FBM on entry.