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

Legacy grid-based strategy weights, retained by the Strategy API. More...

#include <strategy.h>

Public Attributes

float attackWeight = 0.5f
 
float defenseWeight = 0.5f
 
int movementRadius = 1
 

Detailed Description

Legacy grid-based strategy weights, retained by the Strategy API.

getAttackWeight()/getDefenseWeight() evaluate these within movementRadius grid cells. The live MatchEngine does not call those methods: extend its player behavior through tactical slot instructions and RoleProfile instead.

Member Data Documentation

◆ attackWeight

float RoleWeights::attackWeight = 0.5f

Tendency to engage in offensive actions

◆ defenseWeight

float RoleWeights::defenseWeight = 0.5f

Tendency to engage in defensive actions

◆ movementRadius

int RoleWeights::movementRadius = 1

Distance from lineup position


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