|
| | WorldSimulation (std::shared_ptr< GameData > gamedata) |
| |
| void | onDayAdvanced (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | onMatchPlayed (const Match &match, MatchReport &report, TeamID managed_team_id) |
| |
| void | onSeasonEnd (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | onSeasonStart (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | onManagedTeamSelected (const GameDateValue &date, TeamID team_id, const std::vector< UpcomingFixture > &schedule) |
| |
| void | onManagerLeft () |
| |
| bool | isTransferEmbargoed (TeamID team_id) const |
| |
| void | load (const std::shared_ptr< DatabaseConnection > &db_conn) |
| |
| void | save (const std::shared_ptr< DatabaseConnection > &db_conn) const |
| |
| void | onSaved () |
| |
| bool | applyMatchConsequences (const GameDateValue &date, const PlayerMatchConsequence &consequence, TeamID managed_team_id) |
| |
| void | setStandingsProvider (std::function< std::vector< TeamID >(LeagueID)> provider) |
| |
| void | setFixtureOutlookProvider (std::function< void(const GameDateValue &, TrainingSystem::FixtureOutlook &)> provider) |
| |
| void | setInjuryRiskProvider (std::function< double(PlayerID, const GameDateValue &)> provider) |
| |
| void | setLoanCheck (std::function< bool(PlayerID)> is_on_loan) |
| |
| void | setSeasonHistoryProvider (std::function< const std::vector< SeasonHistoryEntry > &()> provider) |
| |
| void | setFreeAgentHold (std::function< bool(PlayerID)> is_held) |
| |
| void | setLineupGapFiller (std::function< void(Team &, const Player &)> filler) |
| |
| void | onTransferBid (const GameDateValue &date, PlayerID player_id, TeamID bidder_id, std::uint32_t amount, TeamID managed_team_id) |
| |
| void | onTransferCompleted (const GameDateValue &date, PlayerID player_id, TeamID from_team_id, TeamID to_team_id, std::uint32_t fee, TeamID managed_team_id) |
| |
| const Inbox & | getInbox () const |
| |
| Inbox & | getInbox () |
| |
| const BoardState & | getBoardState () const |
| |
| void | adjustBoardConfidence (float delta) |
| |
| std::int64_t | getSeasonPrizeMoney () const |
| |
| ScoutingSystem & | getScouting () |
| |
| const ScoutingSystem & | getScouting () const |
| |
| InteractionSystem & | getInteractions () |
| |
| const InteractionSystem & | getInteractions () const |
| |
| StoryEngine & | getStories () |
| |
| const StoryEngine & | getStories () const |
| |
| YouthAcademy & | getYouth () |
| |
| const YouthAcademy & | getYouth () const |
| |
| SquadStatusBook & | getSquadStatuses () |
| |
| const SquadStatusBook & | getSquadStatuses () const |
| |
| AwardSystem & | getAwards () |
| |
| const AwardSystem & | getAwards () const |
| |
| RecordBook & | getRecords () |
| |
| const RecordBook & | getRecords () const |
| |
| FacilityProjects & | getFacilityProjects () |
| |
| const FacilityProjects & | getFacilityProjects () const |
| |
| PreseasonPlanner & | getPreseason () |
| |
| const PreseasonPlanner & | getPreseason () const |
| |
| MentoringSystem & | getMentoring () |
| |
| const MentoringSystem & | getMentoring () const |
| |
| HolidayPreferences & | getHolidayPreferences () |
| |
| const HolidayPreferences & | getHolidayPreferences () const |
| |
| SquadRole | squadRole (PlayerID player_id) const |
| |
| std::uint32_t | lastHomeAttendance (TeamID team_id) const |
| |
| int | leaguePosition (TeamID team_id) const |
| |
| float | lineupStrength (TeamID team_id) const |
| |
|
| void | processDaily (const GameDateValue &date, std::int32_t ordinal, TeamID managed_team_id) |
| |
| void | processWeekly (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | reviewCash (const GameDateValue &date, TeamID managed_team_id, bool monthly) |
| |
| void | rescueByOwner (const GameDateValue &date, Team &team) const |
| |
| std::unordered_map< TeamID, double > | parachutes (const std::unordered_map< LeagueID, LeagueEconomy > &economies, std::vector< TeamID > *relegated_now=nullptr) const |
| |
| void | applyRelegationWageCuts (const std::vector< TeamID > &relegated, TeamID managed_team_id) |
| |
| void | clearFreeAgentPool (const GameDateValue &date) |
| |
| void | postMedicalDigest (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | postSquadReport (const GameDateValue &date, const Team &team) |
| |
| void | postPreseasonSchedule (const GameDateValue &date, const Team &team, const std::vector< UpcomingFixture > &schedule) |
| |
| void | postScoutSuggestion (const GameDateValue &date, const Team &team) |
| |
| void | processMonthly (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | sendContractNotices (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | awardPrizeMoney (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | renewAiContracts (TeamID managed_team_id) |
| |
| void | trimAiSquads (TeamID managed_team_id) |
| |
| void | retirePlayers (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | ensureBoard (const GameDateValue &date, TeamID managed_team_id, bool new_season, bool post_objective=true) |
| |
| void | developPlayer (Player &player, float training_quality, std::int32_t ordinal) |
| |
| void | updateWeeklyMorale (Team &team) |
| |
| void | injure (Player &player, const GameDateValue &date, std::int32_t ordinal, bool in_match, TeamID managed_team_id) |
| |
| void | recordGateReceipts (const Match &match) |
| |
| void | postTrainingWarning (const GameDateValue &date, TeamID managed_team_id) |
| |
| void | refreshAiLineups (TeamID managed_team_id) |
| |
| void | dropUnavailableFromAiLineups (TeamID managed_team_id) |
| |
| std::vector< TeamID > | standings (LeagueID league_id) const |
| |
| std::vector< TeamID > | pointsOrder (LeagueID league_id) const |
| |
| double | sportingSuccess (const Team &team) const |
| |
| void | post (const GameDateValue &date, InboxCategory category, std::string title_key, std::string body_key, std::vector< std::string > args, std::optional< PlayerID > player_id=std::nullopt, std::optional< TeamID > team_id=std::nullopt, bool read=false) |
| |
| const FocusStats & | focusFor (const Player &player) const |
| |
Everything that happens between matches.
Owns the managed club's inbox and board state and processes, from the Game's day loop: condition recovery, training and match injuries, weekly payroll, training development, morale, monthly revenue and costs, the March youth intake and season-end prize money, contract renewals and retirements. All randomness is derived from the save's world seed.
Applies the consequences of a played match: condition, sharpness, injuries, ratings, morale, recent form, gate receipts (written to report.attendance), board confidence and news. Participants come from report.players (starters of the line-ups when empty); ratings of 0 are estimated. Players whose physical consequences were already applied on the match date through applyMatchConsequences() are not drained twice.