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

Role, duty and in-possession spot of one outfield slot. Slots are matched by their out-of-possession position (anchor, lineup coordinates: own goal at x = 0), so they survive reordering of the lineup and return when a formation is used again. More...

#include <tactics.h>

Public Attributes

Vector2F anchor {0.0f, 0.0f}
 
TacticalRole role = TacticalRole::Standard
 
RoleDuty duty = RoleDuty::Support
 
Vector2F possessionOffset {0.0f, 0.0f}
 

Detailed Description

Role, duty and in-possession spot of one outfield slot. Slots are matched by their out-of-possession position (anchor, lineup coordinates: own goal at x = 0), so they survive reordering of the lineup and return when a formation is used again.

Member Data Documentation

◆ anchor

Vector2F SlotInstruction::anchor {0.0f, 0.0f}

◆ duty

RoleDuty SlotInstruction::duty = RoleDuty::Support

◆ possessionOffset

Vector2F SlotInstruction::possessionOffset {0.0f, 0.0f}

Shift of the slot while his side has the ball (lineup coordinates).

◆ role

TacticalRole SlotInstruction::role = TacticalRole::Standard

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