|
LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
player's internal field status More...
#include <world_model.h>
Public Types | |
| enum | { DIR_CONF_DIVS = 72 } |
Public Member Functions | |
| WorldModel () | |
| initialize member variables | |
| ~WorldModel () | |
| delete dynamically allocated memory | |
| bool | init (const std::string &team_name, const SideID our_side, const int unum, const bool goalie, const double client_version) |
| initialize by team information More... | |
| bool | isValid () const |
| get this world mode is valid or not More... | |
| void | setValid (bool is_valid) |
| set this world mode is valid or not More... | |
| double | clientVersion () const |
| get the client version. More... | |
| const InterceptTable & | interceptTable () const |
| get intercept table More... | |
| const PenaltyKickState * | penaltyKickState () const |
| get penalty kick state More... | |
| const AudioMemory & | audioMemory () const |
| get audio memory More... | |
| void | setAudioMemory (std::shared_ptr< AudioMemory > memory) |
| set new audio memory More... | |
| void | setLocalization (std::shared_ptr< Localization > localization) |
| set new localization method More... | |
| void | setServerParam () |
| set server param. this method have to be called only once just after server_param message received. | |
| void | setOurGoalieUnum (const int unum) |
| set our goalie's uniform number using strategic information or coach message. More... | |
| void | setTheirGoalieUnum (const int unum) |
| set their goalie's uniform number using coach message. More... | |
| void | setOurPlayerType (const int unum, const int id) |
| set teammate player type & reset card status More... | |
| void | setTheirPlayerType (const int unum, const int id) |
| set opponent player type & reset card status More... | |
| void | setCard (const SideID side, const int unum, const Card card) |
| set yellow card information More... | |
| void | setPenaltyKickTakerOrder (const std::vector< int > &unum_set) |
| set current penalty kick taker. More... | |
| void | updateAfterSenseBody (const BodySensor &sense_body, const ActionEffector &act, const GameTime ¤t) |
| update by sense_body. More... | |
| void | updateAfterSee (const VisualSensor &see, const BodySensor &sense_body, const ActionEffector &act, const GameTime ¤t) |
| update by see info More... | |
| void | updateAfterFullstate (const FullstateSensor &fullstate, const ActionEffector &act, const GameTime ¤t) |
| update by fullstate info More... | |
| void | updateGameMode (const GameMode &game_mode, const GameTime ¤t) |
| update current playmode More... | |
| void | setTrainingTime (const GameTime &t) |
| set training start/end time More... | |
| void | setViewMode (const ViewWidth &w, const ViewQuality &q) |
| update self view move More... | |
| void | updateJustBeforeDecision (const ActionEffector &act, const GameTime ¤t) |
| internal update for action decision More... | |
| void | updateJustAfterDecision (const ActionEffector &act) |
| update using internal by command effects. This method is called just before command sending. More... | |
| void | updatePlayer (const PlayerObject *player, const SideID side, const int unum, const bool goalie) |
| set player's side/unum/goalie information More... | |
| const std::string & | teamName () const |
| get our teamname More... | |
| const std::string & | ourTeamName () const |
| SideID | ourSide () const |
| get our team side Id More... | |
| const std::string & | theirTeamName () const |
| get their teamname More... | |
| SideID | theirSide () const |
| get opponent team side Id More... | |
| const GameTime & | time () const |
| get last updated time (== current game time) More... | |
| const GameTime & | senseBodyTime () const |
| get last time updated by sense_body More... | |
| const GameTime & | seeTime () const |
| get last time updated by see More... | |
| const GameTime & | fullstateTime () const |
| get last time updated by fullstate More... | |
| const GameTime & | decisionTime () const |
| get the time value when the last action performed | |
| const TimeStamp & | seeTimeStamp () const |
| get the time stamp when see received | |
| const TimeStamp & | decisionTimeStamp () const |
| get the time stamp when action performed | |
| const GameTime & | lastSetPlayStartTime () const |
| get last setplay type playmode start time More... | |
| int | getSetPlayCount () const |
| get cycle count that setplay type playmode is keeped More... | |
| const GameMode & | gameMode () const |
| get current playmode info More... | |
| const GameTime & | trainingTime () const |
| get training start/end time More... | |
| const SelfObject & | self () const |
| get self info More... | |
| const BallObject & | ball () const |
| get the current ball info More... | |
| const BallObject & | prevBall () const |
| get the previous ball info More... | |
| const PlayerObject::Cont & | teammates () const |
| get teammates. the order is undefined. More... | |
| const PlayerObject::Cont & | opponents () const |
| get opponents(include unknown players). the order is undefined More... | |
| const PlayerObject::Cont & | teammatesFromSelf () const |
| get teammates sorted by distance from self More... | |
| const PlayerObject::Cont & | opponentsFromSelf () const |
| get opponents sorted by distance from self (includes unknown players) More... | |
| const PlayerObject::Cont & | teammatesFromBall () const |
| get teammates sorted by distance from ball More... | |
| const PlayerObject::Cont & | opponentsFromBall () const |
| get opponents sorted by distance from ball (includes unknown players) More... | |
| int | ourGoalieUnum () const |
| get the uniform number of teammate goalie More... | |
| int | theirGoalieUnum () const |
| get the uniform number of opponent goalie More... | |
| const AbstractPlayerObject::Cont & | allPlayers () const |
| get all players includes self. More... | |
| const AbstractPlayerObject::Cont & | ourPlayers () const |
| get all teammate players includes self. More... | |
| const AbstractPlayerObject::Cont & | theirPlayers () const |
| get all opponent players (includes unknown players) More... | |
| const AbstractPlayerObject * | ourPlayer (const int unum) const |
| get a teammate (or self) specified by uniform number More... | |
| const AbstractPlayerObject * | theirPlayer (const int unum) const |
| get an opponent specified by uniform number More... | |
| double | ourRecovery (const int unum) const |
| get (heard) recovery value of the specified player More... | |
| double | ourStaminaCapacity (const int unum) const |
| get (heard) stamina capacity value of the specified player More... | |
| const PlayerObject * | getTeammateNearestToSelf (const int count_thr, const bool with_goalie=true) const |
| get teammate nearest to self with confidence count check More... | |
| const PlayerObject * | getOpponentNearestToSelf (const int count_thr, const bool with_goalie=true) const |
| get opponent nearest to self with accuracy count check More... | |
| double | getDistTeammateNearestToSelf (const int count_thr, const bool with_goalie=true) const |
| get the distance from teammate nearest to self wtth accuracy count More... | |
| double | getDistOpponentNearestToSelf (const int count_thr, const bool with_goalie=true) const |
| get the distance from opponent nearest to self wtth accuracy count More... | |
| const PlayerObject * | getTeammateNearestToBall (const int count_thr, const bool with_goalie=true) const |
| get teammate nearest to with with confidence count check More... | |
| const PlayerObject * | getOpponentNearestToBall (const int count_thr, const bool with_goalie=true) const |
| get opponent nearest to ball with confidence count check More... | |
| double | getDistTeammateNearestToBall (const int count_thr, const bool with_goalie) const |
| get the distance to teammate nearest to ball wtth accuracy count More... | |
| double | getDistOpponentNearestToBall (const int count_thr, const bool with_goalie=true) const |
| get the distance to opponent nearest to ball wtth accuracy count More... | |
| double | offsideLineX () const |
| get estimated offside line x coordinate More... | |
| double | prevOffsideLineX () const |
| get estimated offside line x coordinate More... | |
| int | offsideLineCount () const |
| get the accuracy count for the offside line More... | |
| double | ourOffenseLineX () const |
| our offense line (consider ball pos) More... | |
| double | ourDefenseLineX () const |
| get our defense line (consider ball pos)(offside line for opponent) More... | |
| double | theirOffenseLineX () const |
| get their offense line (consider ball pos) More... | |
| double | theirDefenseLineX () const |
| get their defense line x value (consider ball pos) More... | |
| double | ourOffensePlayerLineX () const |
| get our offense player line (not consder ball pos) More... | |
| double | ourDefensePlayerLineX () const |
| get our defense player line (not consder ball pos) More... | |
| double | theirOffensePlayerLineX () const |
| get their offense player line (not consder ball pos) More... | |
| double | theirDefensePlayerLineX () const |
| get estimated their offense line x value More... | |
| const PlayerObject * | kickableTeammate () const |
| get the estimated kickable teammate if exist. More... | |
| const PlayerObject * | kickableOpponent () const |
| get the estimated kickable opponent if exist. More... | |
| const PlayerObject * | maybeKickableTeammate () const |
| get the estimated kickable teammate (maybe kickable). More... | |
| const PlayerObject * | maybeKickableOpponent () const |
| get the estimated kickable opponent (maybe kickable). More... | |
| SideID | lastKickerSide () const |
| get the estimated last kicker's side More... | |
| int | lastKickerUnum () const |
| get the estimated last kicker's uniform number More... | |
| int | ourPlayerTypeId (const int unum) const |
| get player type Id of teammate More... | |
| const PlayerType * | ourPlayerType (const int unum) const |
| get player type of the specified teammate More... | |
| int | theirPlayerTypeId (const int unum) const |
| get player type Id of opponent More... | |
| const PlayerType * | theirPlayerType (const int unum) const |
| get player type of the specified opponent More... | |
| Card | ourCard (const int unum) const |
| get teammate's yellow card status More... | |
| Card | theirCard (const int unum) const |
| get opponent's yellow card status More... | |
| int | dirCount (const AngleDeg &angle) const |
| get direction confidence count More... | |
| int | dirRangeCount (const AngleDeg &angle, const double &width, int *max_count, int *sum_count, int *ave_count) const |
| get max count, sum of count and average count of angle range More... | |
| const ViewAreaCont & | viewAreaCont () const |
| get view area history container More... | |
| const ViewGridMap & | viewGridMap () const |
| get field grid map that holds observation accuracy count More... | |
| int | getPointCount (const Vector2D &point, const double &dir_thr) const |
| get the specific point accuracy count More... | |
| AbstractPlayerObject::Cont | getPlayers (const PlayerPredicate *predicate) const |
| get the new container of AbstractPlayer matched with the predicate. More... | |
| AbstractPlayerObject::Cont | getPlayers (std::shared_ptr< const PlayerPredicate > predicate) const |
| get the new container of AbstractPlayer matched with the predicate. More... | |
| void | getPlayers (AbstractPlayerObject::Cont &result, const PlayerPredicate *predicate) const |
| get the new container of AbstractPlayer matched with the predicate. More... | |
| void | getPlayers (AbstractPlayerObject::Cont &result, std::shared_ptr< const PlayerPredicate > predicate) const |
| get the new container of AbstractPlayer matched with the predicate. More... | |
| size_t | countPlayer (const PlayerPredicate *predicate) const |
| get the number of players that satisfy an input predicate. More... | |
| size_t | countPlayer (std::shared_ptr< const PlayerPredicate > predicate) const |
| get the number of players that satisfy an input predicate. More... | |
| const AbstractPlayerObject * | getOurGoalie () const |
| get a goalie teammate (include self) More... | |
| const AbstractPlayerObject * | getTheirGoalie () const |
| double | getDistTeammateNearestTo (const Vector2D &point, const int count_thr) const |
| get the distance from input point to the nearest teammate More... | |
| double | getDistOpponentNearestTo (const Vector2D &point, const int count_thr) const |
| get the distance from input point to the nearest opponent More... | |
| const PlayerObject * | getTeammateNearestTo (const Vector2D &point, const int count_thr, double *dist_to_point) const |
| get teammate pointer nearest to point More... | |
| const PlayerObject * | getTeammateNearestTo (const PlayerObject *p, const int count_thr, double *dist_to_point) const |
| get teammate pointer nearest to the specified player More... | |
| const PlayerObject * | getOpponentNearestTo (const Vector2D &point, const int count_thr, double *dist_to_point) const |
| get opponent pointer nearest to point More... | |
| const PlayerObject * | getOpponentNearestTo (const PlayerObject *p, const int count_thr, double *dist_to_point) const |
| get teammate pointer nearest to the specified player More... | |
| template<typename REGION > | |
| bool | existTeammateIn (const REGION ®ion, const int count_thr, const bool with_goalie) const |
| template utility. check if teammate exist in the specified region. More... | |
| template<typename REGION > | |
| bool | existOpponentIn (const REGION ®ion, const int count_thr, const bool with_goalie) const |
| template utility. check if opponent exist in the specified region. More... | |
| template<typename REGION > | |
| size_t | countTeammatesIn (const REGION ®ion, const int count_thr, const bool with_goalie) const |
| count the number of teammate exist in the specified region More... | |
| template<typename REGION > | |
| size_t | countOpponentsIn (const REGION ®ion, const int count_thr, const bool with_goalie) const |
| count the number of opponent exist in the specified region More... | |
Static Public Attributes | |
| static const double | DIST_TOO_FAR |
| long distance | |
| static const std::size_t | MAX_RECORD |
| max record size | |
| static const double | DIR_STEP |
| the angle steps for dir confidence | |
player's internal field status
|
inline |
get all players includes self.
|
inline |
get audio memory
|
inline |
get the current ball info
|
inline |
get the client version.
|
inline |
count the number of opponent exist in the specified region
| region | template parameter. region to be checked |
| count_thr | confdence count threshold for players |
| with_goalie | if true, goalie player is cheked. |
| size_t rcsc::WorldModel::countPlayer | ( | const PlayerPredicate * | predicate | ) | const |
get the number of players that satisfy an input predicate.
| predicate | predicate predicate object for the player condition matching. This have to be a dynamically allocated object. |
| size_t rcsc::WorldModel::countPlayer | ( | std::shared_ptr< const PlayerPredicate > | predicate | ) | const |
get the number of players that satisfy an input predicate.
| predicate | predicate predicate object for the player condition matching. |
|
inline |
count the number of teammate exist in the specified region
| region | template parameter. region to be checked |
| count_thr | confdence count threshold for players |
| with_goalie | if true, goalie player is cheked. |
|
inline |
get direction confidence count
| angle | target direction |
| int rcsc::WorldModel::dirRangeCount | ( | const AngleDeg & | angle, |
| const double & | width, | ||
| int * | max_count, | ||
| int * | sum_count, | ||
| int * | ave_count | ||
| ) | const |
get max count, sum of count and average count of angle range
| angle | center of target angle range |
| width | angle range |
| max_count | pointer to variable of max accuracy count |
| sum_count | pointer to variable of sum of accuracy count |
| ave_count | pointer to variable of average accuracy count |
|
inline |
template utility. check if opponent exist in the specified region.
| region | template parameter. region to be checked |
| count_thr | confdence count threshold for players |
| with_goalie | if true, goalie player is cheked. |
|
inline |
template utility. check if teammate exist in the specified region.
| region | template parameter. region to be checked |
| count_thr | confdence count threshold for players |
| with_goalie | if true, goalie player is cheked. |
|
inline |
get last time updated by fullstate
|
inline |
get current playmode info
|
inline |
get the distance from input point to the nearest opponent
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get the distance to opponent nearest to ball wtth accuracy count
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get the distance from opponent nearest to self wtth accuracy count
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get the distance from input point to the nearest teammate
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get the distance to teammate nearest to ball wtth accuracy count
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get the distance from teammate nearest to self wtth accuracy count
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get teammate pointer nearest to the specified player
| p | pointer to the player |
| count_thr | accuracy count threshold |
| dist_to_point | variable pointer to store the distance from retuned player to point |
|
inline |
get opponent pointer nearest to point
| point | considered point |
| count_thr | accuracy count threshold |
| dist_to_point | variable pointer to store the distance from retuned player to point |
|
inline |
get opponent nearest to ball with confidence count check
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get opponent nearest to self with accuracy count check
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
| const AbstractPlayerObject * rcsc::WorldModel::getOurGoalie | ( | ) | const |
get a goalie teammate (include self)
| void rcsc::WorldModel::getPlayers | ( | AbstractPlayerObject::Cont & | result, |
| const PlayerPredicate * | predicate | ||
| ) | const |
get the new container of AbstractPlayer matched with the predicate.
| result | reference to the result variable |
| predicate | predicate object for the player condition matching. This have to be a dynamically allocated object. |
| void rcsc::WorldModel::getPlayers | ( | AbstractPlayerObject::Cont & | result, |
| std::shared_ptr< const PlayerPredicate > | predicate | ||
| ) | const |
get the new container of AbstractPlayer matched with the predicate.
| cont | reference to the result variable |
| predicate | predicate object for the player condition matching. |
| AbstractPlayerObject::Cont rcsc::WorldModel::getPlayers | ( | const PlayerPredicate * | predicate | ) | const |
get the new container of AbstractPlayer matched with the predicate.
| predicate | predicate object for the player condition matching. This have to be a dynamically allocated object. |
| AbstractPlayerObject::Cont rcsc::WorldModel::getPlayers | ( | std::shared_ptr< const PlayerPredicate > | predicate | ) | const |
get the new container of AbstractPlayer matched with the predicate.
| predicate | predicate object for the player condition matching. |
| int rcsc::WorldModel::getPointCount | ( | const Vector2D & | point, |
| const double & | dir_thr | ||
| ) | const |
get the specific point accuracy count
| point | global cooridinate value of checked point |
| dir_thr | direction threshold for view area |
|
inline |
get cycle count that setplay type playmode is keeped
|
inline |
get teammate pointer nearest to the specified player
| p | pointer to the player |
| count_thr | accuracy count threshold |
| dist_to_point | variable pointer to store the distance from retuned player to point |
|
inline |
get teammate pointer nearest to point
| point | considered point |
| count_thr | confidence count threshold |
| dist_to_point | variable pointer to store the distance from retuned player to point |
|
inline |
get teammate nearest to with with confidence count check
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
|
inline |
get teammate nearest to self with confidence count check
| count_thr | accuracy count threshold |
| with_goalie | include goalie if true |
| const AbstractPlayerObject * rcsc::WorldModel::getTheirGoalie | ( | ) | const |
\get opponent goalie pointer
| bool rcsc::WorldModel::init | ( | const std::string & | team_name, |
| const SideID | our_side, | ||
| const int | unum, | ||
| const bool | goalie, | ||
| const double | client_version | ||
| ) |
initialize by team information
| team_name | our team name string |
| our_side | our side ID |
| unum | my uniform number |
| goalie | true if I am goalie |
| client_version | the client protocol version |
This method is called just after receive init reply
|
inline |
get intercept table
| bool rcsc::WorldModel::isValid | ( | ) | const |
get this world mode is valid or not
|
inline |
get the estimated kickable opponent if exist.
|
inline |
get the estimated kickable teammate if exist.
|
inline |
get the estimated last kicker's side
|
inline |
get the estimated last kicker's uniform number
|
inline |
get last setplay type playmode start time
|
inline |
get the estimated kickable opponent (maybe kickable).
|
inline |
get the estimated kickable teammate (maybe kickable).
|
inline |
get the accuracy count for the offside line
|
inline |
get estimated offside line x coordinate
|
inline |
get opponents(include unknown players). the order is undefined
|
inline |
get opponents sorted by distance from ball (includes unknown players)
|
inline |
get opponents sorted by distance from self (includes unknown players)
|
inline |
get teammate's yellow card status
| unum | uniform number |
|
inline |
get our defense line (consider ball pos)(offside line for opponent)
|
inline |
get our defense player line (not consder ball pos)
|
inline |
get the uniform number of teammate goalie
|
inline |
our offense line (consider ball pos)
|
inline |
get our offense player line (not consder ball pos)
|
inline |
get a teammate (or self) specified by uniform number
| unum | wanted player's uniform number |
|
inline |
get all teammate players includes self.
| const PlayerType * rcsc::WorldModel::ourPlayerType | ( | const int | unum | ) | const |
get player type of the specified teammate
| unum | target teammate uniform number |
|
inline |
get player type Id of teammate
| unum | target teammate uniform number |
|
inline |
get (heard) recovery value of the specified player
|
inline |
get our team side Id
|
inline |
get (heard) stamina capacity value of the specified player
| const PenaltyKickState * rcsc::WorldModel::penaltyKickState | ( | ) | const |
get penalty kick state
|
inline |
get the previous ball info
|
inline |
get estimated offside line x coordinate
|
inline |
get last time updated by see
|
inline |
get self info
|
inline |
get last time updated by sense_body
| void rcsc::WorldModel::setAudioMemory | ( | std::shared_ptr< AudioMemory > | memory | ) |
set new audio memory
| memory | pointer to the memory instance. This must be a dynamically allocated object. |
set yellow card information
| side | punished player's side |
| unum | punished player's unum |
| card | card type |
| void rcsc::WorldModel::setLocalization | ( | std::shared_ptr< Localization > | localization | ) |
set new localization method
| localization | pointer to the localization instance. |
| void rcsc::WorldModel::setOurGoalieUnum | ( | const int | unum | ) |
set our goalie's uniform number using strategic information or coach message.
| unum | uniform number |
| void rcsc::WorldModel::setOurPlayerType | ( | const int | unum, |
| const int | id | ||
| ) |
set teammate player type & reset card status
| unum | uniform number of changed teammate |
| id | player type ID |
| void rcsc::WorldModel::setPenaltyKickTakerOrder | ( | const std::vector< int > & | unum_set | ) |
set current penalty kick taker.
| order | order number [0,10] |
| unum | kick taker's uniform number |
| void rcsc::WorldModel::setTheirGoalieUnum | ( | const int | unum | ) |
set their goalie's uniform number using coach message.
| unum | uniform number |
| void rcsc::WorldModel::setTheirPlayerType | ( | const int | unum, |
| const int | id | ||
| ) |
set opponent player type & reset card status
| unum | uniform number of changed opponent |
| id | player type ID |
|
inline |
set training start/end time
| t | game time |
| void rcsc::WorldModel::setValid | ( | bool | is_valid | ) |
set this world mode is valid or not
| is_valid | value to be set |
|
inline |
update self view move
| w | new view width |
| q | new view quality |
|
inline |
get teammates. the order is undefined.
|
inline |
get teammates sorted by distance from ball
|
inline |
get teammates sorted by distance from self
|
inline |
get our teamname
|
inline |
get opponent's yellow card status
| unum | uniform number |
|
inline |
get their defense line x value (consider ball pos)
|
inline |
get estimated their offense line x value
|
inline |
get the uniform number of opponent goalie
|
inline |
get their offense line (consider ball pos)
|
inline |
get their offense player line (not consder ball pos)
|
inline |
get an opponent specified by uniform number
| unum | wanted player's uniform number |
|
inline |
get all opponent players (includes unknown players)
| const PlayerType * rcsc::WorldModel::theirPlayerType | ( | const int | unum | ) | const |
get player type of the specified opponent
| unum | target opponent uniform number |
|
inline |
get player type Id of opponent
| unum | target teammate uniform number |
|
inline |
get opponent team side Id
|
inline |
get their teamname
|
inline |
get last updated time (== current game time)
|
inline |
get training start/end time
| void rcsc::WorldModel::updateAfterFullstate | ( | const FullstateSensor & | fullstate, |
| const ActionEffector & | act, | ||
| const GameTime & | current | ||
| ) |
update by fullstate info
| fullstate | analyzed fullstate info |
| act | action effector |
| current | current game time |
This method is called just after fullstate message receive
| void rcsc::WorldModel::updateAfterSee | ( | const VisualSensor & | see, |
| const BodySensor & | sense_body, | ||
| const ActionEffector & | act, | ||
| const GameTime & | current | ||
| ) |
update by see info
| see | analyzed see info |
| sense_body | analyzed sense_body info |
| act | action effector |
| current | current game time |
This method is called just after see message receive
| void rcsc::WorldModel::updateAfterSenseBody | ( | const BodySensor & | sense_body, |
| const ActionEffector & | act, | ||
| const GameTime & | current | ||
| ) |
update by sense_body.
| sense_body | analyzed sense_body info |
| act | action effector |
| current | current game time |
This method is called just after sense_body message receive
update current playmode
| game_mode | playmode info |
| current | current game time |
This method is called after heared referee message
| void rcsc::WorldModel::updateJustAfterDecision | ( | const ActionEffector & | act | ) |
update using internal by command effects. This method is called just before command sending.
| act | ActionEffector object. |
| void rcsc::WorldModel::updateJustBeforeDecision | ( | const ActionEffector & | act, |
| const GameTime & | current | ||
| ) |
internal update for action decision
| act | action effector |
| current | current game time |
This method is called just before action decision to update and adjust world model.
| void rcsc::WorldModel::updatePlayer | ( | const PlayerObject * | player, |
| const SideID | side, | ||
| const int | unum, | ||
| const bool | goalie | ||
| ) |
set player's side/unum/goalie information
| player | player object pointer |
| unum | new uniform number |
| goalie | goalie flag |
|
inline |
get view area history container
|
inline |
get field grid map that holds observation accuracy count