📄 classsoccertypes.html
字号:
<td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the play mode from the referee message. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>rm</em> </td><td>RefereeMessage that contains the play mode </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>PlayModeT of RefereeMessage, PM_ILLEGAL if it is not recognized </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01511">1511</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00211">PlayModeT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a121">PM_BEFORE_KICK_OFF</a>, <a class="el" href="namespace_3globalScope_4.html#a242a126">PM_CORNER_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a127">PM_CORNER_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a132">PM_FREE_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a133">PM_FREE_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a138">PM_FROZEN</a>, <a class="el" href="namespace_3globalScope_4.html#a242a128">PM_GOAL_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a129">PM_GOAL_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a130">PM_GOAL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a131">PM_GOAL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a140">PM_ILLEGAL</a>, <a class="el" href="namespace_3globalScope_4.html#a242a124">PM_KICK_IN_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a125">PM_KICK_IN_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a122">PM_KICK_OFF_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a123">PM_KICK_OFF_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a134">PM_OFFSIDE_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a135">PM_OFFSIDE_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a136">PM_PLAY_ON</a>, <a class="el" href="namespace_3globalScope_4.html#a242a139">PM_QUIT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a137">PM_TIME_OVER</a>, <a class="el" href="namespace_3globalScope_4.html#a243a142">REFC_BEFORE_KICK_OFF</a>, <a class="el" href="namespace_3globalScope_4.html#a243a147">REFC_CORNER_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a148">REFC_CORNER_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a163">REFC_FOUL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a164">REFC_FOUL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a151">REFC_FREE_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a152">REFC_FREE_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a155">REFC_FROZEN</a>, <a class="el" href="namespace_3globalScope_4.html#a243a149">REFC_GOAL_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a150">REFC_GOAL_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a165">REFC_GOAL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a166">REFC_GOAL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a145">REFC_KICK_IN_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a146">REFC_KICK_IN_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a143">REFC_KICK_OFF_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a144">REFC_KICK_OFF_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a157">REFC_OFFSIDE_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a158">REFC_OFFSIDE_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a153">REFC_PLAY_ON</a>, <a class="el" href="namespace_3globalScope_4.html#a243a156">REFC_QUIT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a154">REFC_TIME_OVER</a>, and <a class="el" href="SoccerTypes_8h-source.html#l00237">RefereeMessageT</a>.<p>Referenced by <a class="el" href="SenseHandler_8C-source.html#l00428">SenseHandler::analyzeHearMessage</a>(), and <a class="el" href="SoccerTypes_8C-source.html#l01501">getPlayModeFromStr</a>(). </td> </tr></table><a name="d19" doxytag="SoccerTypes::getPlayModeFromStr"></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"> <a class="el" href="SoccerTypes_8h.html#a242">PlayModeT</a> SoccerTypes::getPlayModeFromStr </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the play mode associated with a string. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em> </td><td>representing the play mode </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>PlayModeT of string, PM_ILLEGAL if it is not recognized </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01501">1501</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8C-source.html#l01511">getPlayModeFromRefereeMessage</a>(), <a class="el" href="SoccerTypes_8C-source.html#l01585">getRefereeMessageFromStr</a>(), and <a class="el" href="SoccerTypes_8h-source.html#l00211">PlayModeT</a>.<p>Referenced by <a class="el" href="SenseHandler_8C-source.html#l00404">SenseHandler::analyzeInitMessage</a>(). </td> </tr></table><a name="d21" doxytag="SoccerTypes::getPlayModeStr"></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"> char * SoccerTypes::getPlayModeStr </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="SoccerTypes_8h.html#a242">PlayModeT</a> </td> <td class="mdname1" valign="top" nowrap> <em>pm</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the string representation of a PlayModeT as is used in the Robocup Soccer Simulation and also said by the referee. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pm</em> </td><td>PlayModeT which should be converted </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>pointer to the string (enough memory has to be allocated) </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01473">1473</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="SoccerTypes_8h-source.html#l00211">PlayModeT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a121">PM_BEFORE_KICK_OFF</a>, <a class="el" href="namespace_3globalScope_4.html#a242a126">PM_CORNER_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a127">PM_CORNER_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a132">PM_FREE_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a133">PM_FREE_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a138">PM_FROZEN</a>, <a class="el" href="namespace_3globalScope_4.html#a242a128">PM_GOAL_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a129">PM_GOAL_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a130">PM_GOAL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a131">PM_GOAL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a140">PM_ILLEGAL</a>, <a class="el" href="namespace_3globalScope_4.html#a242a124">PM_KICK_IN_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a125">PM_KICK_IN_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a122">PM_KICK_OFF_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a123">PM_KICK_OFF_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a242a136">PM_PLAY_ON</a>, and <a class="el" href="namespace_3globalScope_4.html#a242a139">PM_QUIT</a>.<p>Referenced by <a class="el" href="WorldModel_8C-source.html#l01150">WorldModel::show</a>(). </td> </tr></table><a name="d23" doxytag="SoccerTypes::getRefereeMessageFromStr"></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"> <a class="el" href="SoccerTypes_8h.html#a243">RefereeMessageT</a> SoccerTypes::getRefereeMessageFromStr </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char * </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [static]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This method returns the referee message from the string that is passed. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em> </td><td>pointer to a string with the referee message starting at index 0 </td></tr></table></dl><dl compact><dt><b>Returns: </b><dd>RefereeMessageT of string representation, REFC_ILLEGAL if it fails </dl><p>Definition at line <a class="el" href="SoccerTypes_8C-source.html#l01585">1585</a> of file <a class="el" href="SoccerTypes_8C-source.html">SoccerTypes.C</a>.<p>References <a class="el" href="namespace_3globalScope_4.html#a243a142">REFC_BEFORE_KICK_OFF</a>, <a class="el" href="namespace_3globalScope_4.html#a243a147">REFC_CORNER_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a148">REFC_CORNER_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a167">REFC_DROP_BALL</a>, <a class="el" href="namespace_3globalScope_4.html#a243a163">REFC_FOUL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a164">REFC_FOUL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a151">REFC_FREE_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a152">REFC_FREE_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a149">REFC_GOAL_KICK_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a150">REFC_GOAL_KICK_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a165">REFC_GOAL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a166">REFC_GOAL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a168">REFC_GOALIE_CATCH_BALL_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a169">REFC_GOALIE_CATCH_BALL_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a159">REFC_HALF_TIME</a>, <a class="el" href="namespace_3globalScope_4.html#a243a141">REFC_ILLEGAL</a>, <a class="el" href="namespace_3globalScope_4.html#a243a145">REFC_KICK_IN_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a146">REFC_KICK_IN_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a143">REFC_KICK_OFF_LEFT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a144">REFC_KICK_OFF_RIGHT</a>, <a class="el" href="namespace_3globalScope_4.html#a243a157">REFC_OFFSID
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -