Player12
An open source football management simulator
Loading...
Searching...
No Matches
interactions.cpp File Reference
#include "model/interactions.h"
#include <sqlite3.h>
#include <algorithm>
#include <cmath>
#include <format>
#include <utility>
#include "database/database_connection.h"
#include "database/gamedata.h"
#include "model/calendar.h"
#include "model/inbox.h"
#include "model/match_report.h"
#include "model/team.h"
#include "model/transfer_windows.h"
#include "model/world_rng.h"
#include "model/world_simulation.h"

Namespaces

namespace  Interactions
 

Functions

const char * Interactions::optionKey (TalkOption option)
 
const char * Interactions::optionDescriptionKey (TalkOption option)
 
const char * Interactions::reactionKey (TalkReaction reaction)
 
const char * Interactions::hintKey (TalkHint hint)
 
const char * Interactions::blockKey (TalkBlock block)
 
const char * Interactions::requestKey (TalkRequest request)
 
const char * Interactions::promiseTypeKey (PromiseType type)
 
const char * Interactions::promiseStateKey (PromiseState state)
 
const char * Interactions::voidReasonKey (PromiseVoidReason reason)
 
const char * Interactions::toneKey (TeamTalkTone tone)
 
const char * Interactions::toneDescriptionKey (TeamTalkTone tone)
 
const char * Interactions::moodKey (DressingMood mood)
 
TalkGroup Interactions::groupOf (TalkOption option)
 
std::int32_t Interactions::cooldownDays (TalkGroup group)
 
float Interactions::expectedRating (SquadRole role)
 
float Interactions::expectedShare (SquadRole role, int age)
 
float Interactions::positiveChance (const TalkContext &context, TalkOption option)
 
float Interactions::negativeChance (const TalkContext &context, TalkOption option)
 
TalkHint Interactions::hintFor (float positive, float negative)
 
TalkOutcome Interactions::evaluateTalk (const TalkContext &context, TalkOption option, double roll, double variant_roll)
 
std::vector< TeamTalkPrediction > Interactions::predictTeamTalk (const TeamTalkContext &context)
 
TeamTalkResult Interactions::evaluateTeamTalk (const TeamTalkContext &context, TeamTalkTone tone, std::uint64_t seed)
 
float Interactions::cohesionModifier (float new_share)
 
float Interactions::newness (std::int32_t joined_day, std::int32_t today)
 
float Interactions::hierarchyScore (int tenure_days, int age, float standing, const PlayerTraits &traits)