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

#include <match_engine.h>

Public Attributes

std::uint64_t step = 0
 
MatchCommandType type = MatchCommandType::STRATEGY
 
bool homeTeam = true
 
Strategy strategy
 
MatchShout shout = MatchShout::ENCOURAGE
 
std::vector< Vector2F > formation
 
PlayerID player = 0
 
PlayerID incoming = 0
 
std::optional< std::size_t > slot
 
int talkHalf = 1
 
float talkModifier = 0.0f
 

Detailed Description

A tactical change made from outside the engine (the touchline), stamped with the fixed step it was made after. Only the fields of its type are used.

Member Data Documentation

◆ formation

std::vector<Vector2F> MatchCommandRecord::formation

Outfield slot positions in lineup coordinates (FORMATION).

◆ homeTeam

bool MatchCommandRecord::homeTeam = true

◆ incoming

PlayerID MatchCommandRecord::incoming = 0

Bench player coming on (SUBSTITUTION).

◆ player

PlayerID MatchCommandRecord::player = 0

Player moved (MOVE_TO_SLOT) or replaced (SUBSTITUTION).

◆ shout

MatchShout MatchCommandRecord::shout = MatchShout::ENCOURAGE

◆ slot

std::optional<std::size_t> MatchCommandRecord::slot

Target slot (MOVE_TO_SLOT, optional for SUBSTITUTION).

◆ step

std::uint64_t MatchCommandRecord::step = 0

Value of MatchEngine::getSimulatedSteps() when the change was made.

◆ strategy

Strategy MatchCommandRecord::strategy

◆ talkHalf

int MatchCommandRecord::talkHalf = 1

Half (1 or 2) and modifier of a TEAM_TALK.

◆ talkModifier

float MatchCommandRecord::talkModifier = 0.0f

◆ type

MatchCommandType MatchCommandRecord::type = MatchCommandType::STRATEGY

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