diff options
Diffstat (limited to 'Doc/doxygen/html/_steer_a_i_8h_source.html')
-rw-r--r-- | Doc/doxygen/html/_steer_a_i_8h_source.html | 242 |
1 files changed, 0 insertions, 242 deletions
diff --git a/Doc/doxygen/html/_steer_a_i_8h_source.html b/Doc/doxygen/html/_steer_a_i_8h_source.html deleted file mode 100644 index d1c84cd..0000000 --- a/Doc/doxygen/html/_steer_a_i_8h_source.html +++ /dev/null @@ -1,242 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml"> -<head> -<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> -<meta http-equiv="X-UA-Compatible" content="IE=9"/> -<title>Starshatter_Open: D:/SRC/StarshatterSVN/Stars45/SteerAI.h Source File</title> -<link href="tabs.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="jquery.js"></script> -<script type="text/javascript" src="dynsections.js"></script> -<link href="navtree.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="resize.js"></script> -<script type="text/javascript" src="navtree.js"></script> -<script type="text/javascript"> - $(document).ready(initResizable); -</script> -<link href="search/search.css" rel="stylesheet" type="text/css"/> -<script type="text/javascript" src="search/search.js"></script> -<script type="text/javascript"> - $(document).ready(function() { searchBox.OnSelectItem(0); }); -</script> -<link href="doxygen.css" rel="stylesheet" type="text/css" /> -</head> -<body> -<div id="top"><!-- do not remove this div, it is closed by doxygen! --> -<div id="titlearea"> -<table cellspacing="0" cellpadding="0"> - <tbody> - <tr style="height: 56px;"> - <td style="padding-left: 0.5em;"> - <div id="projectname">Starshatter_Open - </div> - <div id="projectbrief">Open source Starshatter engine</div> - </td> - </tr> - </tbody> -</table> -</div> -<!-- end header part --> -<!-- Generated by Doxygen 1.8.1 --> -<script type="text/javascript"> -var searchBox = new SearchBox("searchBox", "search",false,'Search'); -</script> - <div id="navrow1" class="tabs"> - <ul class="tablist"> - <li><a href="index.html"><span>Main Page</span></a></li> - <li><a href="annotated.html"><span>Classes</span></a></li> - <li class="current"><a href="files.html"><span>Files</span></a></li> - <li> - <div id="MSearchBox" class="MSearchBoxInactive"> - <span class="left"> - <img id="MSearchSelect" src="search/mag_sel.png" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - alt=""/> - <input type="text" id="MSearchField" value="Search" accesskey="S" - onfocus="searchBox.OnSearchFieldFocus(true)" - onblur="searchBox.OnSearchFieldFocus(false)" - onkeyup="searchBox.OnSearchFieldChange(event)"/> - </span><span class="right"> - <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> - </span> - </div> - </li> - </ul> - </div> - <div id="navrow2" class="tabs2"> - <ul class="tablist"> - <li><a href="files.html"><span>File List</span></a></li> - <li><a href="globals.html"><span>File Members</span></a></li> - </ul> - </div> -</div><!-- top --> -<div id="side-nav" class="ui-resizable side-nav-resizable"> - <div id="nav-tree"> - <div id="nav-tree-contents"> - </div> - </div> - <div id="splitbar" style="-moz-user-select:none;" - class="ui-resizable-handle"> - </div> -</div> -<script type="text/javascript"> -$(document).ready(function(){initNavTree('_steer_a_i_8h.html','');}); -</script> -<div id="doc-content"> -<!-- window showing the filter options --> -<div id="MSearchSelectWindow" - onmouseover="return searchBox.OnSearchSelectShow()" - onmouseout="return searchBox.OnSearchSelectHide()" - onkeydown="return searchBox.OnSearchSelectKey(event)"> -<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark"> </span>Macros</a></div> - -<!-- iframe showing the search results (closed by default) --> -<div id="MSearchResultsWindow"> -<iframe src="javascript:void(0)" frameborder="0" - name="MSearchResults" id="MSearchResults"> -</iframe> -</div> - -<div class="header"> - <div class="headertitle"> -<div class="title">SteerAI.h</div> </div> -</div><!--header--> -<div class="contents"> -<a href="_steer_a_i_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/* Project Starshatter 4.5</span></div> -<div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> Destroyer Studios LLC</span></div> -<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> Copyright © 1997-2004. All Rights Reserved.</span></div> -<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"></span></div> -<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> SUBSYSTEM: Stars.exe</span></div> -<div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> FILE: SteerAI.h</span></div> -<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> AUTHOR: John DiCamillo</span></div> -<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"></span></div> -<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"></span></div> -<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> OVERVIEW</span></div> -<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> ========</span></div> -<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> Steering (low-level) Artifical Intelligence class</span></div> -<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">*/</span></div> -<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> -<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#ifndef SteerAI_h</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor"></span><span class="preprocessor">#define SteerAI_h</span></div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor"></span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_types_8h.html">Types.h</a>"</span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_sim_object_8h.html">SimObject.h</a>"</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="_director_8h.html">Director.h</a>"</span></div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include "<a class="code" href="_geometry_8h.html">Geometry.h</a>"</span></div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div> -<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="keyword">class </span><a class="code" href="class_system.html">System</a>;</div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> -<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div> -<div class="line"><a name="l00029"></a><span class="lineno"><a class="code" href="struct_steer.html"> 29</a></span> <span class="keyword">struct </span><a class="code" href="struct_steer.html">Steer</a></div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> {</div> -<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="struct_steer.html#a10684c44729e1a2d1863e688f5f7f1c5"> 31</a></span>  <a class="code" href="struct_steer.html#a10684c44729e1a2d1863e688f5f7f1c5">Steer</a>() : <a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>(0), <a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>(0), <a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>(0), <a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>(0), <a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>(0) { }</div> -<div class="line"><a name="l00032"></a><span class="lineno"><a class="code" href="struct_steer.html#ab4f77ec57cde55ca720e1a10e19fb877"> 32</a></span>  <a class="code" href="struct_steer.html#ab4f77ec57cde55ca720e1a10e19fb877">Steer</a>(<span class="keywordtype">double</span> y, <span class="keywordtype">double</span> p, <span class="keywordtype">double</span> r, <span class="keywordtype">double</span> b=0) : <a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>(y), <a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>(p), <a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>(r), <a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>(b), <a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>(0) { }</div> -<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="struct_steer.html#a0e06e7b15a1ad1596de0bc083b6400c4"> 33</a></span>  <a class="code" href="struct_steer.html#a0e06e7b15a1ad1596de0bc083b6400c4">Steer</a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& s) : <a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>(s.<a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>), <a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>(s.<a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>), <a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>(s.<a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>), <a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>(s.<a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>), <a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>(s.<a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>) { }</div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div> -<div class="line"><a name="l00035"></a><span class="lineno"><a class="code" href="struct_steer.html#a2ed221eafb1c9bea69a3fdcbad513019"> 35</a></span>  <a class="code" href="struct_steer.html">Steer</a>& <a class="code" href="struct_steer.html#a2ed221eafb1c9bea69a3fdcbad513019">operator = </a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& s) { <a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>=s.<a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>; <a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>=s.<a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>; <a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>=s.<a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>; <a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a> = s.<a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>; <a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a> = s.<a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>; <span class="keywordflow">return</span> *<span class="keyword">this</span>; }</div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="struct_steer.html#a576438904c756b032fa1eb6e56d54a1e">operator+</a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& s) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="struct_steer.html#a153d93f66efb4f278f351a43835e0e5f">operator-</a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& s) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="struct_steer.html#af7643ae1f2b94797aa4c0e7d224fdeaa">operator*</a>(<span class="keywordtype">double</span> f) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="struct_steer.html#a23dd7de2418835908c47bbe35064e97d">operator/</a>(<span class="keywordtype">double</span> f) <span class="keyword">const</span>;</div> -<div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div> -<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  <a class="code" href="struct_steer.html">Steer</a>& <a class="code" href="struct_steer.html#a58d574f8c64ec05a4a0b59185d548f5d">operator+=</a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& s);</div> -<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <a class="code" href="struct_steer.html">Steer</a>& <a class="code" href="struct_steer.html#acb6b5beb850d964752be81495d03565e">operator-=</a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& s);</div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  <span class="keywordtype">double</span> <a class="code" href="struct_steer.html#a754dddc54c24fd6f7166c9ff028279b3">Magnitude</a>() <span class="keyword">const</span>;</div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> </div> -<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="struct_steer.html#ac14f093d49db58eb928e6497d031c180"> 47</a></span>  <span class="keywordtype">void</span> <a class="code" href="struct_steer.html#ac14f093d49db58eb928e6497d031c180">Clear</a>() { <a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>=0; <a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>=0; <a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>=0; <a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>=0; <a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>=0; }</div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> </div> -<div class="line"><a name="l00049"></a><span class="lineno"><a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4"> 49</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_steer.html#a2711591762905f9f04762f01aa0b90a4">yaw</a>, <a class="code" href="struct_steer.html#a90b852ee5b74a81aea14e0a8a06ce3ce">pitch</a>, <a class="code" href="struct_steer.html#a44d65bc6fe95a57b042459439e4c6dbb">roll</a>;</div> -<div class="line"><a name="l00050"></a><span class="lineno"><a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0"> 50</a></span>  <span class="keywordtype">double</span> <a class="code" href="struct_steer.html#a59f582361ca279f12c68528faab2f8b0">brake</a>;</div> -<div class="line"><a name="l00051"></a><span class="lineno"><a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4"> 51</a></span>  <span class="keywordtype">int</span> <a class="code" href="struct_steer.html#a08241748004e4a20fc77483c6d0b34f4">stop</a>;</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> };</div> -<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div> -<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="class_steer_a_i.html"> 56</a></span> <span class="keyword">class </span><a class="code" href="class_steer_a_i.html">SteerAI</a> : <span class="keyword">public</span> <a class="code" href="class_director.html">Director</a>, <span class="keyword">public</span> <a class="code" href="class_sim_observer.html">SimObserver</a></div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> {</div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">public</span>:</div> -<div class="line"><a name="l00059"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#ab5f1818dcf2918bd33744c178eae1ba2"> 59</a></span>  <span class="keyword">enum</span> <a class="code" href="class_steer_a_i.html#ab5f1818dcf2918bd33744c178eae1ba2">Type</a> { <a class="code" href="class_steer_a_i.html#ab5f1818dcf2918bd33744c178eae1ba2aa3f292fcd0565714850051a709863086">SEEKER</a> = 1000, <a class="code" href="class_steer_a_i.html#ab5f1818dcf2918bd33744c178eae1ba2a539777f4b4f891e03431119a3641613c">FIGHTER</a>, <a class="code" href="class_steer_a_i.html#ab5f1818dcf2918bd33744c178eae1ba2a325bae88d0efc9d3f17b8aadd1b796c8">STARSHIP</a>, <a class="code" href="class_steer_a_i.html#ab5f1818dcf2918bd33744c178eae1ba2abf1a60535ad0067d16d264dc7836b85f">GROUND</a> };</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="class_steer_a_i.html#abb4e9a0f0351fbd8a922ac7944816aa6">SteerAI</a>(<a class="code" href="class_sim_object.html">SimObject</a>* <span class="keyword">self</span>);</div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <span class="keyword">virtual</span> <a class="code" href="class_steer_a_i.html#a59cea34b13d1e46da8c641545d08dcb9">~SteerAI</a>();</div> -<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> -<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  <span class="keyword">static</span> <a class="code" href="class_director.html">Director</a>* <a class="code" href="class_steer_a_i.html#aed3f6a34a1a5e47f37fde0fb294337b0">Create</a>(<a class="code" href="class_sim_object.html">SimObject</a>*, <span class="keywordtype">int</span> type);</div> -<div class="line"><a name="l00065"></a><span class="lineno"> 65</span> </div> -<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_steer_a_i.html#a03059ec411bde689e6fcf911fe563619">SetTarget</a>(<a class="code" href="class_sim_object.html">SimObject</a>* targ, <a class="code" href="class_system.html">System</a>* sub=0);</div> -<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a040e7cf4500cf0b2ced8f365857bad6b"> 67</a></span>  <span class="keyword">virtual</span> <a class="code" href="class_sim_object.html">SimObject</a>* <a class="code" href="class_steer_a_i.html#a040e7cf4500cf0b2ced8f365857bad6b">GetTarget</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_steer_a_i.html#ac4f793f00cc83da25667915a3c014aa0">target</a>; }</div> -<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a157655e15aaf6bc72af66d4a93e61c96"> 68</a></span>  <span class="keyword">virtual</span> <a class="code" href="class_system.html">System</a>* <a class="code" href="class_steer_a_i.html#a157655e15aaf6bc72af66d4a93e61c96">GetSubTarget</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_steer_a_i.html#ae9952003edfbe41039e6bbeb29a3c464">subtarget</a>; }</div> -<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_steer_a_i.html#a0488e32b12164217dc6bc23964537d23">DropTarget</a>(<span class="keywordtype">double</span> drop_time=1.5);</div> -<div class="line"><a name="l00070"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a9891085b2674566443e05bbcf66ffece"> 70</a></span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_steer_a_i.html#a9891085b2674566443e05bbcf66ffece">Type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_steer_a_i.html#aac1b08c72f0c09d1877116623392206a">ai_type</a>; }</div> -<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> </div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="class_steer_a_i.html#a07f4afcbaf72909803fad23675a7a65f">Update</a>(<a class="code" href="class_sim_object.html">SimObject</a>* obj);</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_steer_a_i.html#a4c714172fe9e02e4b9da3c6990902056">GetObserverName</a>() <span class="keyword">const</span>;</div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <span class="comment">// debug:</span></div> -<div class="line"><a name="l00076"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#aa10b7394ca579f4ca6fdda28d942ee4d"> 76</a></span>  <span class="keyword">virtual</span> <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_steer_a_i.html#aa10b7394ca579f4ca6fdda28d942ee4d">GetObjective</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_steer_a_i.html#ae320c18387aee233e6e1f491672ce325">obj_w</a>; }</div> -<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#adaa62f1aa0812d316c4c85aeac0be3d6"> 77</a></span>  <span class="keyword">virtual</span> <a class="code" href="class_sim_object.html">SimObject</a>* <a class="code" href="class_steer_a_i.html#adaa62f1aa0812d316c4c85aeac0be3d6">GetOther</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="class_steer_a_i.html#a3bd62300d5cd6ac279c7c49c81c61361">other</a>; }</div> -<div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="keyword">protected</span>:</div> -<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> </div> -<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">// accumulate behaviors:</span></div> -<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_steer_a_i.html#aa74c49a8dc1da2fb48a65c239034d7ee">Navigator</a>();</div> -<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="class_steer_a_i.html#a427e6c32c935d5e028fabc53ecd965f6">Accumulate</a>(<span class="keyword">const</span> <a class="code" href="struct_steer.html">Steer</a>& steer);</div> -<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> </div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="comment">// steering functions:</span></div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <span class="keyword">virtual</span> <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="class_steer_a_i.html#a3b297a2a20fddc9201304bc6661c5f43">Seek</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& point);</div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <span class="keyword">virtual</span> <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="class_steer_a_i.html#a0270e78f9b8973113afe62c176cc60dd">Flee</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& point);</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <span class="keyword">virtual</span> <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="class_steer_a_i.html#a311ca93e8d04039a10ab21bc91b356ff">Avoid</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& point, <span class="keywordtype">float</span> radius);</div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">virtual</span> <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="class_steer_a_i.html#a08ddefdabe4814ad35f22f645a8b865c">Evade</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& point, <span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& vel);</div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="comment">// compute the goal point based on target stats:</span></div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_steer_a_i.html#af98f3055e1d28dbdcb92f07877fff612">FindObjective</a>();</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  <span class="keyword">virtual</span> <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_steer_a_i.html#a4d28b04b0ff914da64ac29b6b26d62fe">ClosingVelocity</a>();</div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">virtual</span> <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_steer_a_i.html#a3185828caf7a2a31e3090c6c2dfdb6df">Transform</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& pt);</div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  <span class="keyword">virtual</span> <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_steer_a_i.html#a4322a4ff9312091c157e5fd401dd301f">AimTransform</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& pt);</div> -<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div> -<div class="line"><a name="l00098"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a73ce339435c7a6dc14546a573e2e0fe1"> 98</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_steer_a_i.html#a73ce339435c7a6dc14546a573e2e0fe1">seeking</a>;</div> -<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div> -<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a2076de4f560aee92ab1a9b2360058cce"> 100</a></span>  <a class="code" href="class_sim_object.html">SimObject</a>* <span class="keyword">self</span>;</div> -<div class="line"><a name="l00101"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#ac4f793f00cc83da25667915a3c014aa0"> 101</a></span>  <a class="code" href="class_sim_object.html">SimObject</a>* <a class="code" href="class_steer_a_i.html#ac4f793f00cc83da25667915a3c014aa0">target</a>;</div> -<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#ae9952003edfbe41039e6bbeb29a3c464"> 102</a></span>  <a class="code" href="class_system.html">System</a>* <a class="code" href="class_steer_a_i.html#ae9952003edfbe41039e6bbeb29a3c464">subtarget</a>;</div> -<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a3bd62300d5cd6ac279c7c49c81c61361"> 103</a></span>  <a class="code" href="class_sim_object.html">SimObject</a>* <a class="code" href="class_steer_a_i.html#a3bd62300d5cd6ac279c7c49c81c61361">other</a>;</div> -<div class="line"><a name="l00104"></a><span class="lineno"> 104</span> </div> -<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#ae320c18387aee233e6e1f491672ce325"> 105</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_steer_a_i.html#ae320c18387aee233e6e1f491672ce325">obj_w</a>;</div> -<div class="line"><a name="l00106"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a69c6122f22eaea2b8359eeb45ce124b3"> 106</a></span>  <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_steer_a_i.html#a69c6122f22eaea2b8359eeb45ce124b3">objective</a>;</div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span> </div> -<div class="line"><a name="l00108"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a1e534eff7a7002a9d29ae024f37549db"> 108</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_steer_a_i.html#a1e534eff7a7002a9d29ae024f37549db">distance</a>;</div> -<div class="line"><a name="l00109"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#ac416b5a31ce86b522da75cc0369a7616"> 109</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_steer_a_i.html#ae47f8e8ced701208e3d55069a0a9edbf">az</a>[3], <a class="code" href="class_steer_a_i.html#ac416b5a31ce86b522da75cc0369a7616">el</a>[3];</div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> -<div class="line"><a name="l00111"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#aa4bc21a1e5fb48264859c724d4cb4fa1"> 111</a></span>  <a class="code" href="struct_steer.html">Steer</a> <a class="code" href="class_steer_a_i.html#aa4bc21a1e5fb48264859c724d4cb4fa1">accumulator</a>;</div> -<div class="line"><a name="l00112"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a5686355b88ea2b6c9669e04ffba0599d"> 112</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_steer_a_i.html#a5686355b88ea2b6c9669e04ffba0599d">magnitude</a>;</div> -<div class="line"><a name="l00113"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#adc3fbd43eb7abb07761224620318c4d6"> 113</a></span>  DWORD <a class="code" href="class_steer_a_i.html#adc3fbd43eb7abb07761224620318c4d6">evade_time</a>;</div> -<div class="line"><a name="l00114"></a><span class="lineno"> 114</span> </div> -<div class="line"><a name="l00115"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a89230b18769aa51fda789388ef38c347"> 115</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_steer_a_i.html#a89230b18769aa51fda789388ef38c347">seek_gain</a>;</div> -<div class="line"><a name="l00116"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#a6cb67fbb18f4be940fcc3930b9f5c90b"> 116</a></span>  <span class="keywordtype">double</span> <a class="code" href="class_steer_a_i.html#a6cb67fbb18f4be940fcc3930b9f5c90b">seek_damp</a>;</div> -<div class="line"><a name="l00117"></a><span class="lineno"> 117</span> </div> -<div class="line"><a name="l00118"></a><span class="lineno"><a class="code" href="class_steer_a_i.html#aac1b08c72f0c09d1877116623392206a"> 118</a></span>  <span class="keywordtype">int</span> <a class="code" href="class_steer_a_i.html#aac1b08c72f0c09d1877116623392206a">ai_type</a>;</div> -<div class="line"><a name="l00119"></a><span class="lineno"> 119</span> };</div> -<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div> -<div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div> -<div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span> </div> -<div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="preprocessor">#endif SteerAI_h</span></div> -<div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="preprocessor"></span></div> -</div><!-- fragment --></div><!-- contents --> -</div><!-- doc-content --> -<!-- start footer part --> -<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> - <ul> - <li class="navelem"><a class="el" href="dir_ea1b58c809a5070716d7c602998a95b0.html">Stars45</a></li><li class="navelem"><a class="el" href="_steer_a_i_8h.html">SteerAI.h</a></li> - <li class="footer">Generated on Tue Jun 5 2012 20:47:13 for Starshatter_Open by - <a href="http://www.doxygen.org/index.html"> - <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1 </li> - </ul> -</div> -</body> -</html> |