⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serversettings_8h-source.html

📁 仿真人工智能是指用人工的方法和技术
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ServerSettings.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.12 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>ServerSettings.h</h1><a href="ServerSettings_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="comment">/*</font>00002 <font class="comment">Copyright (c) 2000,2001, Jelle Kok, University of Amsterdam</font>00003 <font class="comment">All rights reserved.</font>00004 <font class="comment"></font>00005 <font class="comment">Redistribution and use in source and binary forms, with or without </font>00006 <font class="comment">modification, are permitted provided that the following conditions are met:</font>00007 <font class="comment"></font>00008 <font class="comment">1. Redistributions of source code must retain the above copyright notice, this </font>00009 <font class="comment">list of conditions and the following disclaimer. </font>00010 <font class="comment"></font>00011 <font class="comment">2. Redistributions in binary form must reproduce the above copyright notice, </font>00012 <font class="comment">this list of conditions and the following disclaimer in the documentation </font>00013 <font class="comment">and/or other materials provided with the distribution. </font>00014 <font class="comment"></font>00015 <font class="comment">3. Neither the name of the University of Amsterdam nor the names of its </font>00016 <font class="comment">contributors may be used to endorse or promote products derived from this </font>00017 <font class="comment">software without specific prior written permission. </font>00018 <font class="comment"></font>00019 <font class="comment">THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" </font>00020 <font class="comment">AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE </font>00021 <font class="comment">IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE </font>00022 <font class="comment">DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE </font>00023 <font class="comment">FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL </font>00024 <font class="comment">DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR </font>00025 <font class="comment">SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER </font>00026 <font class="comment">CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, </font>00027 <font class="comment">OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE </font>00028 <font class="comment">OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</font>00029 <font class="comment">*/</font>00049 <font class="preprocessor">#ifndef _SERVERSETTINGS_</font>00050 <font class="preprocessor"></font><font class="preprocessor">#define _SERVERSETTINGS_</font>00051 <font class="preprocessor"></font>00052 <font class="preprocessor">#include "<a class="code" href="GenericValues_8h.html">GenericValues.h</a>"</font>00053 00054 <font class="comment">/******************************************************************************/</font>00055 <font class="comment">/********************   CLASS SERVERSETTINGS   ********************************/</font>00056 <font class="comment">/******************************************************************************/</font>00057 <a name="l00064"></a><a class="code" href="classServerSettings.html">00064</a> <font class="keyword">class </font><a class="code" href="classServerSettings.html">ServerSettings</a>:<font class="keyword">public</font> <a class="code" href="classGenericValues.html">GenericValues</a>00065 {00066 <font class="keyword">private</font>:00067   <font class="comment">// private member data</font>00068 00069   <font class="comment">// all the parameters available in server.conf</font>00070   <font class="comment">// NOTE: names in server.conf corresponding with member variables</font>00071   <font class="comment">//       are listed between doxygen-tags to enable quick searching</font>00072 00073   <font class="comment">// goal-related parameters</font><a name="l00074"></a><a class="code" href="classServerSettings.html#o0">00074</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o0">dGoalWidth</a>;        00077   <font class="comment">// player-related parameters</font><a name="l00078"></a><a class="code" href="classServerSettings.html#o1">00078</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o1">dPlayerSize</a>;       <a name="l00079"></a><a class="code" href="classServerSettings.html#o2">00079</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o2">dPlayerDecay</a>;      <a name="l00080"></a><a class="code" href="classServerSettings.html#o3">00080</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o3">dPlayerRand</a>;       <a name="l00081"></a><a class="code" href="classServerSettings.html#o4">00081</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o4">dPlayerWeight</a>;     <a name="l00082"></a><a class="code" href="classServerSettings.html#o5">00082</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o5">dPlayerSpeedMax</a>;   <a name="l00083"></a><a class="code" href="classServerSettings.html#o6">00083</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o6">dPlayerAccelMax</a>;   00086   <font class="comment">// stamina-related parameters</font><a name="l00087"></a><a class="code" href="classServerSettings.html#o7">00087</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o7">dStaminaMax</a>;       <a name="l00088"></a><a class="code" href="classServerSettings.html#o8">00088</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o8">dStaminaIncMax</a>;    <a name="l00090"></a><a class="code" href="classServerSettings.html#o9">00090</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o9">dRecoverDecThr</a>;    <a name="l00092"></a><a class="code" href="classServerSettings.html#o10">00092</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o10">dRecoverDec</a>;       <a name="l00094"></a><a class="code" href="classServerSettings.html#o11">00094</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o11">dRecoverMin</a>;       <a name="l00095"></a><a class="code" href="classServerSettings.html#o12">00095</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o12">dEffortDecThr</a>;     <a name="l00097"></a><a class="code" href="classServerSettings.html#o13">00097</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o13">dEffortDec</a>;        <a name="l00099"></a><a class="code" href="classServerSettings.html#o14">00099</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o14">dEffortIncThr</a>;     <a name="l00101"></a><a class="code" href="classServerSettings.html#o15">00101</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o15">dEffortInc</a>;        <a name="l00103"></a><a class="code" href="classServerSettings.html#o16">00103</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o16">dEffortMin</a>;        00106   <font class="comment">// parameters related to auditory perception</font><a name="l00107"></a><a class="code" href="classServerSettings.html#o17">00107</a>   <font class="keywordtype">int</font>    <a class="code" href="classServerSettings.html#o17">iHearMax</a>;          <a name="l00110"></a><a class="code" href="classServerSettings.html#o18">00110</a>   <font class="keywordtype">int</font>    <a class="code" href="classServerSettings.html#o18">iHearInc</a>;          <a name="l00113"></a><a class="code" href="classServerSettings.html#o19">00113</a>   <font class="keywordtype">int</font>    <a class="code" href="classServerSettings.html#o19">iHearDecay</a>;        00117   <font class="comment">// parameters related to player turn actions</font><a name="l00118"></a><a class="code" href="classServerSettings.html#o20">00118</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o20">dInertiaMoment</a>;    00121   <font class="comment">// parameters related to sense_body information</font><a name="l00122"></a><a class="code" href="classServerSettings.html#o21">00122</a>   <font class="keywordtype">int</font>    <a class="code" href="classServerSettings.html#o21">iSenseBodyStep</a>;    00125   <font class="comment">// goalkeeper-related parameters</font><a name="l00126"></a><a class="code" href="classServerSettings.html#o22">00126</a>   <font class="keywordtype">double</font> <a class="code" href="classServerSettings.html#o22">dCatchableAreaL</a>;   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -