diff options
Diffstat (limited to 'Doc/doxygen/html/_instruction_8cpp_source.html')
-rw-r--r-- | Doc/doxygen/html/_instruction_8cpp_source.html | 686 |
1 files changed, 0 insertions, 686 deletions
diff --git a/Doc/doxygen/html/_instruction_8cpp_source.html b/Doc/doxygen/html/_instruction_8cpp_source.html deleted file mode 100644 index 8eeb0a8..0000000 --- a/Doc/doxygen/html/_instruction_8cpp_source.html +++ /dev/null @@ -1,686 +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/Instruction.cpp 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('_instruction_8cpp.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">Instruction.cpp</div> </div> -</div><!--header--> -<div class="contents"> -<a href="_instruction_8cpp.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: Instruction.cpp</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"> Navigation Point class implementation</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">#include "<a class="code" href="_mem_debug_8h.html">MemDebug.h</a>"</span></div> -<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include "<a class="code" href="_instruction_8h.html">Instruction.h</a>"</span></div> -<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include "<a class="code" href="_element_8h.html">Element.h</a>"</span></div> -<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="preprocessor">#include "<a class="code" href="_radio_message_8h.html">RadioMessage.h</a>"</span></div> -<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include "<a class="code" href="_ship_8h.html">Ship.h</a>"</span></div> -<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include "<a class="code" href="_sim_8h.html">Sim.h</a>"</span></div> -<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> </div> -<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="preprocessor">#include "<a class="code" href="_game_8h.html">Game.h</a>"</span></div> -<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="preprocessor">#include "<a class="code" href="_text_8h.html">Text.h</a>"</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="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div> -<div class="line"><a name="l00027"></a><span class="lineno"><a class="code" href="class_instruction.html#a26bc5b2aa1db2f46ad4a07b7d79d9177"> 27</a></span> <a class="code" href="class_instruction.html#a26bc5b2aa1db2f46ad4a07b7d79d9177">Instruction::Instruction</a>(<span class="keywordtype">int</span> act, <span class="keyword">const</span> <span class="keywordtype">char</span>* tgt)</div> -<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> : region(0), action(act), formation(0), tgt_name(tgt),</div> -<div class="line"><a name="l00029"></a><span class="lineno"> 29</span> status(PENDING), speed(0), target(0), emcon(0), wep_free(0),</div> -<div class="line"><a name="l00030"></a><span class="lineno"> 30</span> priority(PRIMARY), farcast(0), hold_time(0)</div> -<div class="line"><a name="l00031"></a><span class="lineno"> 31</span> { }</div> -<div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div> -<div class="line"><a name="l00033"></a><span class="lineno"><a class="code" href="class_instruction.html#a9c659a10cfb7208d691e82807246d4d5"> 33</a></span> <a class="code" href="class_instruction.html#a26bc5b2aa1db2f46ad4a07b7d79d9177">Instruction::Instruction</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* rgn, <a class="code" href="struct_point.html">Point</a> loc, <span class="keywordtype">int</span> act)</div> -<div class="line"><a name="l00034"></a><span class="lineno"> 34</span> : region(0), action(act), formation(0),</div> -<div class="line"><a name="l00035"></a><span class="lineno"> 35</span> status(PENDING), speed(0), target(0), emcon(0), wep_free(0),</div> -<div class="line"><a name="l00036"></a><span class="lineno"> 36</span> priority(PRIMARY), farcast(0), hold_time(0)</div> -<div class="line"><a name="l00037"></a><span class="lineno"> 37</span> { </div> -<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a> = rgn;</div> -<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#a9cda2c1e5b55b865b7ff9260fd209ce9">SetBaseLocation</a>(loc);</div> -<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#aba9fc4cde01fcd00b93cac3d6bb3ff8f">SetDistance</a>(0);</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> </div> -<div class="line"><a name="l00043"></a><span class="lineno"><a class="code" href="class_instruction.html#ae61c7922c0306a5be14600cf582fede4"> 43</a></span> <a class="code" href="class_instruction.html#a26bc5b2aa1db2f46ad4a07b7d79d9177">Instruction::Instruction</a>(<a class="code" href="class_sim_region.html">SimRegion</a>* rgn, <a class="code" href="struct_point.html">Point</a> loc, <span class="keywordtype">int</span> act)</div> -<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> : region(rgn), action(act), formation(0),</div> -<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> status(PENDING), speed(0), target(0), emcon(0), wep_free(0),</div> -<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> priority(PRIMARY), farcast(0), hold_time(0)</div> -<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> { </div> -<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a> = <a class="code" href="class_instruction.html#a8a8897869111ff300d230fcc79b3fb8d">region</a>-><a class="code" href="class_sim_region.html#a4fb402a63782d520a25954ab9235b1bc">Name</a>();</div> -<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#a9cda2c1e5b55b865b7ff9260fd209ce9">SetBaseLocation</a>(loc);</div> -<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#aba9fc4cde01fcd00b93cac3d6bb3ff8f">SetDistance</a>(0);</div> -<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> }</div> -<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div> -<div class="line"><a name="l00053"></a><span class="lineno"><a class="code" href="class_instruction.html#ade538f337cb4f91c9667f2c90af1b793"> 53</a></span> <a class="code" href="class_instruction.html#a26bc5b2aa1db2f46ad4a07b7d79d9177">Instruction::Instruction</a>(<span class="keyword">const</span> <a class="code" href="class_instruction.html">Instruction</a>& instr)</div> -<div class="line"><a name="l00054"></a><span class="lineno"> 54</span> : region(instr.region), rgn_name(instr.rgn_name),</div> -<div class="line"><a name="l00055"></a><span class="lineno"> 55</span> rloc(instr.rloc), action(instr.action),</div> -<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> formation(instr.formation), status(instr.status), speed(instr.speed),</div> -<div class="line"><a name="l00057"></a><span class="lineno"> 57</span> target(0), tgt_name(instr.tgt_name), tgt_desc(instr.tgt_desc),</div> -<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> emcon(instr.emcon), wep_free(instr.wep_free),</div> -<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> priority(instr.priority), farcast(instr.farcast),</div> -<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> hold_time(instr.hold_time)</div> -<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> {</div> -<div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="class_instruction.html#a98860980e323c68e895e39e514b494a7">SetTarget</a>(instr.<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</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> </div> -<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="class_instruction.html#a26eb634480beff1ad7a20235c11f521d"> 65</a></span> <a class="code" href="class_instruction.html#a26eb634480beff1ad7a20235c11f521d">Instruction::~Instruction</a>()</div> -<div class="line"><a name="l00066"></a><span class="lineno"> 66</span> { }</div> -<div class="line"><a name="l00067"></a><span class="lineno"> 67</span> </div> -<div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div> -<div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <a class="code" href="class_instruction.html">Instruction</a>&</div> -<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="class_instruction.html#a31549eca7e166f9ff9cc830dc70c837d"> 71</a></span> <a class="code" href="class_instruction.html#a31549eca7e166f9ff9cc830dc70c837d">Instruction::operator = </a>(<span class="keyword">const</span> <a class="code" href="class_instruction.html">Instruction</a>& n)</div> -<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> {</div> -<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a> = n.<a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>;</div> -<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="class_instruction.html#a8a8897869111ff300d230fcc79b3fb8d">region</a> = n.<a class="code" href="class_instruction.html#a8a8897869111ff300d230fcc79b3fb8d">region</a>;</div> -<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a> = n.<a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>;</div> -<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a> = n.<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>;</div> -<div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="class_instruction.html#a266cb87ff791c4d9975fcfa2d16f5e04">formation</a> = n.<a class="code" href="class_instruction.html#a266cb87ff791c4d9975fcfa2d16f5e04">formation</a>;</div> -<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> = n.<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a>;</div> -<div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <a class="code" href="class_instruction.html#a8afbdefa464e43c2c1c219f9d3aab7e7">speed</a> = n.<a class="code" href="class_instruction.html#a8afbdefa464e43c2c1c219f9d3aab7e7">speed</a>;</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>  <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a> = n.<a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>;</div> -<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a> = n.<a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>;</div> -<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> = 0;</div> -<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="class_instruction.html#a85cc424c502300862f7db4de5723638e">emcon</a> = n.<a class="code" href="class_instruction.html#a85cc424c502300862f7db4de5723638e">emcon</a>;</div> -<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <a class="code" href="class_instruction.html#a3db02f7ca990ddf5ad46b197658a18ca">wep_free</a> = n.<a class="code" href="class_instruction.html#a3db02f7ca990ddf5ad46b197658a18ca">wep_free</a>;</div> -<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  <a class="code" href="class_instruction.html#a8bb51696f28fa519361bc6c9952e8007">priority</a> = n.<a class="code" href="class_instruction.html#a8bb51696f28fa519361bc6c9952e8007">priority</a>;</div> -<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>  <a class="code" href="class_instruction.html#ac1d3b7706dcb3caf4d9d972896f10fd4">farcast</a> = n.<a class="code" href="class_instruction.html#ac1d3b7706dcb3caf4d9d972896f10fd4">farcast</a>;</div> -<div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_instruction.html#a6c50dc31d561bc49ebda021e533447d5">hold_time</a> = n.<a class="code" href="class_instruction.html#a6c50dc31d561bc49ebda021e533447d5">hold_time</a>;</div> -<div class="line"><a name="l00089"></a><span class="lineno"> 89</span> </div> -<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>  <a class="code" href="class_instruction.html#a98860980e323c68e895e39e514b494a7">SetTarget</a>(n.<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a>);</div> -<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  <span class="keywordflow">return</span> *<span class="keyword">this</span>;</div> -<div class="line"><a name="l00092"></a><span class="lineno"> 92</span> }</div> -<div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div> -<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment">// +--------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00095"></a><span class="lineno"> 95</span> </div> -<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <a class="code" href="struct_point.html">Point</a></div> -<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_instruction.html#aaa1aa8ca619a1731afaa75b63f3f6cd0"> 97</a></span> <a class="code" href="class_instruction.html#aaa1aa8ca619a1731afaa75b63f3f6cd0">Instruction::Location</a>()<span class="keyword"> const</span></div> -<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="keyword"></span>{</div> -<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="class_instruction.html">Instruction</a>* pThis = (<a class="code" href="class_instruction.html">Instruction</a>*) <span class="keyword">this</span>;</div> -<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  <span class="keywordflow">return</span> pThis-><a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#a9dd36e7b4c959eb88377cb3e37f7bf8d">Location</a>();</div> -<div class="line"><a name="l00101"></a><span class="lineno"> 101</span> }</div> -<div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div> -<div class="line"><a name="l00103"></a><span class="lineno"> 103</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00104"></a><span class="lineno"><a class="code" href="class_instruction.html#a1ddf1c25861d2319955e5b737f387a56"> 104</a></span> <a class="code" href="class_instruction.html#a1ddf1c25861d2319955e5b737f387a56">Instruction::SetLocation</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>& l)</div> -<div class="line"><a name="l00105"></a><span class="lineno"> 105</span> {</div> -<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#a9cda2c1e5b55b865b7ff9260fd209ce9">SetBaseLocation</a>(l);</div> -<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#a7edcba6e28502e008c1b640ffaede09a">SetReferenceLoc</a>(0);</div> -<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  <a class="code" href="class_instruction.html#a1ed966f9f5cbe55aa4c076ba792d86ff">rloc</a>.<a class="code" href="class_r_loc.html#aba9fc4cde01fcd00b93cac3d6bb3ff8f">SetDistance</a>(0);</div> -<div class="line"><a name="l00109"></a><span class="lineno"> 109</span> }</div> -<div class="line"><a name="l00110"></a><span class="lineno"> 110</span> </div> -<div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00112"></a><span class="lineno"> 112</span> </div> -<div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <a class="code" href="class_sim_object.html">SimObject</a>*</div> -<div class="line"><a name="l00114"></a><span class="lineno"><a class="code" href="class_instruction.html#a5fe6667a4207dc635a4320b5d7bbaa8b"> 114</a></span> <a class="code" href="class_instruction.html#a5fe6667a4207dc635a4320b5d7bbaa8b">Instruction::GetTarget</a>()</div> -<div class="line"><a name="l00115"></a><span class="lineno"> 115</span> {</div> -<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">if</span> (!<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> && <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>.<a class="code" href="class_text.html#a3dfa250f46fd909c4fe95fc59372838c">length</a>() > 0) {</div> -<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="class_sim.html">Sim</a>* sim = <a class="code" href="class_sim.html#a14b48a472bca6d04230c789fc4beab4c">Sim::GetSim</a>();</div> -<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> </div> -<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">if</span> (sim) {</div> -<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  <a class="code" href="class_ship.html">Ship</a>* s = sim-><a class="code" href="class_sim.html#a7663d64d233b26f3bcfc2a7b7b02e660">FindShip</a>(<a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>, <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>);</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="keywordflow">if</span> (s) {</div> -<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> = s;</div> -<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <a class="code" href="class_sim_observer.html#ae6c9a20e4fd0bcb3590f983a391dd451">Observe</a>(<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a>);</div> -<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  }</div> -<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div> -<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  }</div> -<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div> -<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <span class="keywordflow">return</span> <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a>;</div> -<div class="line"><a name="l00130"></a><span class="lineno"> 130</span> }</div> -<div class="line"><a name="l00131"></a><span class="lineno"> 131</span> </div> -<div class="line"><a name="l00132"></a><span class="lineno"> 132</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00133"></a><span class="lineno"><a class="code" href="class_instruction.html#a98860980e323c68e895e39e514b494a7"> 133</a></span> <a class="code" href="class_instruction.html#a98860980e323c68e895e39e514b494a7">Instruction::SetTarget</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* n)</div> -<div class="line"><a name="l00134"></a><span class="lineno"> 134</span> {</div> -<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <span class="keywordflow">if</span> (n && *n && <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a> != n) {</div> -<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a> = n;</div> -<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a> = n;</div> -<div class="line"><a name="l00138"></a><span class="lineno"> 138</span> </div> -<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a>)</div> -<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> = 0;</div> -<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  }</div> -<div class="line"><a name="l00142"></a><span class="lineno"> 142</span> }</div> -<div class="line"><a name="l00143"></a><span class="lineno"> 143</span> </div> -<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00145"></a><span class="lineno"><a class="code" href="class_instruction.html#a3b9a8d2045018472357428fbb357cd9f"> 145</a></span> <a class="code" href="class_instruction.html#a98860980e323c68e895e39e514b494a7">Instruction::SetTarget</a>(<a class="code" href="class_sim_object.html">SimObject</a>* s)</div> -<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> {</div> -<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="keywordflow">if</span> (s && <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> != s) {</div> -<div class="line"><a name="l00148"></a><span class="lineno"> 148</span>  <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a> = s-><a class="code" href="class_physical.html#a805a89f8e93e2e66452b5cb6ab0c5f6b">Name</a>();</div> -<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> = s;</div> -<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>  <a class="code" href="class_sim_observer.html#ae6c9a20e4fd0bcb3590f983a391dd451">Observe</a>(<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a>);</div> -<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>  }</div> -<div class="line"><a name="l00152"></a><span class="lineno"> 152</span> }</div> -<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> </div> -<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00155"></a><span class="lineno"><a class="code" href="class_instruction.html#af0e0f2d153e53ec47e7052cc37e5044f"> 155</a></span> <a class="code" href="class_instruction.html#af0e0f2d153e53ec47e7052cc37e5044f">Instruction::SetTargetDesc</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* d)</div> -<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> {</div> -<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  <span class="keywordflow">if</span> (d && *d)</div> -<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a> = d;</div> -<div class="line"><a name="l00159"></a><span class="lineno"> 159</span> }</div> -<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div> -<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00162"></a><span class="lineno"><a class="code" href="class_instruction.html#a8677ceb0b7e6e06a0b870a1e98e33a5f"> 162</a></span> <a class="code" href="class_instruction.html#a8677ceb0b7e6e06a0b870a1e98e33a5f">Instruction::ClearTarget</a>()</div> -<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> {</div> -<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a>) {</div> -<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> = 0;</div> -<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>  <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a> = <span class="stringliteral">""</span>;</div> -<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a> = <span class="stringliteral">""</span>;</div> -<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  }</div> -<div class="line"><a name="l00169"></a><span class="lineno"> 169</span> }</div> -<div class="line"><a name="l00170"></a><span class="lineno"> 170</span> </div> -<div class="line"><a name="l00171"></a><span class="lineno"> 171</span> <span class="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00172"></a><span class="lineno"> 172</span> </div> -<div class="line"><a name="l00173"></a><span class="lineno"> 173</span> <span class="keywordtype">bool</span></div> -<div class="line"><a name="l00174"></a><span class="lineno"><a class="code" href="class_instruction.html#a53a60f1c445d1141a117cd1523bdba4f"> 174</a></span> <a class="code" href="class_instruction.html#a53a60f1c445d1141a117cd1523bdba4f">Instruction::Update</a>(<a class="code" href="class_sim_object.html">SimObject</a>* obj)</div> -<div class="line"><a name="l00175"></a><span class="lineno"> 175</span> {</div> -<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> == obj)</div> -<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <a class="code" href="class_instruction.html#a6067191b971729a324a02fec1c82dbb9">target</a> = 0;</div> -<div class="line"><a name="l00178"></a><span class="lineno"> 178</span> </div> -<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keywordflow">return</span> <a class="code" href="class_instruction.html#a53a60f1c445d1141a117cd1523bdba4f">SimObserver::Update</a>(obj);</div> -<div class="line"><a name="l00180"></a><span class="lineno"> 180</span> }</div> -<div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div> -<div class="line"><a name="l00182"></a><span class="lineno"> 182</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00183"></a><span class="lineno"><a class="code" href="class_instruction.html#ac040542c51558b6964a115a8f5de4284"> 183</a></span> <a class="code" href="class_instruction.html#ac040542c51558b6964a115a8f5de4284">Instruction::GetObserverName</a>()<span class="keyword"> const</span></div> -<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="keyword"></span>{</div> -<div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <span class="keywordflow">return</span> <span class="stringliteral">"Instruction"</span>;</div> -<div class="line"><a name="l00186"></a><span class="lineno"> 186</span> }</div> -<div class="line"><a name="l00187"></a><span class="lineno"> 187</span> </div> -<div class="line"><a name="l00188"></a><span class="lineno"> 188</span> <span class="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div> -<div class="line"><a name="l00190"></a><span class="lineno"> 190</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00191"></a><span class="lineno"><a class="code" href="class_instruction.html#ac66f4cf0fc20f8f4ef7a32cede7f6780"> 191</a></span> <a class="code" href="class_instruction.html#ac66f4cf0fc20f8f4ef7a32cede7f6780">Instruction::Evaluate</a>(<a class="code" href="class_ship.html">Ship</a>* ship)</div> -<div class="line"><a name="l00192"></a><span class="lineno"> 192</span> {</div> -<div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  <a class="code" href="class_sim.html">Sim</a>* sim = <a class="code" href="class_sim.html#a14b48a472bca6d04230c789fc4beab4c">Sim::GetSim</a>();</div> -<div class="line"><a name="l00194"></a><span class="lineno"> 194</span> </div> -<div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <span class="keywordflow">switch</span> (<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>) {</div> -<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea0dbb21349c8db0d97a90aeaef61f7a4f">VECTOR</a>:</div> -<div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00198"></a><span class="lineno"> 198</span> </div> -<div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea8843f5ae1ae1746e2187fea5e38b0346">LAUNCH</a>:</div> -<div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">if</span> (ship-><a class="code" href="class_ship.html#ae1307229a8e74306e2c26f4d12c6a38f">GetFlightPhase</a>() == <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a93f1bdbe97e70bcae510dc9a070c173e">Ship::ACTIVE</a>)</div> -<div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>);</div> -<div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00203"></a><span class="lineno"> 203</span> </div> -<div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea4a9d4a6a2822f4af59e8a3a2161652ae">DOCK</a>:</div> -<div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea2b3abe9cc1504fb2196d41afdbea4307">RTB</a>:</div> -<div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">if</span> (sim-><a class="code" href="class_sim.html#a77c21538f4c452ea5ae3d2f8af689893">GetPlayerShip</a>() == ship &&</div> -<div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  (ship-><a class="code" href="class_ship.html#ae1307229a8e74306e2c26f4d12c6a38f">GetFlightPhase</a>() == <a class="code" href="class_ship.html#a4d0e058f0446563382399b0a34a3faa7a409e6143eac19742d2ecff6c0a3cce18">Ship::DOCKING</a> ||</div> -<div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  ship-><a class="code" href="class_ship.html#ae1307229a8e74306e2c26f4d12c6a38f">GetFlightPhase</a>() == <a class="code" href="class_ship.html#a4d0e058f0446563382399b0a34a3faa7a7afc3fdaaa1f9da4e9516962abeccedb">Ship::DOCKED</a>))</div> -<div class="line"><a name="l00209"></a><span class="lineno"> 209</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>);</div> -<div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (ship-><a class="code" href="class_physical.html#ad665e179e85f6d2f19536cf54b7f03a5">Integrity</a>() < 1)</div> -<div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a0c2bdfd1318fb40281279637c7331d28">FAILED</a>);</div> -<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div> -<div class="line"><a name="l00214"></a><span class="lineno"> 214</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaf6e9374851a1d4404fd3f983e2250df6">DEFEND</a>:</div> -<div class="line"><a name="l00215"></a><span class="lineno"> 215</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eabe3c2602dd1d12628c0f05007323f9e8">ESCORT</a>:</div> -<div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  {</div> -<div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keywordtype">bool</span> found = <span class="keyword">false</span>;</div> -<div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordtype">bool</span> safe = <span class="keyword">true</span>;</div> -<div class="line"><a name="l00219"></a><span class="lineno"> 219</span> </div> -<div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  <a class="code" href="class_list_iter.html">ListIter<Element></a> iter = sim-><a class="code" href="class_sim.html#acfbb732b454918e716bd7d090d8e2d9e">GetElements</a>();</div> -<div class="line"><a name="l00221"></a><span class="lineno"> 221</span>  <span class="keywordflow">while</span> (++iter && !found) {</div> -<div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="class_element.html">Element</a>* e = iter.<a class="code" href="class_list_iter.html#a70cb1260924c01a38c4a68552120a5e0">value</a>();</div> -<div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div> -<div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#ac03c1d6ba71f222b6f1373b5ff3914de">IsFinished</a>() || e-><a class="code" href="class_element.html#a4d6d2d4bf809d5390d8da32b603a6025">IsSquadron</a>())</div> -<div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  <span class="keywordflow">continue</span>;</div> -<div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div> -<div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#ae56e330366d3de4a3e378d422d9c1d95">Name</a>() == <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a> || </div> -<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  (e-><a class="code" href="class_element.html#ab8b1946954e123c825d65a4b7c84cd25">GetCommander</a>() && e-><a class="code" href="class_element.html#ab8b1946954e123c825d65a4b7c84cd25">GetCommander</a>()-><a class="code" href="class_element.html#ae56e330366d3de4a3e378d422d9c1d95">Name</a>() == <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>)) {</div> -<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div> -<div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  found = <span class="keyword">true</span>;</div> -<div class="line"><a name="l00231"></a><span class="lineno"> 231</span> </div> -<div class="line"><a name="l00232"></a><span class="lineno"> 232</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < e-><a class="code" href="class_element.html#ab04f719f13d6b4b45fe71c81d88b0200">NumShips</a>(); i++) {</div> -<div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="class_ship.html">Ship</a>* s = e-><a class="code" href="class_element.html#a0d8d831ad366c226352afd1c39658fda">GetShip</a>(i+1);</div> -<div class="line"><a name="l00234"></a><span class="lineno"> 234</span> </div> -<div class="line"><a name="l00235"></a><span class="lineno"> 235</span>  <span class="keywordflow">if</span> (s && s-><a class="code" href="class_physical.html#ad665e179e85f6d2f19536cf54b7f03a5">Integrity</a>() < 1)</div> -<div class="line"><a name="l00236"></a><span class="lineno"> 236</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a0c2bdfd1318fb40281279637c7331d28">FAILED</a>);</div> -<div class="line"><a name="l00237"></a><span class="lineno"> 237</span>  }</div> -<div class="line"><a name="l00238"></a><span class="lineno"> 238</span> </div> -<div class="line"><a name="l00239"></a><span class="lineno"> 239</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> == <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a>) {</div> -<div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  <span class="comment">// if the element had a flight plan, and all nav points</span></div> -<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  <span class="comment">// have been addressed, then the element is safe</span></div> -<div class="line"><a name="l00242"></a><span class="lineno"> 242</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#afd9f907bcf7fda3391a3e6ff8184289a">FlightPlanLength</a>() > 0) {</div> -<div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#ad3dc0b78467f658d536174518ec2dc42">GetNextNavPoint</a>() == 0)</div> -<div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>);</div> -<div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  <span class="keywordflow">else</span></div> -<div class="line"><a name="l00246"></a><span class="lineno"> 246</span>  safe = <span class="keyword">false</span>;</div> -<div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  }</div> -<div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  }</div> -<div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  }</div> -<div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  }</div> -<div class="line"><a name="l00251"></a><span class="lineno"> 251</span> </div> -<div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> == <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a> && safe &&</div> -<div class="line"><a name="l00253"></a><span class="lineno"> 253</span>  sim-><a class="code" href="class_sim.html#a77c21538f4c452ea5ae3d2f8af689893">GetPlayerShip</a>() == ship &&</div> -<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  (ship-><a class="code" href="class_ship.html#ae1307229a8e74306e2c26f4d12c6a38f">GetFlightPhase</a>() == <a class="code" href="class_ship.html#a4d0e058f0446563382399b0a34a3faa7a409e6143eac19742d2ecff6c0a3cce18">Ship::DOCKING</a> ||</div> -<div class="line"><a name="l00255"></a><span class="lineno"> 255</span>  ship-><a class="code" href="class_ship.html#ae1307229a8e74306e2c26f4d12c6a38f">GetFlightPhase</a>() == <a class="code" href="class_ship.html#a4d0e058f0446563382399b0a34a3faa7a7afc3fdaaa1f9da4e9516962abeccedb">Ship::DOCKED</a>)) {</div> -<div class="line"><a name="l00256"></a><span class="lineno"> 256</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>);</div> -<div class="line"><a name="l00257"></a><span class="lineno"> 257</span>  }</div> -<div class="line"><a name="l00258"></a><span class="lineno"> 258</span>  }</div> -<div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div> -<div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaa25fb342fbc00b1651f741d3908196d9">PATROL</a>:</div> -<div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea22995ea75bfbcc2a757b35724f38bd28">SWEEP</a>:</div> -<div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  {</div> -<div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <a class="code" href="class_sim.html">Sim</a>* sim = <a class="code" href="class_sim.html#a14b48a472bca6d04230c789fc4beab4c">Sim::GetSim</a>();</div> -<div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  <span class="keywordtype">bool</span> alive = <span class="keyword">false</span>;</div> -<div class="line"><a name="l00266"></a><span class="lineno"> 266</span> </div> -<div class="line"><a name="l00267"></a><span class="lineno"> 267</span>  <a class="code" href="class_list_iter.html">ListIter<Element></a> iter = sim-><a class="code" href="class_sim.html#acfbb732b454918e716bd7d090d8e2d9e">GetElements</a>();</div> -<div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keywordflow">while</span> (++iter) {</div> -<div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <a class="code" href="class_element.html">Element</a>* e = iter.<a class="code" href="class_list_iter.html#a70cb1260924c01a38c4a68552120a5e0">value</a>();</div> -<div class="line"><a name="l00270"></a><span class="lineno"> 270</span> </div> -<div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#ac03c1d6ba71f222b6f1373b5ff3914de">IsFinished</a>() || e-><a class="code" href="class_element.html#a4d6d2d4bf809d5390d8da32b603a6025">IsSquadron</a>())</div> -<div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <span class="keywordflow">continue</span>;</div> -<div class="line"><a name="l00273"></a><span class="lineno"> 273</span> </div> -<div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#aba5096f9ce66fef416e519ba36d7007e">GetIFF</a>() && e-><a class="code" href="class_element.html#aba5096f9ce66fef416e519ba36d7007e">GetIFF</a>() != ship-><a class="code" href="class_ship.html#a5e603faf7321fb04d5b306d70ae6b9ca">GetIFF</a>()) {</div> -<div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < e-><a class="code" href="class_element.html#ab04f719f13d6b4b45fe71c81d88b0200">NumShips</a>(); i++) {</div> -<div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  <a class="code" href="class_ship.html">Ship</a>* s = e-><a class="code" href="class_element.html#a0d8d831ad366c226352afd1c39658fda">GetShip</a>(i+1);</div> -<div class="line"><a name="l00277"></a><span class="lineno"> 277</span> </div> -<div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <span class="keywordflow">if</span> (s && s-><a class="code" href="class_physical.html#ad665e179e85f6d2f19536cf54b7f03a5">Integrity</a>() >= 1)</div> -<div class="line"><a name="l00279"></a><span class="lineno"> 279</span>  alive = <span class="keyword">true</span>;</div> -<div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  }</div> -<div class="line"><a name="l00281"></a><span class="lineno"> 281</span>  }</div> -<div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  }</div> -<div class="line"><a name="l00283"></a><span class="lineno"> 283</span> </div> -<div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> == <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a> && !alive) {</div> -<div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>);</div> -<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  }</div> -<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  }</div> -<div class="line"><a name="l00288"></a><span class="lineno"> 288</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00289"></a><span class="lineno"> 289</span> </div> -<div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea5ab8ce2a19e57a62611e5b82c8f2f894">INTERCEPT</a>:</div> -<div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea637e24c0b953f7c85be8df5ef2edf09a">STRIKE</a>:</div> -<div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea21183f0971d62b6d6c716f4fa1ba0451">ASSAULT</a>:</div> -<div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  {</div> -<div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  <a class="code" href="class_sim.html">Sim</a>* sim = <a class="code" href="class_sim.html#a14b48a472bca6d04230c789fc4beab4c">Sim::GetSim</a>();</div> -<div class="line"><a name="l00295"></a><span class="lineno"> 295</span>  <span class="keywordtype">bool</span> alive = <span class="keyword">false</span>;</div> -<div class="line"><a name="l00296"></a><span class="lineno"> 296</span> </div> -<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <a class="code" href="class_list_iter.html">ListIter<Element></a> iter = sim-><a class="code" href="class_sim.html#acfbb732b454918e716bd7d090d8e2d9e">GetElements</a>();</div> -<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  <span class="keywordflow">while</span> (++iter) {</div> -<div class="line"><a name="l00299"></a><span class="lineno"> 299</span>  <a class="code" href="class_element.html">Element</a>* e = iter.<a class="code" href="class_list_iter.html#a70cb1260924c01a38c4a68552120a5e0">value</a>();</div> -<div class="line"><a name="l00300"></a><span class="lineno"> 300</span> </div> -<div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#ac03c1d6ba71f222b6f1373b5ff3914de">IsFinished</a>() || e-><a class="code" href="class_element.html#a4d6d2d4bf809d5390d8da32b603a6025">IsSquadron</a>())</div> -<div class="line"><a name="l00302"></a><span class="lineno"> 302</span>  <span class="keywordflow">continue</span>;</div> -<div class="line"><a name="l00303"></a><span class="lineno"> 303</span> </div> -<div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <span class="keywordflow">if</span> (e-><a class="code" href="class_element.html#ae56e330366d3de4a3e378d422d9c1d95">Name</a>() == <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>) {</div> -<div class="line"><a name="l00305"></a><span class="lineno"> 305</span>  <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i < e-><a class="code" href="class_element.html#ab04f719f13d6b4b45fe71c81d88b0200">NumShips</a>(); i++) {</div> -<div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <a class="code" href="class_ship.html">Ship</a>* s = e-><a class="code" href="class_element.html#a0d8d831ad366c226352afd1c39658fda">GetShip</a>(i+1);</div> -<div class="line"><a name="l00307"></a><span class="lineno"> 307</span> </div> -<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  <span class="keywordflow">if</span> (s && s-><a class="code" href="class_physical.html#ad665e179e85f6d2f19536cf54b7f03a5">Integrity</a>() >= 1)</div> -<div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  alive = <span class="keyword">true</span>;</div> -<div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  }</div> -<div class="line"><a name="l00311"></a><span class="lineno"> 311</span>  }</div> -<div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  }</div> -<div class="line"><a name="l00313"></a><span class="lineno"> 313</span> </div> -<div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> == <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a> && !alive) {</div> -<div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">SetStatus</a>(<a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>);</div> -<div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  }</div> -<div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  }</div> -<div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00319"></a><span class="lineno"> 319</span> </div> -<div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea48504aa9efcfdd6ad05baa7fafe8dcb8">RECON</a>:</div> -<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00322"></a><span class="lineno"> 322</span> </div> -<div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  <span class="keywordflow">default</span>:</div> -<div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  }</div> -<div class="line"><a name="l00326"></a><span class="lineno"> 326</span> }</div> -<div class="line"><a name="l00327"></a><span class="lineno"> 327</span> </div> -<div class="line"><a name="l00328"></a><span class="lineno"> 328</span> <span class="keywordtype">void</span></div> -<div class="line"><a name="l00329"></a><span class="lineno"><a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a"> 329</a></span> <a class="code" href="class_instruction.html#ac2adc4dcc416730878bd250172b6341a">Instruction::SetStatus</a>(<span class="keywordtype">int</span> s)</div> -<div class="line"><a name="l00330"></a><span class="lineno"> 330</span> {</div> -<div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  <a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> = s;</div> -<div class="line"><a name="l00332"></a><span class="lineno"> 332</span> }</div> -<div class="line"><a name="l00333"></a><span class="lineno"> 333</span> </div> -<div class="line"><a name="l00334"></a><span class="lineno"> 334</span> <span class="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div> -<div class="line"><a name="l00336"></a><span class="lineno"> 336</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00337"></a><span class="lineno"><a class="code" href="class_instruction.html#ae5115d19a4b479958984111611f04c1f"> 337</a></span> <a class="code" href="class_instruction.html#ae5115d19a4b479958984111611f04c1f">Instruction::GetShortDescription</a>()<span class="keyword"> const</span></div> -<div class="line"><a name="l00338"></a><span class="lineno"> 338</span> <span class="keyword"></span>{</div> -<div class="line"><a name="l00339"></a><span class="lineno"> 339</span>  <span class="keyword">static</span> <span class="keywordtype">char</span> desc[256];</div> -<div class="line"><a name="l00340"></a><span class="lineno"> 340</span> </div> -<div class="line"><a name="l00341"></a><span class="lineno"> 341</span>  <span class="keywordflow">switch</span> (<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>) {</div> -<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea0dbb21349c8db0d97a90aeaef61f7a4f">VECTOR</a>:</div> -<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#ac1d3b7706dcb3caf4d9d972896f10fd4">farcast</a>)</div> -<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.farcast"</span>).data(), <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="keywordflow">else</span></div> -<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.vector"</span>).data(), <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div> -<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea8843f5ae1ae1746e2187fea5e38b0346">LAUNCH</a>:</div> -<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.launch"</span>).data(), <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00352"></a><span class="lineno"> 352</span> </div> -<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea4a9d4a6a2822f4af59e8a3a2161652ae">DOCK</a>:</div> -<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.dock"</span>).data(), <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00356"></a><span class="lineno"> 356</span> </div> -<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea2b3abe9cc1504fb2196d41afdbea4307">RTB</a>:</div> -<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.return-to-base"</span>).data());</div> -<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00360"></a><span class="lineno"> 360</span> </div> -<div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaf6e9374851a1d4404fd3f983e2250df6">DEFEND</a>:</div> -<div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a8bb51696f28fa519361bc6c9952e8007">priority</a> == <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8a90426b6d4ca367dab5bb2dca49249753">PRIMARY</a>) {</div> -<div class="line"><a name="l00363"></a><span class="lineno"> 363</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.defend"</span>).data(), <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">ActionName</a>(<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  }</div> -<div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  <span class="keywordflow">else</span> {</div> -<div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.protect"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  }</div> -<div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00369"></a><span class="lineno"> 369</span> </div> -<div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eabe3c2602dd1d12628c0f05007323f9e8">ESCORT</a>:</div> -<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a8bb51696f28fa519361bc6c9952e8007">priority</a> == <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8a90426b6d4ca367dab5bb2dca49249753">PRIMARY</a>) {</div> -<div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.escort"</span>).data(), <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">ActionName</a>(<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  }</div> -<div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  <span class="keywordflow">else</span> {</div> -<div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.protect"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  }</div> -<div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div> -<div class="line"><a name="l00379"></a><span class="lineno"> 379</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaa25fb342fbc00b1651f741d3908196d9">PATROL</a>:</div> -<div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.patrol"</span>).data(),</div> -<div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>(),</div> -<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00384"></a><span class="lineno"> 384</span> </div> -<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea22995ea75bfbcc2a757b35724f38bd28">SWEEP</a>:</div> -<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.sweep"</span>).data(),</div> -<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>(),</div> -<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00390"></a><span class="lineno"> 390</span> </div> -<div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea5ab8ce2a19e57a62611e5b82c8f2f894">INTERCEPT</a>:</div> -<div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.intercept"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00394"></a><span class="lineno"> 394</span> </div> -<div class="line"><a name="l00395"></a><span class="lineno"> 395</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea637e24c0b953f7c85be8df5ef2edf09a">STRIKE</a>:</div> -<div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.strike"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00397"></a><span class="lineno"> 397</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00398"></a><span class="lineno"> 398</span> </div> -<div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea21183f0971d62b6d6c716f4fa1ba0451">ASSAULT</a>:</div> -<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.assault"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div> -<div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea48504aa9efcfdd6ad05baa7fafe8dcb8">RECON</a>:</div> -<div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.short.recon"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00405"></a><span class="lineno"> 405</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00406"></a><span class="lineno"> 406</span> </div> -<div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <span class="keywordflow">default</span>:</div> -<div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  sprintf_s(desc, <span class="stringliteral">"%s"</span>, <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">ActionName</a>(<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>));</div> -<div class="line"><a name="l00409"></a><span class="lineno"> 409</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  }</div> -<div class="line"><a name="l00411"></a><span class="lineno"> 411</span> </div> -<div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> != <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a>) {</div> -<div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  strcat_s(desc, <span class="stringliteral">" - "</span>);</div> -<div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  strcat_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<a class="code" href="class_instruction.html#aad6097bee05a6778fbd21d2d64c7a062">StatusName</a>(<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a>)));</div> -<div class="line"><a name="l00415"></a><span class="lineno"> 415</span>  }</div> -<div class="line"><a name="l00416"></a><span class="lineno"> 416</span> </div> -<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="keywordflow">return</span> desc;</div> -<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> }</div> -<div class="line"><a name="l00419"></a><span class="lineno"> 419</span> </div> -<div class="line"><a name="l00420"></a><span class="lineno"> 420</span> <span class="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div> -<div class="line"><a name="l00422"></a><span class="lineno"> 422</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00423"></a><span class="lineno"><a class="code" href="class_instruction.html#ad6991c2a69ee5b5a4db7c3c321dbf01e"> 423</a></span> <a class="code" href="class_instruction.html#ad6991c2a69ee5b5a4db7c3c321dbf01e">Instruction::GetDescription</a>()<span class="keyword"> const</span></div> -<div class="line"><a name="l00424"></a><span class="lineno"> 424</span> <span class="keyword"></span>{</div> -<div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keyword">static</span> <span class="keywordtype">char</span> desc[1024];</div> -<div class="line"><a name="l00426"></a><span class="lineno"> 426</span> </div> -<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  <span class="keywordflow">switch</span> (<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>) {</div> -<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea0dbb21349c8db0d97a90aeaef61f7a4f">VECTOR</a>:</div> -<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#ac1d3b7706dcb3caf4d9d972896f10fd4">farcast</a>)</div> -<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.farcast"</span>).data(), <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="keywordflow">else</span></div> -<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.vector"</span>).data(), <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00433"></a><span class="lineno"> 433</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00434"></a><span class="lineno"> 434</span> </div> -<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea8843f5ae1ae1746e2187fea5e38b0346">LAUNCH</a>:</div> -<div class="line"><a name="l00436"></a><span class="lineno"> 436</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.launch"</span>).data(), <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00438"></a><span class="lineno"> 438</span> </div> -<div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea4a9d4a6a2822f4af59e8a3a2161652ae">DOCK</a>:</div> -<div class="line"><a name="l00440"></a><span class="lineno"> 440</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.dock"</span>).data(), <a class="code" href="class_instruction.html#a777b733d4ca28345fa0c960a94ee23cc">tgt_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div> -<div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea2b3abe9cc1504fb2196d41afdbea4307">RTB</a>:</div> -<div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.return-to-base"</span>).data());</div> -<div class="line"><a name="l00445"></a><span class="lineno"> 445</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div> -<div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaf6e9374851a1d4404fd3f983e2250df6">DEFEND</a>:</div> -<div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a8bb51696f28fa519361bc6c9952e8007">priority</a> == <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8a90426b6d4ca367dab5bb2dca49249753">PRIMARY</a>) {</div> -<div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.defend"</span>).data(), <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">ActionName</a>(<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  }</div> -<div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  <span class="keywordflow">else</span> {</div> -<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.protect"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00453"></a><span class="lineno"> 453</span>  }</div> -<div class="line"><a name="l00454"></a><span class="lineno"> 454</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00455"></a><span class="lineno"> 455</span> </div> -<div class="line"><a name="l00456"></a><span class="lineno"> 456</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eabe3c2602dd1d12628c0f05007323f9e8">ESCORT</a>:</div> -<div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a8bb51696f28fa519361bc6c9952e8007">priority</a> == <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8a90426b6d4ca367dab5bb2dca49249753">PRIMARY</a>) {</div> -<div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.escort"</span>).data(), <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">ActionName</a>(<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  }</div> -<div class="line"><a name="l00460"></a><span class="lineno"> 460</span>  <span class="keywordflow">else</span> {</div> -<div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.protect"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00462"></a><span class="lineno"> 462</span>  }</div> -<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> </div> -<div class="line"><a name="l00465"></a><span class="lineno"> 465</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaa25fb342fbc00b1651f741d3908196d9">PATROL</a>:</div> -<div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.patrol"</span>).data(),</div> -<div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>(),</div> -<div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00469"></a><span class="lineno"> 469</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00470"></a><span class="lineno"> 470</span> </div> -<div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea22995ea75bfbcc2a757b35724f38bd28">SWEEP</a>:</div> -<div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.sweep"</span>).data(),</div> -<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>(),</div> -<div class="line"><a name="l00474"></a><span class="lineno"> 474</span>  <a class="code" href="class_instruction.html#a5715bcb2fcfeaba2e1c56b43fc5b4ce5">rgn_name</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00475"></a><span class="lineno"> 475</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> </div> -<div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea5ab8ce2a19e57a62611e5b82c8f2f894">INTERCEPT</a>:</div> -<div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.intercept"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00480"></a><span class="lineno"> 480</span> </div> -<div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea637e24c0b953f7c85be8df5ef2edf09a">STRIKE</a>:</div> -<div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.strike"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00483"></a><span class="lineno"> 483</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00484"></a><span class="lineno"> 484</span> </div> -<div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea21183f0971d62b6d6c716f4fa1ba0451">ASSAULT</a>:</div> -<div class="line"><a name="l00486"></a><span class="lineno"> 486</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.assault"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00488"></a><span class="lineno"> 488</span> </div> -<div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea48504aa9efcfdd6ad05baa7fafe8dcb8">RECON</a>:</div> -<div class="line"><a name="l00490"></a><span class="lineno"> 490</span>  sprintf_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<span class="stringliteral">"instr.long.recon"</span>).data(), <a class="code" href="class_instruction.html#a5a65faaa2230c570eabd530a76908548">tgt_desc</a>.<a class="code" href="class_text.html#aae848844d712fd439b42fe6fb8d89bd6">data</a>());</div> -<div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00492"></a><span class="lineno"> 492</span> </div> -<div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  <span class="keywordflow">default</span>:</div> -<div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  sprintf_s(desc, <span class="stringliteral">"%s"</span>, <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">ActionName</a>(<a class="code" href="class_instruction.html#abf039c131f20a2b7fc4216df0e738845">action</a>));</div> -<div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <span class="keywordflow">break</span>;</div> -<div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  }</div> -<div class="line"><a name="l00497"></a><span class="lineno"> 497</span> </div> -<div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="keywordflow">if</span> (<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a> != <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a>) {</div> -<div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  strcat_s(desc, <span class="stringliteral">" - "</span>);</div> -<div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  strcat_s(desc, <a class="code" href="class_game.html#a80f0de6fe1883b6b0e4c67b3e16afb2f">Game::GetText</a>(<a class="code" href="class_instruction.html#aad6097bee05a6778fbd21d2d64c7a062">StatusName</a>(<a class="code" href="class_instruction.html#a2e1cfd70ec5975619611e52ae886f7a2">status</a>)));</div> -<div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  }</div> -<div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div> -<div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <span class="keywordflow">return</span> desc;</div> -<div class="line"><a name="l00504"></a><span class="lineno"> 504</span> }</div> -<div class="line"><a name="l00505"></a><span class="lineno"> 505</span> </div> -<div class="line"><a name="l00506"></a><span class="lineno"> 506</span> <span class="comment">// +----------------------------------------------------------------------+</span></div> -<div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div> -<div class="line"><a name="l00508"></a><span class="lineno"> 508</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00509"></a><span class="lineno"><a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1"> 509</a></span> <a class="code" href="class_instruction.html#a22e91a56c7a72792edbbb3863b2a19f1">Instruction::ActionName</a>(<span class="keywordtype">int</span> a)</div> -<div class="line"><a name="l00510"></a><span class="lineno"> 510</span> {</div> -<div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  <span class="keywordflow">switch</span> (a) {</div> -<div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea0dbb21349c8db0d97a90aeaef61f7a4f">VECTOR</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Vector"</span>;</div> -<div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea8843f5ae1ae1746e2187fea5e38b0346">LAUNCH</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Launch"</span>;</div> -<div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea4a9d4a6a2822f4af59e8a3a2161652ae">DOCK</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Dock"</span>;</div> -<div class="line"><a name="l00515"></a><span class="lineno"> 515</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea2b3abe9cc1504fb2196d41afdbea4307">RTB</a>: <span class="keywordflow">return</span> <span class="stringliteral">"RTB"</span>;</div> -<div class="line"><a name="l00516"></a><span class="lineno"> 516</span> </div> -<div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaf6e9374851a1d4404fd3f983e2250df6">DEFEND</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Defend"</span>;</div> -<div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eabe3c2602dd1d12628c0f05007323f9e8">ESCORT</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Escort"</span>;</div> -<div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459eaa25fb342fbc00b1651f741d3908196d9">PATROL</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Patrol"</span>;</div> -<div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea22995ea75bfbcc2a757b35724f38bd28">SWEEP</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Sweep"</span>;</div> -<div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea5ab8ce2a19e57a62611e5b82c8f2f894">INTERCEPT</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Intercept"</span>;</div> -<div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea637e24c0b953f7c85be8df5ef2edf09a">STRIKE</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Strike"</span>;</div> -<div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea21183f0971d62b6d6c716f4fa1ba0451">ASSAULT</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Assault"</span>;</div> -<div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a18f720d48a5aad2189fddc62c37a459ea48504aa9efcfdd6ad05baa7fafe8dcb8">RECON</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Recon"</span>;</div> -<div class="line"><a name="l00525"></a><span class="lineno"> 525</span> </div> -<div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div> -<div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  }</div> -<div class="line"><a name="l00528"></a><span class="lineno"> 528</span> }</div> -<div class="line"><a name="l00529"></a><span class="lineno"> 529</span> </div> -<div class="line"><a name="l00530"></a><span class="lineno"> 530</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00531"></a><span class="lineno"><a class="code" href="class_instruction.html#aad6097bee05a6778fbd21d2d64c7a062"> 531</a></span> <a class="code" href="class_instruction.html#aad6097bee05a6778fbd21d2d64c7a062">Instruction::StatusName</a>(<span class="keywordtype">int</span> s)</div> -<div class="line"><a name="l00532"></a><span class="lineno"> 532</span> {</div> -<div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  <span class="keywordflow">switch</span> (s) {</div> -<div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ad36ca1ac9c782f27a01f5257d3247eb2">PENDING</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Pending"</span>;</div> -<div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a93f1bdbe97e70bcae510dc9a070c173e">ACTIVE</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Active"</span>;</div> -<div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a2e196069ac50377f6ae251912b9e06cf">SKIPPED</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Skipped"</span>;</div> -<div class="line"><a name="l00537"></a><span class="lineno"> 537</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a71b9405ebdf7de4b1fe3ab3077bc49be">ABORTED</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Aborted"</span>;</div> -<div class="line"><a name="l00538"></a><span class="lineno"> 538</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344a0c2bdfd1318fb40281279637c7331d28">FAILED</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Failed"</span>;</div> -<div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a2979a7c6c235b740af5cce7116650344ae5ca6bc763dd4546d3eebf529c10c309">COMPLETE</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Complete"</span>;</div> -<div class="line"><a name="l00540"></a><span class="lineno"> 540</span> </div> -<div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div> -<div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  }</div> -<div class="line"><a name="l00543"></a><span class="lineno"> 543</span> }</div> -<div class="line"><a name="l00544"></a><span class="lineno"> 544</span> </div> -<div class="line"><a name="l00545"></a><span class="lineno"> 545</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00546"></a><span class="lineno"><a class="code" href="class_instruction.html#a2f62e50dacb47d0dba99b4974a99ec2d"> 546</a></span> <a class="code" href="class_instruction.html#a2f62e50dacb47d0dba99b4974a99ec2d">Instruction::FormationName</a>(<span class="keywordtype">int</span> f)</div> -<div class="line"><a name="l00547"></a><span class="lineno"> 547</span> {</div> -<div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  <span class="keywordflow">switch</span> (f) {</div> -<div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a4560c840807f28dbc055eaeed7969ff6a89a8cb9ca6de0cffd8ba2d501e8d08c2">DIAMOND</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Diamond"</span>;</div> -<div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a4560c840807f28dbc055eaeed7969ff6af6edd713cb85ad3608c0343ff0babe77">SPREAD</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Spread"</span>;</div> -<div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a4560c840807f28dbc055eaeed7969ff6afb56b818232cb4eeec687b54b1471434">BOX</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Box"</span>;</div> -<div class="line"><a name="l00552"></a><span class="lineno"> 552</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a4560c840807f28dbc055eaeed7969ff6a5c34b60a19fa5284c61b61d6b6757693">TRAIL</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Trail"</span>;</div> -<div class="line"><a name="l00553"></a><span class="lineno"> 553</span> </div> -<div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div> -<div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  }</div> -<div class="line"><a name="l00556"></a><span class="lineno"> 556</span> }</div> -<div class="line"><a name="l00557"></a><span class="lineno"> 557</span> </div> -<div class="line"><a name="l00558"></a><span class="lineno"> 558</span> <span class="keyword">const</span> <span class="keywordtype">char</span>*</div> -<div class="line"><a name="l00559"></a><span class="lineno"><a class="code" href="class_instruction.html#a5a88444a40b04864f3424e12cde69490"> 559</a></span> <a class="code" href="class_instruction.html#a5a88444a40b04864f3424e12cde69490">Instruction::PriorityName</a>(<span class="keywordtype">int</span> p)</div> -<div class="line"><a name="l00560"></a><span class="lineno"> 560</span> {</div> -<div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="keywordflow">switch</span> (p) {</div> -<div class="line"><a name="l00562"></a><span class="lineno"> 562</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8a90426b6d4ca367dab5bb2dca49249753">PRIMARY</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Primary"</span>;</div> -<div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8ac3bb56b262a167fca01ae0399dc62fca">SECONDARY</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Secondary"</span>;</div> -<div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="keywordflow">case</span> <a class="code" href="class_instruction.html#a25955e8c3418694561ab48fbe0ffb2f8ac0371c4b27b896b52a9f131253bf8112">BONUS</a>: <span class="keywordflow">return</span> <span class="stringliteral">"Bonus"</span>;</div> -<div class="line"><a name="l00565"></a><span class="lineno"> 565</span> </div> -<div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordflow">default</span>: <span class="keywordflow">return</span> <span class="stringliteral">"Unknown"</span>;</div> -<div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  }</div> -<div class="line"><a name="l00568"></a><span class="lineno"> 568</span> }</div> -<div class="line"><a name="l00569"></a><span class="lineno"> 569</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="_instruction_8cpp.html">Instruction.cpp</a></li> - <li class="footer">Generated on Tue Jun 5 2012 20:46:55 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> |