クラス rcsc::CycleData

one cycle global field info snapshot [詳細]

#include <cycle_data.h>

すべてのメンバ一覧

Public 型

typedef std::vector< PlayerTPlayerCont

Public メソッド

 CycleData ()
 init variable with initial game status
void assign (const GlobalVisualSensor &see_global, const GameMode &game_mode, const GameTime &current)
 set data using sensory information
const GameTimetime () const
 get game cycle
const GameModegameMode () const
 get server playmode
const BallTball () 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 PlayerTgetPlayerNearestTo (const PlayerCont &players, const Vector2D &point) const
 get player nearest to the point
const PlayerTgetLeftPlayerNearestTo (const Vector2D &point) const
 get left player nearest to the point
const PlayerTgetRightPlayerNearestTo (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 [詳細]


説明

one cycle global field info snapshot


関数

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]

get game cycle

戻り値:
const reference to the GameTime object

const GameMode& rcsc::CycleData::gameMode (  )  const [inline]

get server playmode

戻り値:
playmode type

const BallT& rcsc::CycleData::ball (  )  const [inline]

get ball info

戻り値:
const reference to the ball object

const PlayerCont& rcsc::CycleData::playersLeft (  )  const [inline]

get left players container

戻り値:
const reference to the player object container

const PlayerCont& rcsc::CycleData::playersRight (  )  const [inline]

get right team players container

戻り値:
const reference to the player object container

double rcsc::CycleData::getOffsideLineForLeft (  )  const

calculate the offside line x for the left team (= right team's defense line)

戻り値:
offside line x value

double rcsc::CycleData::getOffsideLineForRight (  )  const

calculate the offside line x for the right team (= right team's defense line)

戻り値:
offside line x value

double rcsc::CycleData::getOffsideLineX ( const SideID  my_side  )  const

calculate the offside line x for the specified side.

戻り値:
offside line x value

BallStatus rcsc::CycleData::getBallStatus (  )  const

get the current ball position status

戻り値:
ball status type

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
戻り値:
const pointer to the player object

const PlayerT* rcsc::CycleData::getLeftPlayerNearestTo ( const Vector2D point  )  const [inline]

get left player nearest to the point

引数:
point target point
戻り値:
const pointer to the player object

const PlayerT* rcsc::CycleData::getRightPlayerNearestTo ( const Vector2D point  )  const [inline]

get left player nearest to the point

引数:
point target point
戻り値:
const pointer to the player object

std::ostream & rcsc::CycleData::print ( std::ostream &  os  )  const

put all data to the output stream

引数:
os reference to the output stream
戻り値:
reference to the output stream


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:25 2008に生成されました。  doxygen 1.5.0