Player12
An open source football management simulator
Loading...
Searching...
No Matches
next_action.cpp File Reference
#include "model/next_action.h"
#include <algorithm>
#include <array>
#include <format>
#include "controller/game_controller.h"
#include "database/gamedata.h"
#include "model/delegation.h"
#include "model/inbox.h"
#include "model/role_utils.h"
#include "model/world_rng.h"

Functions

std::vector< NextAction > rankNextActions (const NextActionFacts &facts, std::size_t limit)
 
NextActionFacts gatherNextActionFacts (const GameController &controller)
 

Function Documentation

◆ gatherNextActionFacts()

NextActionFacts gatherNextActionFacts ( const GameController &  controller)

Reads the facts of the managed club from the controller.

◆ rankNextActions()

std::vector< NextAction > rankNextActions ( const NextActionFacts &  facts,
std::size_t  limit = std::numeric_limits< std::size_t >::max() 
)

Ranks the pending work, most important first (pure, deterministic).