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,2001, 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 */
00044 #ifndef _PlayerSettings_
00045 #define _PlayerSettings_
00046 
00047 #include "GenericValues.h"
00048 
00049 /******************************************************************************/
00050 /********************** CLASS PlayerSettings **********************************/
00051 /******************************************************************************/
00052 
00062 class PlayerSettings : public GenericValues
00063 {
00064   double dPlayerConfThr;         
00066   double dPlayerHighConfThr;     
00068   double dBallConfThr;           
00070   double dPlayerDistTolerance;   
00072   double dPlayerWhenToTurnAngle; 
00073   double dPlayerWhenToKick;      
00075   int    iPlayerWhenToIntercept; 
00076   double dClearBallDist;         
00078   double dClearBallOppMaxDist;   
00080   double dClearBallToSideAngle;  
00082   double dConeWidth;             
00084   double dPassEndSpeed;          
00085   double dFastPassEndSpeed;      
00086   double dPassExtraX;            
00088   double dFractionWaitNoSee;     
00091   double dFractionWaitSeeBegin;  
00094   double dFractionWaitSeeEnd;    
00097   double dMarkDistance;          
00099   int    iServerTimeOut;         
00101   double dTurnWithBallAngThr;    
00104   double dTurnWithBallFreezeThr; 
00107 public:
00108   PlayerSettings( );
00109 
00110   // all standard get and set methods
00111 
00112   double getPlayerConfThr        (          ) const;
00113   bool   setPlayerConfThr        ( double d );
00114 
00115   double getPlayerHighConfThr    (          ) const;
00116   bool   setPlayerHighConfThr    ( double d );
00117 
00118   double getBallConfThr          (          ) const;
00119   bool   setBallConfThr          ( double d );
00120 
00121   double getPlayerDistTolerance  (          ) const;
00122   bool   setPlayerDistTolerance  ( double d );
00123 
00124   double getPlayerWhenToTurnAngle(          ) const;
00125   bool   setPlayerWhenToTurnAngle( double d );
00126 
00127   double getPlayerWhenToKick     (          ) const;
00128   bool   setPlayerWhenToKick     ( double d );
00129 
00130   int    getPlayerWhenToIntercept(          ) const;
00131   bool   setPlayerWhenToIntercept( int i    );
00132 
00133   double getClearBallDist        (          ) const;
00134   bool   setClearBallDist        ( double d );
00135 
00136   double getClearBallOppMaxDist  (          ) const;
00137   bool   setClearBallOppMaxDist  ( double d );
00138 
00139   double getClearBallToSideAngle (          ) const;
00140   bool   setClearBallToSideAngle ( double d );
00141 
00142   double getConeWidth            (          ) const;
00143   bool   setConeWidth            ( double d );
00144 
00145   double getPassEndSpeed         (          ) const;
00146   bool   setPassEndSpeed         ( double d );
00147 
00148   double getFastPassEndSpeed     (          ) const;
00149   bool   setFastPassEndSpeed     ( double d );
00150 
00151   double getPassExtraX           (          ) const;
00152   bool   setPassExtraX           ( double d );
00153 
00154   double getFractionWaitNoSee    (          ) const;
00155   bool   setFractionWaitNoSee    ( double d );
00156 
00157   double getFractionWaitSeeBegin (          ) const;
00158   bool   setFractionWaitSeeBegin ( double d );
00159 
00160   double getFractionWaitSeeEnd   (          ) const;
00161   bool   setFractionWaitSeeEnd   ( double d );
00162 
00163   double getMarkDistance         (          ) const;
00164   bool   setMarkDistance         ( double d );
00165 
00166   int    getServerTimeOut        (          ) const;
00167   bool   setServerTimeOut        ( int i    );
00168 
00169   double getTurnWithBallAngThr   (          ) const;
00170   bool   setTurnWithBallAngThr   ( double d );
00171 
00172   double getTurnWithBallFreezeThr(          ) const;
00173   bool   setTurnWithBallFreezeThr( double d );
00174 };
00175 
00176 #endif

Generated on Thu Mar 7 00:37:43 2002 for UvA Trilearn 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001