formations_8h-source.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 144 行 · 第 1/2 页
HTML
144 行
<!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>Formations.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> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>Formations.h</h1><a href="Formations_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>00063 <font class="preprocessor">#ifndef _FORMATIONS_</font>00064 <font class="preprocessor"></font><font class="preprocessor">#define _FORMATIONS_</font>00065 <font class="preprocessor"></font>00066 <font class="preprocessor">#include "<a class="code" href="SoccerTypes_8h.html">SoccerTypes.h</a>"</font> <font class="comment">// PlayerT</font>00067 00068 <font class="comment">/******************************************************************************/</font>00069 <font class="comment">/********************** CLASS PLAYERTYPEINFO **********************************/</font>00070 <font class="comment">/******************************************************************************/</font>00071 <a name="l00088"></a><a class="code" href="classPlayerTypeInfo.html">00088</a> <font class="keyword">class </font><a class="code" href="classPlayerTypeInfo.html">PlayerTypeInfo</a>00089 {<a name="l00090"></a><a class="code" href="classPlayerTypeInfo.html#o0">00090</a> <a class="code" href="SoccerTypes_8h.html#a248">PlayerT</a> <a class="code" href="classPlayerTypeInfo.html#o0">playerType</a>; <a name="l00091"></a><a class="code" href="classPlayerTypeInfo.html#o1">00091</a> <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#o1">dAttrX</a>; <a name="l00092"></a><a class="code" href="classPlayerTypeInfo.html#o2">00092</a> <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#o2">dAttrY</a>; <a name="l00093"></a><a class="code" href="classPlayerTypeInfo.html#o3">00093</a> <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#o3">dMinX</a>; <a name="l00094"></a><a class="code" href="classPlayerTypeInfo.html#o4">00094</a> <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#o4">dMaxX</a>; <a name="l00095"></a><a class="code" href="classPlayerTypeInfo.html#o5">00095</a> <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#o5">bBehindBall</a>;00097 <font class="keyword">public</font>:00098 <a class="code" href="classPlayerTypeInfo.html#a0">PlayerTypeInfo</a>( );00099 <a class="code" href="classPlayerTypeInfo.html#a0">PlayerTypeInfo</a>( <a class="code" href="SoccerTypes_8h.html#a248">PlayerT</a>, <font class="keywordtype">double</font>, <font class="keywordtype">double</font>, <font class="keywordtype">double</font>, <font class="keywordtype">double</font>, <font class="keywordtype">bool</font> );00100 00101 <font class="comment">// method to set all the values at once and displaying them all</font>00102 <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#a2">setValues</a>( <a class="code" href="SoccerTypes_8h.html#a248">PlayerT</a>, <font class="keywordtype">double</font>, <font class="keywordtype">double</font>, <font class="keywordtype">double</font>, <font class="keywordtype">double</font>, <font class="keywordtype">bool</font> );00103 <font class="keywordtype">void</font> <a class="code" href="classPlayerTypeInfo.html#a3">show</a> ( ostream &os = cout );00104 00105 <font class="comment">// standard get and set methods to individually set all the values</font>00106 <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#a4">setPlayerType</a>( <a class="code" href="SoccerTypes_8h.html#a248">PlayerT</a> type );00107 <a class="code" href="SoccerTypes_8h.html#a248">PlayerT</a> <a class="code" href="classPlayerTypeInfo.html#a5">getPlayerType</a>( ) <font class="keyword">const</font>;00108 <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#a6">setAttrX</a> ( <font class="keywordtype">double</font> attrX );00109 <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#a7">getAttrX</a> ( ) <font class="keyword">const</font>;00110 <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#a8">setAttrY</a> ( <font class="keywordtype">double</font> attrY );00111 <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#a9">getAttrY</a> ( ) <font class="keyword">const</font>;00112 <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#a10">setMinX</a> ( <font class="keywordtype">double</font> minX );00113 <font class="keywordtype">double</font> <a class="code" href="classPlayerTypeInfo.html#a11">getMinX</a> ( ) <font class="keyword">const</font>;00114 <font class="keywordtype">bool</font> <a class="code" href="classPlayerTypeInfo.html#a12">setMaxX</a> ( <font class="keywordtype">double</font> maxX );
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?