soccertypes_8c.html
来自「仿真人工智能是指用人工的方法和技术」· HTML 代码 · 共 151 行
HTML
151 行
<!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>SoccerTypes.C File Reference</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>SoccerTypes.C File Reference</h1><code>#include <iostream.h></code><br><code>#include <stdio.h></code><br><code>#include <string.h></code><br><code>#include "<a class="el" href="SoccerTypes_8h-source.html">SoccerTypes.h</a>"</code><br><code>#include "<a class="el" href="Parse_8h-source.html">Parse.h</a>"</code><br><p>Include dependency graph for SoccerTypes.C:<p><center><img src="SoccerTypes_8C__incl.gif" border="0" usemap="#SoccerTypes.C_map" alt="Include dependency graph"></center><map name="SoccerTypes.C_map"><area href="SoccerTypes_8h.html" shape="rect" coords="95,214,186,233" alt=""><area href="Geometry_8h.html" shape="rect" coords="107,147,182,166" alt=""><area href="ServerSettings_8h.html" shape="rect" coords="206,147,307,166" alt=""><area href="GenericValues_8h.html" shape="rect" coords="206,81,307,99" alt=""><area href="Parse_8h.html" shape="rect" coords="359,214,410,233" alt=""></map><p><a href="SoccerTypes_8C-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>ostream & </td><td valign=bottom><a class="el" href="SoccerTypes_8C.html#a1">operator<<</a> (ostream &os, <a class="el" href="classTime.html">Time</a> t)</td></tr><tr><td colspan=2><br><h2>Variables</h2></td></tr><tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="SoccerTypes_8C.html#a0">ObjectNames</a> []</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2> <pre><b>File:</b> <a class="el" href="SoccerTypes_8C.html">SoccerTypes.C</a><b>Project:</b> Robocup Soccer Simulation Team: UvA Trilearn 2001<b>Authors:</b> Jelle Kok and Remco de Boer<b>Created:</b> 28/11/2000<b>Last Revision:</b> 06/01/2002<b>Contents:</b> This file contains the different enumerations and constants that are important in the Soccer Server. Furthermore it contains the class <a class="el" href="classSoccerCommand.html">SoccerCommand</a> which is used to denote the different possible soccer commands and the class <a class="el" href="classSoccerTypes.html">SoccerTypes</a> that contains all kind of static methods to translate text strings that are received from the server into the soccer types (=enumerations) that are defined here. Finally it contains the <a class="el" href="classTime.html">Time</a> class which holds a two-tuple that represents the time in the soccer server.</pre><p><p>Definition in file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<hr><h2>Function Documentation</h2><a name="a1" doxytag="SoccerTypes.C::operator<<"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> ostream& operator<< </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">ostream & </td> <td class="mdname" nowrap> <em>os</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap><a class="el" href="classTime.html">Time</a> </td> <td class="mdname" nowrap> <em>t</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Overloaded version of the C++ output operator for a <a class="el" href="classTime.html">Time</a> class. This operator makes it possible to use <a class="el" href="classTime.html">Time</a> objects in output statements (e.g. cout << t). The current cycle and the stopped time are printed in the format (t1,t2). <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>os</em> </td><td>output stream to which information should be written </td></tr><tr><td valign=top><em>v</em> </td><td>a <a class="el" href="classTime.html">Time</a> object which must be printed </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>output stream containing (x,y) </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00423">423</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l00106">Time::getTime</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l00114">Time::getTimeStopped</a>(). </td> </tr></table><hr><h2>Variable Documentation</h2><a name="a0" doxytag="SoccerTypes.C::ObjectNames"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const char* ObjectNames[] </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><b>Initial value:</b><div class="fragment"><pre>{<font class="stringliteral">"(b)"</font>, <font class="stringliteral">"(g l)"</font>, <font class="stringliteral">"(g r)"</font>, <font class="stringliteral">"(g ?)"</font>, <font class="stringliteral">"(l l)"</font>, <font class="stringliteral">"(l r)"</font>, <font class="stringliteral">"(l b)"</font>, <font class="stringliteral">"(l t)"</font>, <font class="stringliteral">"(f l t)"</font>, <font class="stringliteral">"(f t l 50)"</font>, <font class="stringliteral">"(f t l 40)"</font>, <font class="stringliteral">"(f t l 30)"</font>, <font class="stringliteral">"(f t l 20)"</font>, <font class="stringliteral">"(f t l 10)"</font>, <font class="stringliteral">"(f t 0)"</font>,<font class="stringliteral">"(f c t)"</font>, <font class="stringliteral">"(f t r 10)"</font>, <font class="stringliteral">"(f t r 20)"</font>, <font class="stringliteral">"(f t r 30)"</font>, <font class="stringliteral">"(f t r 40)"</font>,<font class="stringliteral">"(f t r 50)"</font>, <font class="stringliteral">"(f r t)"</font> , <font class="stringliteral">"(f r t 30)"</font>, <font class="stringliteral">"(f r t 20)"</font>, <font class="stringliteral">"(f r t 10)"</font>,<font class="stringliteral">"(f g r t)"</font> , <font class="stringliteral">"(f r 0)"</font> , <font class="stringliteral">"(f g r b)"</font> , <font class="stringliteral">"(f r b 10)"</font>, <font class="stringliteral">"(f r b 20)"</font>,<font class="stringliteral">"(f r b 30)"</font>, <font class="stringliteral">"(f r b)"</font> , <font class="stringliteral">"(f b r 50)"</font>, <font class="stringliteral">"(f b r 40)"</font>, <font class="stringliteral">"(f b r 30)"</font>,<font class="stringliteral">"(f b r 20)"</font>, <font class="stringliteral">"(f b r 10)"</font>, <font class="stringliteral">"(f c b)"</font> , <font class="stringliteral">"(f b 0)"</font> , <font class="stringliteral">"(f b l 10)"</font>,<font class="stringliteral">"(f b l 20)"</font>, <font class="stringliteral">"(f b l 30)"</font>, <font class="stringliteral">"(f b l 40)"</font>, <font class="stringliteral">"(f b l 50)"</font>, <font class="stringliteral">"(f l b)"</font>,<font class="stringliteral">"(f l b 30)"</font>, <font class="stringliteral">"(f l b 20)"</font>, <font class="stringliteral">"(f l b 10)"</font>, <font class="stringliteral">"(f g l b)"</font> , <font class="stringliteral">"(f l 0)"</font>,<font class="stringliteral">"(f g l t)"</font> , <font class="stringliteral">"(f l t 10)"</font>, <font class="stringliteral">"(f l t 20)"</font>, <font class="stringliteral">"(f l t 30)"</font>, <font class="stringliteral">"(f p l t)"</font>,<font class="stringliteral">"(f p l c)"</font>, <font class="stringliteral">"(f p l b)"</font>, <font class="stringliteral">"(f p r t)"</font>, <font class="stringliteral">"(f p r c)"</font>, <font class="stringliteral">"(f p r b)"</font>, <font class="stringliteral">"(f c)"</font> }</pre></div>This constant defines the string names corresponding to the ObjectT names, defined in <a class="el" href="SoccerTypes_8h.html">SoccerTypes.h</a>. Players are not added since they depend on the team name. Note that the order is important, since the names are in the same order as the ObjectT enumeration. <p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l00838">838</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>Referenced by <a class="el" href="SoccerTypes_8C-source.html#l00859">SoccerTypes::getObjectStr</a>(). </td> </tr></table><hr><address><small>Generated on Thu Mar 7 00:37:50 2002 for UvA Trilearn 2001 by<a href="http://www.doxygen.org/index.html"><img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.12 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?