Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
AIProfile.hpp File Reference
#include "AIDecisionUtility.hpp"
#include <array>
#include <cstdint>
#include <expected>
#include <filesystem>
#include <string>
#include <string_view>
Include dependency graph for AIProfile.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::ai::profile::Error
 
struct  monopoly::ai::profile::Profile
 
struct  monopoly::ai::profile::ConfigContext
 

Namespaces

namespace  monopoly
 
namespace  monopoly::ai
 
namespace  monopoly::ai::profile
 

Typedefs

using monopoly::ai::profile::ProfileSet = std::array< Profile, rules::MaxPlayers >
 

Enumerations

enum class  monopoly::ai::profile::ErrorCode : std::uint8_t {
  monopoly::ai::profile::InvalidLevel = 0 , monopoly::ai::profile::IoError , monopoly::ai::profile::MalformedValue , monopoly::ai::profile::InvalidEnum ,
  monopoly::ai::profile::UnknownAttribute
}
 

Functions

std::expected< Profile, Error > monopoly::ai::profile::parse (std::string_view text, int level)
 
std::expected< Profile, Error > monopoly::ai::profile::load (const std::filesystem::path &path, int level)
 
std::string_view monopoly::ai::profile::tokenFileName (std::uint8_t token) noexcept
 
decision::TradeEvaluationConfig monopoly::ai::profile::makeTradeEvaluationConfig (const ProfileSet &profiles, rules::PlayerNumber strategyPlayer, const ConfigContext &context) noexcept
 
decision::CounterProposalPreflightConfig monopoly::ai::profile::makeCounterPreflightConfig (const ProfileSet &profiles, rules::PlayerNumber strategyPlayer, const ConfigContext &context) noexcept
 
decision::CounterProposalBalanceConfig monopoly::ai::profile::makeCounterBalanceConfig (const ProfileSet &profiles, rules::PlayerNumber strategyPlayer, const ConfigContext &context) noexcept
 
decision::MonopolyProposalConfig monopoly::ai::profile::makeMonopolyProposalConfig (const ProfileSet &profiles, rules::PlayerNumber strategyPlayer, const ConfigContext &context) noexcept
 

Variables

constexpr std::size_t monopoly::ai::profile::TokenProfileCount = 11