LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::InterceptTable Class Reference

interception info holder for all players More...

#include <intercept_table.h>

Public Member Functions

 InterceptTable ()
 init member variables, reserve cache vector memory
 
virtual ~InterceptTable ()
 destructor. nothing to do
 
void update (const WorldModel &wm)
 update table information More...
 
void hearTeammate (const WorldModel &wm, const int unum, const int step)
 update teammate intercept information by heard information More...
 
void hearOpponent (const WorldModel &wm, const int unum, const int step)
 update opponent intercept information by heard information More...
 
int selfStep () const
 get minimal ball gettable step for self without stamina exhaust More...
 
int selfExhaustStep () const
 get minimal ball gettable step for self with stamina exhaust More...
 
int teammateStep () const
 get minimal ball gettable step for teammate More...
 
int secondTeammateStep () const
 get the ball access step for the second teammate More...
 
int ourGoalieStep () const
 get the ball access step for the teammate goalie More...
 
int opponentStep () const
 get minimal ball gettable step for opponent More...
 
int secondOpponentStep () const
 get the ball access step for the second opponent More...
 
const PlayerObjectfirstTeammate () const
 get the teammate object fastest to the ball More...
 
const PlayerObjectsecondTeammate () const
 get the teammate object second fastest to the ball More...
 
const PlayerObjectfirstOpponent () const
 get the oppnent object fastest to the ball More...
 
const PlayerObjectsecondOpponent () const
 get the oppnent object second fastest to the ball More...
 
const std::vector< Intercept > & selfResults () const
 get self interception cache container More...
 
const std::map< const AbstractPlayerObject *, int > & playerMap () const
 get all players' intercept step container. More...
 

Detailed Description

interception info holder for all players

Member Function Documentation

◆ firstOpponent()

const PlayerObject * rcsc::InterceptTable::firstOpponent ( ) const
inline

get the oppnent object fastest to the ball

Returns
const pointer to the PlayerObject. if not exist such a player, return NULL

◆ firstTeammate()

const PlayerObject * rcsc::InterceptTable::firstTeammate ( ) const
inline

get the teammate object fastest to the ball

Returns
const pointer to the PlayerObject. if not exist such a player, return NULL

◆ hearOpponent()

void rcsc::InterceptTable::hearOpponent ( const WorldModel wm,
const int  unum,
const int  step 
)

update opponent intercept information by heard information

Parameters
wmconst reference to the world model
unumuniform number
stepinterception step

◆ hearTeammate()

void rcsc::InterceptTable::hearTeammate ( const WorldModel wm,
const int  unum,
const int  step 
)

update teammate intercept information by heard information

Parameters
wmconst reference to the world model
unumuniform number
stepinterception step

◆ opponentStep()

int rcsc::InterceptTable::opponentStep ( ) const
inline

get minimal ball gettable step for opponent

Returns
step value to get the ball

◆ ourGoalieStep()

int rcsc::InterceptTable::ourGoalieStep ( ) const
inline

get the ball access step for the teammate goalie

Returns
step value to get the ball

◆ playerMap()

const std::map< const AbstractPlayerObject *, int > & rcsc::InterceptTable::playerMap ( ) const
inline

get all players' intercept step container.

Returns
map container. key: pointer, value: step value

◆ secondOpponent()

const PlayerObject * rcsc::InterceptTable::secondOpponent ( ) const
inline

get the oppnent object second fastest to the ball

Returns
const pointer to the PlayerObject. if not exist such a player, return NULL

◆ secondOpponentStep()

int rcsc::InterceptTable::secondOpponentStep ( ) const
inline

get the ball access step for the second opponent

Returns
step value to get the ball

◆ secondTeammate()

const PlayerObject * rcsc::InterceptTable::secondTeammate ( ) const
inline

get the teammate object second fastest to the ball

Returns
const pointer to the PlayerObject. if not exist such a player, return NULL

◆ secondTeammateStep()

int rcsc::InterceptTable::secondTeammateStep ( ) const
inline

get the ball access step for the second teammate

Returns
step value to get the ball

◆ selfExhaustStep()

int rcsc::InterceptTable::selfExhaustStep ( ) const
inline

get minimal ball gettable step for self with stamina exhaust

Returns
step value to get the ball

◆ selfResults()

const std::vector< Intercept > & rcsc::InterceptTable::selfResults ( ) const
inline

get self interception cache container

Returns
const reference to the interception info container

◆ selfStep()

int rcsc::InterceptTable::selfStep ( ) const
inline

get minimal ball gettable step for self without stamina exhaust

Returns
step value to get the ball

◆ teammateStep()

int rcsc::InterceptTable::teammateStep ( ) const
inline

get minimal ball gettable step for teammate

Returns
step value to get the ball

◆ update()

void rcsc::InterceptTable::update ( const WorldModel wm)

update table information

Parameters
wmconst reference to the world model

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