#include <GameModel.h>
Public Member Functions | |
Config (const communication::messages::broadcast::MatchConfig &config) | |
Config (unsigned int maxRounds, const FoulDetectionProbs &foulDetectionProbs, const GameDynamicsProbs &gameDynamicsProbs, std::map< communication::messages::types::Broom, double > extraTurnProbs) | |
double | getExtraTurnProb (communication::messages::types::Broom broom) const |
double | getFoulDetectionProb (Foul foul) const |
double | getFoulDetectionProb (InterferenceType interference) const |
unsigned int | getMaxRounds () const |
const GameDynamicsProbs & | getGameDynamicsProbs () const |
bool | operator== (const Config &rhs) const |
bool | operator!= (const Config &rhs) const |
Friends | |
void | from_json (const nlohmann::json &, Config &) |
Class containing metadata for a match
double gameModel::Config::getExtraTurnProb | ( | communication::messages::types::Broom | broom | ) | const |
Gets the probability of an extra turn with the specified Broom type
broom |
double gameModel::Config::getFoulDetectionProb | ( | Foul | foul | ) | const |
Gets the probability that the given foul will be detected
foul |
double gameModel::Config::getFoulDetectionProb | ( | InterferenceType | interference | ) | const |
Gets the probability that the given interference will be detected
interference |
const GameDynamicsProbs & gameModel::Config::getGameDynamicsProbs | ( | ) | const |
Getter
unsigned int gameModel::Config::getMaxRounds | ( | ) | const |
Getter
|
friend |
Friend method for serialization