AITools
 All Data Structures Functions
Public Member Functions | Data Fields | Static Public Attributes
aiTools::State Class Reference

#include <AITools.h>

Public Member Functions

auto getFeatureVec (gameModel::TeamSide side) const -> std::array< double, FEATURE_VEC_LEN >
 
State clone () const
 

Data Fields

std::shared_ptr
< gameModel::Environment > 
env
 
unsigned int roundNumber = 1
 
communication::messages::types::PhaseType currentPhase = communication::messages::types::PhaseType::BALL_PHASE
 
gameController::ExcessLength overtimeState = gameController::ExcessLength::None
 
unsigned int overTimeCounter = 0
 
bool goalScoredThisRound = false
 
std::unordered_set
< communication::messages::types::EntityId > 
playersUsedLeft = {}
 
std::unordered_set
< communication::messages::types::EntityId > 
playersUsedRight = {}
 
std::array< unsigned int, 5 > availableFansLeft = {}
 
std::array< unsigned int, 5 > availableFansRight = {}
 

Static Public Attributes

static constexpr auto FEATURE_VEC_LEN = 122
 

Detailed Description

Represents a complete state in the game including positions of objects and other useful data

Member Function Documentation

State aiTools::State::clone ( ) const

Returns a deep copy of itself

Returns
auto aiTools::State::getFeatureVec ( gameModel::TeamSide  side) const -> std::array<double, FEATURE_VEC_LEN>

Computes a feature vecor from its members

Parameters
sideside of the actin AI
Returns
array of doubles

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