クラス rcsc::InterceptTable

interception info holder for all players [詳細]

#include <intercept_table.h>

すべてのメンバ一覧

Public メソッド

 InterceptTable (const WorldModel &world)
 init member variables, reserve cache vector memory
 ~InterceptTable ()
 destructor. nothing to do
void update ()
 recreate all interception info
void hearTeammate (const int unum, const int cycle)
 set teammate intercept info mainly by heard info
void hearOpponent (const int unum, const int cycle)
 set opponent intercept info mainly by heard info
int selfReachCycle () const
 get minimal ball gettable cycle for self without stamina exaust
int selfExhaustReachCycle () const
 get minimal ball gettable cycle for self with stamina exaust
int teammateReachCycle () const
 get minimal ball gettable cycle for teammate
int opponentReachCycle () const
 get minimal ball gettable cycle for opponent
const PlayerObjectfastestTeammate () const
 get fastest ball gettable teammate object
const PlayerObjectfastestOpponent () const
 get fastest ball gettable oppnent object
const std::vector< InterceptInfo > & selfCache () const
 get self interception cache container
Vector2D selfInterceptPoint () const
 get ball gettable point for self
bool isSelfFastestPlayer () const
 check if self is the fastest ball bettable player
bool isOurTeamBallPossessor () const
 check if our team has the ball.


説明

interception info holder for all players


関数

void rcsc::InterceptTable::hearTeammate ( const int  unum,
const int  cycle 
)

set teammate intercept info mainly by heard info

引数:
unum uniform number
cycle interception cycle

void rcsc::InterceptTable::hearOpponent ( const int  unum,
const int  cycle 
)

set opponent intercept info mainly by heard info

引数:
unum uniform number
cycle interception cycle

int rcsc::InterceptTable::selfReachCycle (  )  const [inline]

get minimal ball gettable cycle for self without stamina exaust

戻り値:
cycle value to get the ball

int rcsc::InterceptTable::selfExhaustReachCycle (  )  const [inline]

get minimal ball gettable cycle for self with stamina exaust

戻り値:
cycle value to get the ball

int rcsc::InterceptTable::teammateReachCycle (  )  const [inline]

get minimal ball gettable cycle for teammate

戻り値:
cycle value to get the ball

int rcsc::InterceptTable::opponentReachCycle (  )  const [inline]

get minimal ball gettable cycle for opponent

戻り値:
cycle value to get the ball

const PlayerObject* rcsc::InterceptTable::fastestTeammate (  )  const [inline]

get fastest ball gettable teammate object

戻り値:
const pointer to the PlayerObject. if not exist such a player, return NULL

const PlayerObject* rcsc::InterceptTable::fastestOpponent (  )  const [inline]

get fastest ball gettable oppnent object

戻り値:
const pointer to the PlayerObject. if not exist such a player, return NULL

const std::vector< InterceptInfo >& rcsc::InterceptTable::selfCache (  )  const [inline]

get self interception cache container

戻り値:
const reference to the interception info container

Vector2D rcsc::InterceptTable::selfInterceptPoint (  )  const

get ball gettable point for self

戻り値:
ball gettaable point

bool rcsc::InterceptTable::isSelfFastestPlayer (  )  const

check if self is the fastest ball bettable player

戻り値:
true if estimated self is the fastest player

bool rcsc::InterceptTable::isOurTeamBallPossessor (  )  const

check if our team has the ball.

戻り値:
true if estimated our team has the ball.


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