Annual general meeting and change of club

At the end of a season three groups of members vote on a human manager.
Below half of the votes he has to take over one of up to seven interested
clubs; the same list lets a manager leave on his own from the manager page.
The meeting is shown as a needle that swings between red and green and
comes to rest on the result.

Engine: assembly_vote, club_offers, change_club; read "assembly", command
manager.clubChange, field assembly of session.advance; saved in
state/modern.json. Dismissals are always on until the options offer them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
MichaelandClaude Fable 5.2 committed 2026-11-17 12:58:36 +01:00
1 parent 811edfa900
commit a2b9770d81
24 files changed
+1016 -7

No files matched your search

+12
View File
@@ -128,6 +128,18 @@ struct ModernState : GameState {
// The scale of the traffic access bytes (traffic.hpp): 0 the original's (steps of 0x55), 64 the
// four stages of a Modern world. Older Modern saves are converted when loaded.
uint8_t traffic_scale = 0;
// The annual general meeting (docs/new_engine/hauptversammlung.md), per manager slot: what the
// members compare the season with - his assets and his club's place over all leagues when
// they last voted (or when he took the club) - and the season they last voted in.
struct AssemblyMemory {
int64_t assets = 0;
int32_t place = -1; // -1: not yet set (an older save, a manager who has just joined)
int32_t voted_season = -1;
bool operator==(const AssemblyMemory&) const = default;
};
std::vector<AssemblyMemory> assembly;
// Whether a manager the meeting votes out has to leave his club. On until the options offer it.
bool dismissals = true;
// Players whose age the data set gives (birth date); the others carry a placeholder the
// career start replaces as in the original. Needed only while a career starts (not saved).
std::vector<bool> world_age_known;