00001 /* 00002 Copyright (c) 2000-2003, Jelle Kok, University of Amsterdam 00003 All rights reserved. 00004 00005 Redistribution and use in source and binary forms, with or without 00006 modification, are permitted provided that the following conditions are met: 00007 00008 1. Redistributions of source code must retain the above copyright notice, this 00009 list of conditions and the following disclaimer. 00010 00011 2. Redistributions in binary form must reproduce the above copyright notice, 00012 this list of conditions and the following disclaimer in the documentation 00013 and/or other materials provided with the distribution. 00014 00015 3. Neither the name of the University of Amsterdam nor the names of its 00016 contributors may be used to endorse or promote products derived from this 00017 software without specific prior written permission. 00018 00019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00020 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00021 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00022 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 00023 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00024 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00025 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00026 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00027 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00028 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00029 */ 00030 00049 #ifndef _PlayerSettings_ 00050 #define _PlayerSettings_ 00051 00052 #include "GenericValues.h" 00053 00054 /*****************************************************************************/ 00055 /********************* CLASS PlayerSettings **********************************/ 00056 /*****************************************************************************/ 00057 00067 class PlayerSettings : public GenericValues 00068 { 00069 double dPlayerConfThr; 00071 double dPlayerHighConfThr; 00073 double dBallConfThr; 00075 double dPlayerDistTolerance; 00077 double dPlayerWhenToTurnAngle; 00078 double dPlayerWhenToKick; 00080 int iPlayerWhenToIntercept; 00081 double dClearBallDist; 00083 double dClearBallOppMaxDist; 00085 double dClearBallToSideAngle; 00087 double dConeWidth; 00089 double dPassEndSpeed; 00090 double dFastPassEndSpeed; 00091 double dPassExtraX; 00093 double dFractionWaitNoSee; 00096 double dFractionWaitSeeBegin; 00099 double dFractionWaitSeeEnd; 00102 double dMarkDistance; 00104 double dStratAreaRadius; 00107 double dShootRiskProbability; 00110 int iCyclesCatchWait; 00112 int iServerTimeOut; 00114 double dDribbleAngThr; 00117 double dTurnWithBallAngThr; 00120 double dTurnWithBallFreezeThr; 00123 int iInitialFormation; 00124 double dMaxYPercentage; 00128 public: 00129 PlayerSettings( ); 00130 00131 // all standard get and set methods 00132 00133 double getPlayerConfThr ( ) const; 00134 bool setPlayerConfThr ( double d ); 00135 00136 double getPlayerHighConfThr ( ) const; 00137 bool setPlayerHighConfThr ( double d ); 00138 00139 double getBallConfThr ( ) const; 00140 bool setBallConfThr ( double d ); 00141 00142 double getPlayerDistTolerance ( ) const; 00143 bool setPlayerDistTolerance ( double d ); 00144 00145 double getPlayerWhenToTurnAngle( ) const; 00146 bool setPlayerWhenToTurnAngle( double d ); 00147 00148 double getPlayerWhenToKick ( ) const; 00149 bool setPlayerWhenToKick ( double d ); 00150 00151 int getPlayerWhenToIntercept( ) const; 00152 bool setPlayerWhenToIntercept( int i ); 00153 00154 double getClearBallDist ( ) const; 00155 bool setClearBallDist ( double d ); 00156 00157 double getClearBallOppMaxDist ( ) const; 00158 bool setClearBallOppMaxDist ( double d ); 00159 00160 double getClearBallToSideAngle ( ) const; 00161 bool setClearBallToSideAngle ( double d ); 00162 00163 double getConeWidth ( ) const; 00164 bool setConeWidth ( double d ); 00165 00166 double getPassEndSpeed ( ) const; 00167 bool setPassEndSpeed ( double d ); 00168 00169 double getFastPassEndSpeed ( ) const; 00170 bool setFastPassEndSpeed ( double d ); 00171 00172 double getPassExtraX ( ) const; 00173 bool setPassExtraX ( double d ); 00174 00175 double getFractionWaitNoSee ( ) const; 00176 bool setFractionWaitNoSee ( double d ); 00177 00178 double getFractionWaitSeeBegin ( ) const; 00179 bool setFractionWaitSeeBegin ( double d ); 00180 00181 double getFractionWaitSeeEnd ( ) const; 00182 bool setFractionWaitSeeEnd ( double d ); 00183 00184 double getMarkDistance ( ) const; 00185 bool setMarkDistance ( double d ); 00186 00187 double getStratAreaRadius ( ) const; 00188 bool setStratAreaRadius ( double d ); 00189 00190 double getShootRiskProbability ( ) const; 00191 bool setShootRiskProbability ( double d ); 00192 00193 int getCyclesCatchWait ( ) const; 00194 bool setCyclesCatchWait ( int i ); 00195 00196 int getServerTimeOut ( ) const; 00197 bool setServerTimeOut ( int i ); 00198 00199 double getDribbleAngThr ( ) const; 00200 bool setDribbleAngThr ( double d ); 00201 00202 double getTurnWithBallAngThr ( ) const; 00203 bool setTurnWithBallAngThr ( double d ); 00204 00205 double getTurnWithBallFreezeThr( ) const; 00206 bool setTurnWithBallFreezeThr( double d ); 00207 00208 int getInitialFormation ( ) const; 00209 bool setInitialFormation ( int i ); 00210 00211 double getMaxYPercentage ( ) const; 00212 bool setMaxYPercentage ( double d ); 00213 00214 00215 }; 00216 00217 #endif