#include <cycle_data.h>
Public 型 | |
typedef std::vector< PlayerT > | PlayerCont |
Public メソッド | |
CycleData () | |
init variable with initial game status | |
void | assign (const GlobalVisualSensor &see_global, const GameMode &game_mode, const GameTime ¤t) |
set data using sensory information | |
const GameTime & | time () const |
get game cycle | |
const GameMode & | gameMode () const |
get server playmode | |
const BallT & | ball () const |
get ball info | |
const PlayerCont & | playersLeft () const |
get left players container | |
const PlayerCont & | playersRight () const |
get right team players container | |
double | getOffsideLineForLeft () const |
calculate the offside line x for the left team (= right team's defense line) | |
double | getOffsideLineForRight () const |
calculate the offside line x for the right team (= right team's defense line) | |
double | getOffsideLineX (const SideID my_side) const |
calculate the offside line x for the specified side. | |
BallStatus | getBallStatus () const |
get the current ball position status | |
const PlayerT * | getPlayerNearestTo (const PlayerCont &players, const Vector2D &point) const |
get player nearest to the point | |
const PlayerT * | getLeftPlayerNearestTo (const Vector2D &point) const |
get left player nearest to the point | |
const PlayerT * | getRightPlayerNearestTo (const Vector2D &point) const |
get left player nearest to the point | |
std::ostream & | print (std::ostream &os) const |
put all data to the output stream | |
構成 | |
struct | BallT |
global ball info. [詳細] | |
struct | PlayerT |
global player info [詳細] |
void rcsc::CycleData::assign | ( | const GlobalVisualSensor & | see_global, | |
const GameMode & | game_mode, | |||
const GameTime & | current | |||
) |
set data using sensory information
see_global | analyzed sensory visual data | |
game_mode | analyzed current game status | |
current | current game time |
const GameTime& rcsc::CycleData::time | ( | ) | const [inline] |
const GameMode& rcsc::CycleData::gameMode | ( | ) | const [inline] |
get server playmode
const BallT& rcsc::CycleData::ball | ( | ) | const [inline] |
get ball info
const PlayerCont& rcsc::CycleData::playersLeft | ( | ) | const [inline] |
get left players container
const PlayerCont& rcsc::CycleData::playersRight | ( | ) | const [inline] |
get right team players container
double rcsc::CycleData::getOffsideLineForLeft | ( | ) | const |
calculate the offside line x for the left team (= right team's defense line)
double rcsc::CycleData::getOffsideLineForRight | ( | ) | const |
calculate the offside line x for the right team (= right team's defense line)
double rcsc::CycleData::getOffsideLineX | ( | const SideID | my_side | ) | const |
calculate the offside line x for the specified side.
BallStatus rcsc::CycleData::getBallStatus | ( | ) | const |
get the current ball position status
const CycleData::PlayerT * rcsc::CycleData::getPlayerNearestTo | ( | const PlayerCont & | players, | |
const Vector2D & | point | |||
) | const |
get player nearest to the point
players | candidate player container | |
point | target point |
get left player nearest to the point
point | target point |
get left player nearest to the point
point | target point |
std::ostream & rcsc::CycleData::print | ( | std::ostream & | os | ) | const |
put all data to the output stream
os | reference to the output stream |