亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? playersettings.cpp

?? RoboCup仿真組世界冠軍源代碼
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/*Copyright (c) 2000-2003, Jelle Kok, University of AmsterdamAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:1. Redistributions of source code must retain the above copyright notice, thislist of conditions and the following disclaimer.2. Redistributions in binary form must reproduce the above copyright notice,this list of conditions and the following disclaimer in the documentationand/or other materials provided with the distribution.3. Neither the name of the University of Amsterdam nor the names of itscontributors may be used to endorse or promote products derived from thissoftware without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*//*! \file PlayerSettings.cpp<pre><b>File:</b>          PlayerSettings.cpp<b>Project:</b>       Robocup Soccer Simulation Team: UvA Trilearn<b>Authors:</b>       Jelle Kok<b>Created:</b>       28/11/2000<b>Last Revision:</b> $ID$<b>Contents:</b>      Code file for class PlayerSettings. It contains all the               member method implementations of the PlayerSettings class.               This class contains all the settings that are important               for the client (agent) to determine its actions.<hr size=2><h2><b>Changes</b></h2><b>Date</b>             <b>Author</b>          <b>Comment</b>28/11/2000       Jelle Kok       Initial version created</pre>*/#include "PlayerSettings.h"/*****************************************************************************//********************* CLASS PlayerSettings **********************************//*****************************************************************************//*! This method initializes all client settings and adds these to the generic    values class with the effect that they can referenced by their textual    name. */PlayerSettings::PlayerSettings( ) : GenericValues("PlayerSettings", 27){  dPlayerConfThr         = 0.88; // threshold below player info is illegal  dPlayerHighConfThr     = 0.92; // threshold above which player info is high  dBallConfThr           = 0.90; // threshold below which ball info is illegal  dPlayerDistTolerance   = 7.5;  // distance when unknownplayer is mapped  dPlayerWhenToTurnAngle = 7.0;  // angle when to turn when moving  dPlayerWhenToKick      = 0.85; // % of kick power rate when kick is performed  iPlayerWhenToIntercept = 30;   // maximum number of interception cycles  dClearBallDist         = 5.0;  // dist before penalty area to clear ball to  dClearBallOppMaxDist   = 30.0; // radius in which opp in clear ball has to be  dClearBallToSideAngle  = 17.0; // minimum angle for clear ball to side  dConeWidth             = 0.5;  // cone width to check for opponents in pass  dPassEndSpeed          = 1.2;  // end speed for ball when passed to teammate  dFastPassEndSpeed      = 1.8;  // end speed for ball when passed fast  dPassExtraX            = 0.0;  // extra x value added to player passing pos  dFractionWaitNoSee     = 0.61;  // % of cycle to wait in cycle with no see  dFractionWaitSeeBegin  = 0.70; // % to wait in cycle with see in begin  dFractionWaitSeeEnd    = 0.85; // % to wait in cycle with see in 2nd  half  dMarkDistance          = 5.0;  // mark distance to a player  dStratAreaRadius       = 5.0;  // radius around strat pos to find optimal pos  dShootRiskProbability  = 0.88; // prob. of scoring when shooting with risk  iCyclesCatchWait       = 20;   // cycles to wait after a catch  iServerTimeOut         = 9;    // seconds before server is assumed dead  dDribbleAngThr         = 20.0; // angle thr. to turn to ball before dribbling  dTurnWithBallAngThr    = 45.0; // angle threshold to kick ball  dTurnWithBallFreezeThr = 0.2;  // ball speed threshold to freeze ball  iInitialFormation      = 2;    // initial formation number  dMaxYPercentage        = 0.8;  // max y in strat. pos (percentage of field)  // add all the settings and link text string to variable  addSetting( "player_conf_thr"     , &dPlayerConfThr,  GENERIC_VALUE_DOUBLE );  addSetting( "player_high_conf_thr", &dPlayerHighConfThr,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "ball_conf_thr"      ,  &dBallConfThr,    GENERIC_VALUE_DOUBLE );  addSetting( "player_dist_tolerance",&dPlayerDistTolerance,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "player_when_to_turn",  &dPlayerWhenToTurnAngle,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "player_when_to_kick", &dPlayerWhenToKick,GENERIC_VALUE_DOUBLE );  addSetting( "player_when_to_intercept",&iPlayerWhenToIntercept,                                                        GENERIC_VALUE_INTEGER);  addSetting( "clear_ball_dist"    ,  &dClearBallDist,  GENERIC_VALUE_DOUBLE );  addSetting( "clear_ball_opp_max_dist", &dClearBallOppMaxDist,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "clear_ball_side_angle", &dClearBallToSideAngle,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "cone_width"         ,  &dConeWidth,      GENERIC_VALUE_DOUBLE );  addSetting( "pass_end_speed"     ,  &dPassEndSpeed,   GENERIC_VALUE_DOUBLE );  addSetting( "fast_pass_end_speed", &dFastPassEndSpeed,GENERIC_VALUE_DOUBLE );  addSetting( "pass_extra_x"       ,  &dPassExtraX,     GENERIC_VALUE_DOUBLE );  addSetting( "wait_no_see"        ,&dFractionWaitNoSee,GENERIC_VALUE_DOUBLE );  addSetting( "wait_see_begin" , &dFractionWaitSeeBegin,GENERIC_VALUE_DOUBLE );  addSetting( "wait_see_end"    , &dFractionWaitSeeEnd, GENERIC_VALUE_DOUBLE );  addSetting( "mark_distance"      ,  &dMarkDistance,   GENERIC_VALUE_DOUBLE );  addSetting( "strat_area_radius"  ,  &dStratAreaRadius,GENERIC_VALUE_DOUBLE );  addSetting( "shoot_risk_prob", &dShootRiskProbability,GENERIC_VALUE_DOUBLE );  addSetting( "cycles_catch_wait"  ,  &iCyclesCatchWait,GENERIC_VALUE_INTEGER);  addSetting( "server_time_out"    ,  &iServerTimeOut,  GENERIC_VALUE_INTEGER);  addSetting( "dribble_ang_thr"    ,  &dDribbleAngThr,  GENERIC_VALUE_DOUBLE );  addSetting( "turn_with_ball_ang_thr" , &dTurnWithBallAngThr,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "turn_with_ball_freeze_thr" , &dTurnWithBallFreezeThr,                                                        GENERIC_VALUE_DOUBLE );  addSetting( "initial_formation"  , &iInitialFormation,GENERIC_VALUE_INTEGER);  addSetting( "max_y_percentage"   , &dMaxYPercentage,  GENERIC_VALUE_DOUBLE );}/*! This method returns the confidence threshold below which player information    is assumed illegal   \return player confidence threshold */double PlayerSettings::getPlayerConfThr( ) const{  return dPlayerConfThr;}/*! This method sets the confidence threshold below which player information is    assumed illegal    \param d player confidence threshold in range [0..1]    \return boolean indicating whether update was successful */bool PlayerSettings::setPlayerConfThr( double d ){  dPlayerConfThr = d;  return true;}/*! This method returns the confidence threshold above which player information    is assumed very good.    \return player high confidence threshold */double PlayerSettings::getPlayerHighConfThr( ) const{  return dPlayerHighConfThr;}/*! This method sets the confidence threshold above which player information is    assumed very good    \param d player high confidence threshold in range [0..1]    \return boolean indicating whether update was successful */bool PlayerSettings::setPlayerHighConfThr( double d ){  dPlayerHighConfThr = d;  return true;}/*! This method returns the confidence threshold below which ball information    is assumed illegal.    \return ball confidence threshold */double PlayerSettings::getBallConfThr( ) const{  return dBallConfThr;}/*! This method sets the confidence threshold below which ball information is    assumed illegal    \param d ball confidence threshold in range [0..1]    \return boolean indicating whether update was successful */bool PlayerSettings::setBallConfThr( double d ){  dBallConfThr = d;  return true;}/*! This method returns the radius in which a player has to be to be    mapped from unknown to known player    \return radius in which player is assumed same player. */double PlayerSettings::getPlayerDistTolerance( ) const{  return dPlayerDistTolerance;}/*! This method sets the radius in which a player has to be to be    mapped from unknown to known player    \param d radius (>0) in which player is assumed same player    \return boolean indicating whether update was successful */bool PlayerSettings::setPlayerDistTolerance( double d ){  dPlayerDistTolerance = d;  return true;}/*!This method returns the angle when a player determines to turn to a point   first before moving towards it.   \return global angle when player first moves before moving towards point*/double PlayerSettings::getPlayerWhenToTurnAngle( ) const{  return dPlayerWhenToTurnAngle;}/*! This method sets the angle when a player determines to turn to a point    first before moving towards it.    \param d global angle when player turns in move (interval [0..360]).    \return boolean indicating whether update was successful */bool PlayerSettings::setPlayerWhenToTurnAngle( double d ){  dPlayerWhenToTurnAngle = d;  return true;}/*! This method returns the percentage of the maximal acceleration in which    case a kick should still be performed. This value    is needed to determine whether the ball should be better positioned or    should be kicked when the ball should be kicked hard.    If it is possible to accelerate the ball with a higher    percentage than the returned percentage the kick is performed, in all other    cases the ball is positioned better.    \return percentage of ball acceleration when kick should be performed */double PlayerSettings::getPlayerWhenToKick( ) const{  return dPlayerWhenToKick;}/*! This method sets the percentage of the maximal acceleration that defines    in which cases the ball is actually kicked or in which case it is    positioned better when the ball should be given a very high velocity.    \param d percentage in range [0..1]    \return boolean indicating whether update was successful */bool PlayerSettings::setPlayerWhenToKick( double d ){  dPlayerWhenToKick = d;  return true;}/*! This method returns the maximal allowed number of cycles to intercept the    ball. If it takes more cycles to intercept the ball, the ball is not    intercepted.    \return number of intercept cycles */int PlayerSettings::getPlayerWhenToIntercept( ) const{  return iPlayerWhenToIntercept;}/*! This methods sets the maximal allowed number of cycles to intercept the    ball.    \param i new maximal allowed number of cycles (>0)    \return boolean indicating whether update was successful */bool PlayerSettings::setPlayerWhenToIntercept( int i ){  iPlayerWhenToIntercept = i;  return true;}/*! This method returns the clear ball distance. When a clear ball is    performed, the ball is aimed to a point just in front of the penalty area    of the opponent. This method returns the distance before the penalty area    to which the ball is aimed.    \return clear ball distance before opponent penalty area */double PlayerSettings::getClearBallDist( ) const{  return dClearBallDist;}/*! This method sets the clear ball distance.    \param d new clear ball distance before opponent penalty area (>0).    \return boolean indicating whether update was successful */bool PlayerSettings::setClearBallDist( double d ){  dClearBallDist = d;  return true;}/*! This method returns the distance in which opponents are taken into account    when a clear ball is issued.    \return maximum opponent distance for clear ball. */double PlayerSettings::getClearBallOppMaxDist( ) const{  return dClearBallOppMaxDist;}/*! This method sets the distance in which opponents are taken into account    when a clear ball is issued.    \param d maximum opponent distance for clear ball (>0).    \return boolean indicating whether update was successful */bool PlayerSettings::setClearBallOppMaxDist( double d ){  dClearBallOppMaxDist = d;  return true;}/*! This method returns the minimum needed angle for a clear ball to the side.    \return minimum needed angle for clear ball to side */double PlayerSettings::getClearBallToSideAngle( ) const{  return dClearBallToSideAngle;}/*! This method sets the minimum needed angle for a clear ball to the side.    \param d minimum needed angle (>0) for clear ball to side    \return boolean indicating whether update was successful */bool PlayerSettings::setClearBallToSideAngle( double d ){  dClearBallToSideAngle = d;  return true;}/*! This method returns the cone width that is used to check for opponents when    passing to a player. A pass is only performed when no opponents are in the    cone. The cone is specified as the width to one side    after distance 1. So for a value of 0.5 the cone angle equals    45 (22.5 to both sides).    \return cone width in which no opponents are allowed when passing */double PlayerSettings::getConeWidth( ) const{  return dConeWidth;}/*! This method sets the cone width in which no opponents are allowed when the    ball is passed to a teammate. The cone width is specified as the width to    one side after distance 1. So for a value of 0.5 the cone angle    equals 45 (22.5 to both sides).    \param d cone width in which no opponents are allowed when passing (>0)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av中文一区二区三区| 久久精品综合网| 精品少妇一区二区三区日产乱码 | 一区二区三区四区不卡视频| 日本网站在线观看一区二区三区 | 7777精品伊人久久久大香线蕉经典版下载 | 欧美日韩精品一二三区| 久久色中文字幕| 奇米综合一区二区三区精品视频| 99v久久综合狠狠综合久久| 精品国内片67194| 日本怡春院一区二区| 在线免费不卡视频| 综合自拍亚洲综合图不卡区| 国模娜娜一区二区三区| 日韩三级在线观看| 爽爽淫人综合网网站| 91福利精品视频| 1区2区3区国产精品| 成人激情开心网| 国产亚洲精品超碰| 国产一区二区在线影院| 日韩美女视频在线| 青青青爽久久午夜综合久久午夜| 欧美性大战久久| 一级日本不卡的影视| 一本色道**综合亚洲精品蜜桃冫| 国产精品福利影院| 99精品在线观看视频| 国产精品激情偷乱一区二区∴| 国产专区欧美精品| 久久精品一区二区| 懂色av一区二区三区蜜臀| 亚洲综合无码一区二区| hitomi一区二区三区精品| 亚洲国产成人一区二区三区| 国产成人99久久亚洲综合精品| 久久新电视剧免费观看| 国产精品夜夜爽| 中文字幕乱码亚洲精品一区| 国产成人一级电影| 中文字幕一区二区视频| 91网站最新网址| 亚洲午夜激情网站| 欧美一级在线视频| 国内精品自线一区二区三区视频| 精品av综合导航| 成人午夜精品一区二区三区| 国产精品色噜噜| 色综合久久88色综合天天| 亚洲午夜一区二区| 日韩天堂在线观看| 国产精品一区二区x88av| 国产精品免费视频一区| 在线亚洲高清视频| 麻豆91精品视频| 国产情人综合久久777777| av在线一区二区| 无码av中文一区二区三区桃花岛| 欧美一级免费观看| 白白色 亚洲乱淫| 亚洲成人第一页| 国产视频视频一区| 欧美视频三区在线播放| 欧美午夜影院一区| 久久精品国产在热久久| 国产精品视频看| 91麻豆精品国产91久久久资源速度 | 亚洲老妇xxxxxx| 欧美日韩免费一区二区三区视频| 免费在线观看视频一区| 中文字幕永久在线不卡| 欧美日本一区二区| 国产成人免费9x9x人网站视频| 亚洲综合免费观看高清完整版在线 | 久久天堂av综合合色蜜桃网| 色婷婷综合激情| 激情另类小说区图片区视频区| 亚洲视频一区二区在线观看| 欧美一区二区网站| 99精品视频在线免费观看| 美国十次了思思久久精品导航| 中文字幕在线观看一区| 精品久久一区二区三区| 91麻豆文化传媒在线观看| 国产在线观看免费一区| 亚洲成人777| 亚洲欧洲综合另类| 久久久久国产精品麻豆| 欧美精品vⅰdeose4hd| 91一区二区在线| 国产99精品视频| 精品一区二区三区在线播放视频| 亚洲在线观看免费| 亚洲人成小说网站色在线 | 欧美男同性恋视频网站| www.欧美日韩国产在线| 国产在线精品视频| 男人的天堂久久精品| 亚洲一区二区三区四区中文字幕| 国产精品无人区| 久久九九久久九九| 亚洲电影一级黄| 国产欧美日韩亚州综合| 精品国产91洋老外米糕| 日韩一区二区三区在线| 欧美精品亚洲一区二区在线播放| 日本精品视频一区二区| 97超碰欧美中文字幕| 成人国产精品视频| 成人国产精品免费网站| 99视频精品全部免费在线| 国产91在线观看| 国产999精品久久久久久| 国产成人啪免费观看软件| 国产白丝网站精品污在线入口| 国产精品一区二区视频| 国产91精品久久久久久久网曝门| 国产一区二区不卡| 成人一区二区三区中文字幕| 国产成人久久精品77777最新版本| 国产一区美女在线| 国产99久久久精品| 91免费看视频| 欧美无乱码久久久免费午夜一区 | 狂野欧美性猛交blacked| 裸体在线国模精品偷拍| 精东粉嫩av免费一区二区三区| 久草热8精品视频在线观看| 精品在线一区二区| 国产 日韩 欧美大片| 成人黄色在线看| 91国产丝袜在线播放| 欧美日韩国产高清一区二区 | 91蜜桃网址入口| 欧美视频一区二区在线观看| 在线播放中文字幕一区| 久久婷婷一区二区三区| 亚洲视频资源在线| 亚瑟在线精品视频| 国产在线精品不卡| 97精品国产露脸对白| 欧美日本在线视频| 国产亚洲精品aa午夜观看| 中文字幕人成不卡一区| 午夜精品一区二区三区免费视频| 蜜桃精品视频在线| av激情亚洲男人天堂| 在线播放视频一区| 久久精品亚洲一区二区三区浴池| 亚洲视频精选在线| 欧美aaaaa成人免费观看视频| 成人一级片在线观看| 欧美精选在线播放| 国产精品私房写真福利视频| 亚洲国产精品久久久久秋霞影院 | 欧美成人bangbros| 国产精品国产成人国产三级| 午夜久久久久久久久久一区二区| 国产一区二区美女| 欧美撒尿777hd撒尿| 欧美激情中文字幕| 日韩高清不卡一区| 91亚洲精品一区二区乱码| 日韩欧美aaaaaa| 一区二区三区美女| 大陆成人av片| 日韩一区二区三区视频在线| 亚洲欧美欧美一区二区三区| 激情亚洲综合在线| 欧美日韩国产高清一区二区 | 精品盗摄一区二区三区| 国产高清无密码一区二区三区| 色综合夜色一区| 国产日韩高清在线| 久久99久久精品| 欧美综合色免费| 亚洲欧洲精品一区二区三区| 久久99热这里只有精品| 欧美日韩视频不卡| 亚洲精品一二三区| 97久久久精品综合88久久| 久久久影视传媒| 日韩有码一区二区三区| 欧美性大战久久| 亚洲在线观看免费| 欧美系列日韩一区| 亚洲欧美日韩综合aⅴ视频| 东方aⅴ免费观看久久av| 精品国免费一区二区三区| 日本免费新一区视频| 欧美高清性hdvideosex| 亚洲一区二区在线免费观看视频 | 日韩伦理av电影| 成人精品国产一区二区4080| 久久久精品免费免费| 国产综合久久久久影院| 国产亚洲福利社区一区| 国产精品一品二品| 日本一区二区在线不卡|