Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

PlayerSettings.h

Go to the documentation of this file.
00001 /*
00002 Copyright (c) 2000-2002, 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 */
00048 #ifndef _PlayerSettings_
00049 #define _PlayerSettings_
00050 
00051 #include "GenericValues.h"
00052 
00053 /******************************************************************************/
00054 /********************** CLASS PlayerSettings **********************************/
00055 /******************************************************************************/
00056 
00066 class PlayerSettings : public GenericValues
00067 {
00068   double dPlayerConfThr;         
00070   double dPlayerHighConfThr;     
00072   double dBallConfThr;           
00074   double dPlayerDistTolerance;   
00076   double dPlayerWhenToTurnAngle; 
00077   double dPlayerWhenToKick;      
00079   int    iPlayerWhenToIntercept; 
00080   double dClearBallDist;         
00082   double dClearBallOppMaxDist;   
00084   double dClearBallToSideAngle;  
00086   double dConeWidth;             
00088   double dPassEndSpeed;          
00089   double dFastPassEndSpeed;      
00090   double dPassExtraX;            
00092   double dFractionWaitNoSee;     
00095   double dFractionWaitSeeBegin;  
00098   double dFractionWaitSeeEnd;    
00101   double dMarkDistance;          
00103   double dStratAreaRadius;       
00106   double dShootRiskProbability;  
00109   int    iCyclesCatchWait;       
00111   int    iServerTimeOut;         
00113   double dDribbleAngThr;         
00116   double dTurnWithBallAngThr;    
00119   double dTurnWithBallFreezeThr; 
00122 public:
00123   PlayerSettings( );
00124 
00125   // all standard get and set methods
00126 
00127   double getPlayerConfThr        (          ) const;
00128   bool   setPlayerConfThr        ( double d );
00129 
00130   double getPlayerHighConfThr    (          ) const;
00131   bool   setPlayerHighConfThr    ( double d );
00132 
00133   double getBallConfThr          (          ) const;
00134   bool   setBallConfThr          ( double d );
00135 
00136   double getPlayerDistTolerance  (          ) const;
00137   bool   setPlayerDistTolerance  ( double d );
00138 
00139   double getPlayerWhenToTurnAngle(          ) const;
00140   bool   setPlayerWhenToTurnAngle( double d );
00141 
00142   double getPlayerWhenToKick     (          ) const;
00143   bool   setPlayerWhenToKick     ( double d );
00144 
00145   int    getPlayerWhenToIntercept(          ) const;
00146   bool   setPlayerWhenToIntercept( int i    );
00147 
00148   double getClearBallDist        (          ) const;
00149   bool   setClearBallDist        ( double d );
00150 
00151   double getClearBallOppMaxDist  (          ) const;
00152   bool   setClearBallOppMaxDist  ( double d );
00153 
00154   double getClearBallToSideAngle (          ) const;
00155   bool   setClearBallToSideAngle ( double d );
00156 
00157   double getConeWidth            (          ) const;
00158   bool   setConeWidth            ( double d );
00159 
00160   double getPassEndSpeed         (          ) const;
00161   bool   setPassEndSpeed         ( double d );
00162 
00163   double getFastPassEndSpeed     (          ) const;
00164   bool   setFastPassEndSpeed     ( double d );
00165 
00166   double getPassExtraX           (          ) const;
00167   bool   setPassExtraX           ( double d );
00168 
00169   double getFractionWaitNoSee    (          ) const;
00170   bool   setFractionWaitNoSee    ( double d );
00171 
00172   double getFractionWaitSeeBegin (          ) const;
00173   bool   setFractionWaitSeeBegin ( double d );
00174 
00175   double getFractionWaitSeeEnd   (          ) const;
00176   bool   setFractionWaitSeeEnd   ( double d );
00177 
00178   double getMarkDistance         (          ) const;
00179   bool   setMarkDistance         ( double d );
00180 
00181   double getStratAreaRadius      (          ) const;
00182   bool   setStratAreaRadius      ( double d );
00183 
00184   double getShootRiskProbability (          ) const;
00185   bool   setShootRiskProbability ( double d );
00186 
00187   int    getCyclesCatchWait      (          ) const;
00188   bool   setCyclesCatchWait      ( int i    );
00189 
00190   int    getServerTimeOut        (          ) const;
00191   bool   setServerTimeOut        ( int i    );
00192 
00193   double getDribbleAngThr        (          ) const;
00194   bool   setDribbleAngThr        ( double d );
00195 
00196   double getTurnWithBallAngThr   (          ) const;
00197   bool   setTurnWithBallAngThr   ( double d );
00198 
00199   double getTurnWithBallFreezeThr(          ) const;
00200   bool   setTurnWithBallFreezeThr( double d );
00201 };
00202 
00203 #endif

Generated on Tue Jul 2 10:18:52 2002 for UvA Trilearn 2002 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001