Player12
An open source football management simulator
Loading...
Searching...
No Matches
PlayerRelation Struct Reference

A managed player's relationship with the manager (persisted). More...

#include <interactions.h>

Public Attributes

float trust = 0.0f
 
std::array< std::int32_t, static_cast< std::size_t >(std::to_underlying(TalkGroup::COUNT))> last_talk {}
 
TalkRequest request = TalkRequest::None
 
std::int32_t request_day = 0
 
std::int32_t quiet_until = 0
 
std::uint8_t escalations = 0
 
std::uint8_t low_morale_weeks = 0
 
std::int32_t joined_day = 0
 
std::int32_t broken_promise_day = 0
 

Detailed Description

A managed player's relationship with the manager (persisted).

Member Data Documentation

◆ broken_promise_day

std::int32_t PlayerRelation::broken_promise_day = 0

◆ escalations

std::uint8_t PlayerRelation::escalations = 0

Times an ignored request escalated.

◆ joined_day

std::int32_t PlayerRelation::joined_day = 0

Arrival at the club, 0 = unknown.

◆ last_talk

std::array<std::int32_t, static_cast<std::size_t>(std::to_underlying(TalkGroup::COUNT))> PlayerRelation::last_talk {}

Day ordinals, 0 = never.

◆ low_morale_weeks

std::uint8_t PlayerRelation::low_morale_weeks = 0

◆ quiet_until

std::int32_t PlayerRelation::quiet_until = 0

No new request before this day.

◆ request

TalkRequest PlayerRelation::request = TalkRequest::None

◆ request_day

std::int32_t PlayerRelation::request_day = 0

◆ trust

float PlayerRelation::trust = 0.0f

-100 (no faith) to 100 (full backing).


The documentation for this struct was generated from the following file: