Player12
An open source football management simulator
Loading...
Searching...
No Matches
OppositionPlan Class Reference

Instructions against upcoming opponents, per opponent and player (OppositionInstruction is declared in model/tactics.h). The managed club's Strategy carries them into the match engine (see Strategy::setOppositionOrders and GameController). More...

#include <opposition_report.h>

Public Member Functions

void set (TeamID opponent, PlayerID player, OppositionInstruction instruction)
 
OppositionInstruction get (TeamID opponent, PlayerID player) const
 
std::vector< OppositionOrder > forOpponent (TeamID opponent) const
 
void clear (TeamID opponent)
 
const std::vector< OppositionOrder > & all () const
 
void restore (const std::vector< OppositionOrder > &restored)
 

Private Attributes

std::vector< OppositionOrder > orders
 

Detailed Description

Instructions against upcoming opponents, per opponent and player (OppositionInstruction is declared in model/tactics.h). The managed club's Strategy carries them into the match engine (see Strategy::setOppositionOrders and GameController).

Member Function Documentation

◆ all()

const std::vector< OppositionOrder > & OppositionPlan::all ( ) const
inline

◆ clear()

void OppositionPlan::clear ( TeamID  opponent)

Drops every instruction against opponent (after the match).

◆ forOpponent()

std::vector< OppositionOrder > OppositionPlan::forOpponent ( TeamID  opponent) const

Instructions against opponent.

◆ get()

OppositionInstruction OppositionPlan::get ( TeamID  opponent,
PlayerID  player 
) const

◆ restore()

void OppositionPlan::restore ( const std::vector< OppositionOrder > &  restored)

◆ set()

void OppositionPlan::set ( TeamID  opponent,
PlayerID  player,
OppositionInstruction  instruction 
)

Sets (None clears) the instruction for a player of opponent.

Member Data Documentation

◆ orders

std::vector<OppositionOrder> OppositionPlan::orders
private

The documentation for this class was generated from the following files: