summaryrefslogtreecommitdiffhomepage
path: root/Doc/doxygen/html/_combat_unit_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/doxygen/html/_combat_unit_8h_source.html')
-rw-r--r--Doc/doxygen/html/_combat_unit_8h_source.html251
1 files changed, 251 insertions, 0 deletions
diff --git a/Doc/doxygen/html/_combat_unit_8h_source.html b/Doc/doxygen/html/_combat_unit_8h_source.html
new file mode 100644
index 0000000..aba7206
--- /dev/null
+++ b/Doc/doxygen/html/_combat_unit_8h_source.html
@@ -0,0 +1,251 @@
+<!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/CombatUnit.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="jquery.js"></script>
+<script type="text/javascript" src="dynsections.js"></script>
+<link href="navtree.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="resize.js"></script>
+<script type="text/javascript" src="navtree.js"></script>
+<script type="text/javascript">
+ $(document).ready(initResizable);
+</script>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javascript" src="search/search.js"></script>
+<script type="text/javascript">
+ $(document).ready(function() { searchBox.OnSelectItem(0); });
+</script>
+<link href="doxygen.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
+<div id="titlearea">
+<table cellspacing="0" cellpadding="0">
+ <tbody>
+ <tr style="height: 56px;">
+ <td style="padding-left: 0.5em;">
+ <div id="projectname">Starshatter_Open
+ </div>
+ <div id="projectbrief">Open source Starshatter engine</div>
+ </td>
+ </tr>
+ </tbody>
+</table>
+</div>
+<!-- end header part -->
+<!-- Generated by Doxygen 1.8.1 -->
+<script type="text/javascript">
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+</script>
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li><a href="index.html"><span>Main&#160;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&#160;List</span></a></li>
+ <li><a href="globals.html"><span>File&#160;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('_combat_unit_8h.html','');});
+</script>
+<div id="doc-content">
+<!-- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</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">CombatUnit.h</div> </div>
+</div><!--header-->
+<div class="contents">
+<a href="_combat_unit_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;<span class="comment">/* Project Starshatter 4.5</span></div>
+<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<span class="comment"> Destroyer Studios LLC</span></div>
+<div class="line"><a name="l00003"></a><span class="lineno"> 3</span>&#160;<span class="comment"> Copyright © 1997-2004. All Rights Reserved.</span></div>
+<div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> SUBSYSTEM: Stars.exe</span></div>
+<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment"> FILE: CombatUnit.h</span></div>
+<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> AUTHOR: John DiCamillo</span></div>
+<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"></span></div>
+<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> OVERVIEW</span></div>
+<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> ========</span></div>
+<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> A ship, station, or ground unit in the dynamic campaign.</span></div>
+<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment">*/</span></div>
+<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;</div>
+<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#ifndef CombatUnit_h</span></div>
+<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define CombatUnit_h</span></div>
+<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor"></span></div>
+<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_types_8h.html">Types.h</a>&quot;</span></div>
+<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_geometry_8h.html">Geometry.h</a>&quot;</span></div>
+<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_color_8h.html">Color.h</a>&quot;</span></div>
+<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_text_8h.html">Text.h</a>&quot;</span></div>
+<div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_list_8h.html">List.h</a>&quot;</span></div>
+<div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;</div>
+<div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
+<div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;</div>
+<div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;<span class="keyword">class </span><a class="code" href="class_combat_group.html">CombatGroup</a>;</div>
+<div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">class </span><a class="code" href="class_ship_design.html">ShipDesign</a>;</div>
+<div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;</div>
+<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="comment">// +--------------------------------------------------------------------+</span></div>
+<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;</div>
+<div class="line"><a name="l00031"></a><span class="lineno"><a class="code" href="class_combat_unit.html"> 31</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_combat_unit.html">CombatUnit</a></div>
+<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;{</div>
+<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="keyword">public</span>:</div>
+<div class="line"><a name="l00034"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a319dd8a7f0599a076b9694cb929f73ab"> 34</a></span>&#160; <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_combat_unit.html#a319dd8a7f0599a076b9694cb929f73ab">TYPENAME</a>() { <span class="keywordflow">return</span> <span class="stringliteral">&quot;CombatUnit&quot;</span>; }</div>
+<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160;</div>
+<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="class_combat_unit.html#a718e4d11af3a49888ec2e2f74b1837bf">CombatUnit</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* n, <span class="keyword">const</span> <span class="keywordtype">char</span>* reg, <span class="keywordtype">int</span> t, <span class="keyword">const</span> <span class="keywordtype">char</span>* dname, <span class="keywordtype">int</span> number, <span class="keywordtype">int</span> i);</div>
+<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="class_combat_unit.html#a718e4d11af3a49888ec2e2f74b1837bf">CombatUnit</a>(<span class="keyword">const</span> <a class="code" href="class_combat_unit.html">CombatUnit</a>&amp; unit);</div>
+<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;</div>
+<div class="line"><a name="l00039"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ac8415b54d957e00440a5b88c917a5a9d"> 39</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#ac8415b54d957e00440a5b88c917a5a9d">operator == </a>(<span class="keyword">const</span> <a class="code" href="class_combat_unit.html">CombatUnit</a>&amp; u)<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">this</span> == &amp;u; }</div>
+<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;</div>
+<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="class_combat_unit.html#a25f1ed1408bbd9bed2adc76b7167b6e7">GetDescription</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
+<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#ac7d35db557f1cec6efa0e60930cf11c0">GetValue</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#aab69c9b59832175859cff4de3feab779">GetSingleValue</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#a4476980d7d66f610fb209e614dddf36f">CanDefend</a>(<a class="code" href="class_combat_unit.html">CombatUnit</a>* unit) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#ad767aa03bec50c8efb37ffbadcd1b3b7">CanAssign</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#ad892093b77e2cd2e6e99bae3b2fb48c3">CanLaunch</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#a904d401d20722311055597cf52a1c548">PowerVersus</a>(<a class="code" href="class_combat_unit.html">CombatUnit</a>* tgt) <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#ad3ba4380d7dbb2f13a5051b5024ae263">AssignMission</a>();</div>
+<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a1168f57555243fa9ca8a92ee7dc0b8e0">CompleteMission</a>();</div>
+<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160;</div>
+<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#a98a1d7e7c591cc5ecbb68f955237f7d8">MaxRange</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#afacaf129cf0bfe1ffbe0843f2acfd812">MaxEffectiveRange</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#a712338cd7cc7582ca18cc0cace2d1781">OptimumRange</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div>
+<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#ab9f04959428c65de807802535f0f355a">Engage</a>(<a class="code" href="class_combat_unit.html">CombatUnit</a>* tgt);</div>
+<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#aa800c6880a9e54bf722ece5e42a17ee1">Disengage</a>();</div>
+<div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;</div>
+<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160; <span class="comment">// accessors and mutators:</span></div>
+<div class="line"><a name="l00060"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a10fa7caa1e0128ee4c826706618e81a4"> 60</a></span>&#160; <span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>&amp; <a class="code" href="class_combat_unit.html#a10fa7caa1e0128ee4c826706618e81a4">Name</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> name; }</div>
+<div class="line"><a name="l00061"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ad5a81baa47ef6f9f64265461624bc49f"> 61</a></span>&#160; <span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>&amp; <a class="code" href="class_combat_unit.html#ad5a81baa47ef6f9f64265461624bc49f">Registry</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> regnum; }</div>
+<div class="line"><a name="l00062"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a6a0d16ca545b0a0c4e576778c39d5728"> 62</a></span>&#160; <span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>&amp; <a class="code" href="class_combat_unit.html#a6a0d16ca545b0a0c4e576778c39d5728">DesignName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> design_name; }</div>
+<div class="line"><a name="l00063"></a><span class="lineno"><a class="code" href="class_combat_unit.html#af7035070cbeba1e8edb9328308761aa8"> 63</a></span>&#160; <span class="keyword">const</span> <a class="code" href="class_text.html">Text</a>&amp; <a class="code" href="class_combat_unit.html#af7035070cbeba1e8edb9328308761aa8">Skin</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> skin; }</div>
+<div class="line"><a name="l00064"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a4dc1e360e2771e7e3fb542c8cff01535"> 64</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a4dc1e360e2771e7e3fb542c8cff01535">SetSkin</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* s) { skin = s; }</div>
+<div class="line"><a name="l00065"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a0283f02d04e5568d01c4fb42ec07aaa4"> 65</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#a0283f02d04e5568d01c4fb42ec07aaa4">Type</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> type; }</div>
+<div class="line"><a name="l00066"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ac3b7b157b3d50960dbb1ceb6db883bc0"> 66</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#ac3b7b157b3d50960dbb1ceb6db883bc0">Count</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> count; }</div>
+<div class="line"><a name="l00067"></a><span class="lineno"><a class="code" href="class_combat_unit.html#adf5be5dd425855dfd6409d5a6690f736"> 67</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#adf5be5dd425855dfd6409d5a6690f736">LiveCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> count - dead_count; }</div>
+<div class="line"><a name="l00068"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a18d53d3a30ca7ce5e1d2fb14ac721c9f"> 68</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#a18d53d3a30ca7ce5e1d2fb14ac721c9f">DeadCount</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> dead_count; }</div>
+<div class="line"><a name="l00069"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a8249cef767889d1c333f7528d595def5"> 69</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a8249cef767889d1c333f7528d595def5">SetDeadCount</a>(<span class="keywordtype">int</span> n) { dead_count = n; }</div>
+<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#ac66643f9234eab34d92b3666f42b99a4">Kill</a>(<span class="keywordtype">int</span> n);</div>
+<div class="line"><a name="l00071"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a6fccc29867f667cafd36025e49148f76"> 71</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#a6fccc29867f667cafd36025e49148f76">Available</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> available; }</div>
+<div class="line"><a name="l00072"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a91ecbfbdbee01adcf77e60190eef6b53"> 72</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#a91ecbfbdbee01adcf77e60190eef6b53">GetIFF</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> iff; }</div>
+<div class="line"><a name="l00073"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ac3409963fb13a8813e4e885adf6b3d1c"> 73</a></span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#ac3409963fb13a8813e4e885adf6b3d1c">IsLeader</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> leader; }</div>
+<div class="line"><a name="l00074"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a4bb6c2dc3f851079f7af9e3332063384"> 74</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a4bb6c2dc3f851079f7af9e3332063384">SetLeader</a>(<span class="keywordtype">bool</span> l) { leader = l; }</div>
+<div class="line"><a name="l00075"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a5344b3615e359e6b82a84efd18b98c10"> 75</a></span>&#160; <a class="code" href="struct_point.html">Point</a> <a class="code" href="class_combat_unit.html#a5344b3615e359e6b82a84efd18b98c10">Location</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> location; }</div>
+<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a18ea90aac34f8e23f5583cd932146be3">MoveTo</a>(<span class="keyword">const</span> <a class="code" href="struct_point.html">Point</a>&amp; loc);</div>
+<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a31e11a48744183dfd95a0062ba3cf7e2"> 77</a></span>&#160; <a class="code" href="class_text.html">Text</a> <a class="code" href="class_combat_unit.html#a31e11a48744183dfd95a0062ba3cf7e2">GetRegion</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> region; }</div>
+<div class="line"><a name="l00078"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ac3cc786be78fd8fcf0b92ce06181436d"> 78</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#ac3cc786be78fd8fcf0b92ce06181436d">SetRegion</a>(<a class="code" href="class_text.html">Text</a> rgn) { region = rgn; }</div>
+<div class="line"><a name="l00079"></a><span class="lineno"><a class="code" href="class_combat_unit.html#abb879bbd7fc275fbbf13b5860ca8df04"> 79</a></span>&#160; <a class="code" href="class_combat_group.html">CombatGroup</a>* <a class="code" href="class_combat_unit.html#abb879bbd7fc275fbbf13b5860ca8df04">GetCombatGroup</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> group; }</div>
+<div class="line"><a name="l00080"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a849b35358f8832ebb712f2b9d63d0ae2"> 80</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a849b35358f8832ebb712f2b9d63d0ae2">SetCombatGroup</a>(<a class="code" href="class_combat_group.html">CombatGroup</a>* g){ group = g; }</div>
+<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div>
+<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <a class="code" href="class_color.html">Color</a> <a class="code" href="class_combat_unit.html#a66c04e0bd770d584d2d89e23fbc481ab">MarkerColor</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#a5fe0b58739ff74c3523ae3f9e0af4217">IsGroundUnit</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#a3e61789436f2010320461127b47e980f">IsStarship</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#adf03aa03daa482124d3d4dc594e7e424">IsDropship</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keywordtype">bool</span> <a class="code" href="class_combat_unit.html#ad4fb187654b502ef8540e33697b7477c">IsStatic</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;</div>
+<div class="line"><a name="l00088"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ac4c6e78020ee1e5033a208f07593467c"> 88</a></span>&#160; <a class="code" href="class_combat_unit.html">CombatUnit</a>* <a class="code" href="class_combat_unit.html#ac4c6e78020ee1e5033a208f07593467c">GetCarrier</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> carrier; }</div>
+<div class="line"><a name="l00089"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a88bbfe71d11568526971c5743e79e912"> 89</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a88bbfe71d11568526971c5743e79e912">SetCarrier</a>(<a class="code" href="class_combat_unit.html">CombatUnit</a>* c) { carrier = c; }</div>
+<div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160;</div>
+<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keyword">const</span> <a class="code" href="class_ship_design.html">ShipDesign</a>* <a class="code" href="class_combat_unit.html#a076385de2c6f4293ec3b286d6a78e98e">GetDesign</a>();</div>
+<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keywordtype">int</span> <a class="code" href="class_combat_unit.html#a0029ed7b0938bcf5f4dc13a599003c15">GetShipClass</a>() <span class="keyword">const</span>;</div>
+<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160;</div>
+<div class="line"><a name="l00094"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a0c225dcf9b88ddda4d7250533ba9f522"> 94</a></span>&#160; <a class="code" href="class_list.html">List&lt;CombatUnit&gt;</a>&amp; <a class="code" href="class_combat_unit.html#a0c225dcf9b88ddda4d7250533ba9f522">GetAttackers</a>() { <span class="keywordflow">return</span> attackers; }</div>
+<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160;</div>
+<div class="line"><a name="l00096"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a577bff20af5d3a26c5fe39a4c7ed5477"> 96</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#a577bff20af5d3a26c5fe39a4c7ed5477">GetPlanValue</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> plan_value; }</div>
+<div class="line"><a name="l00097"></a><span class="lineno"><a class="code" href="class_combat_unit.html#ab30d61a42e751a3ec2e758ca0aed00ad"> 97</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#ab30d61a42e751a3ec2e758ca0aed00ad">SetPlanValue</a>(<span class="keywordtype">int</span> v) { plan_value = v; }</div>
+<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div>
+<div class="line"><a name="l00099"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a783577700e24d24dc956ec9a6997993a"> 99</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#a783577700e24d24dc956ec9a6997993a">GetSustainedDamage</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sustained_damage; }</div>
+<div class="line"><a name="l00100"></a><span class="lineno"><a class="code" href="class_combat_unit.html#afad725925732d45ac07958df97cf2bb8"> 100</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#afad725925732d45ac07958df97cf2bb8">SetSustainedDamage</a>(<span class="keywordtype">double</span> d) { sustained_damage = d; }</div>
+<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;</div>
+<div class="line"><a name="l00102"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a5c21a281a65b328bb0e9cfa898d541dd"> 102</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#a5c21a281a65b328bb0e9cfa898d541dd">GetHeading</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> heading; }</div>
+<div class="line"><a name="l00103"></a><span class="lineno"><a class="code" href="class_combat_unit.html#a6925453211a870f172606b4b86d0b8c1"> 103</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="class_combat_unit.html#a6925453211a870f172606b4b86d0b8c1">SetHeading</a>(<span class="keywordtype">double</span> d) { heading = d; }</div>
+<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div>
+<div class="line"><a name="l00105"></a><span class="lineno"><a class="code" href="class_combat_unit.html#aa1f65d62250de107a196459dbdabce5a"> 105</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="class_combat_unit.html#aa1f65d62250de107a196459dbdabce5a">GetNextJumpTime</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> jump_time; }</div>
+<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div>
+<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="keyword">private</span>:</div>
+<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <a class="code" href="class_text.html">Text</a> name;</div>
+<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="class_text.html">Text</a> regnum;</div>
+<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; <a class="code" href="class_text.html">Text</a> design_name;</div>
+<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <a class="code" href="class_text.html">Text</a> skin;</div>
+<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordtype">int</span> type;</div>
+<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">const</span> <a class="code" href="class_ship_design.html">ShipDesign</a>* design;</div>
+<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; <span class="keywordtype">int</span> count;</div>
+<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; <span class="keywordtype">int</span> dead_count;</div>
+<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160; <span class="keywordtype">int</span> available;</div>
+<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordtype">int</span> iff;</div>
+<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160; <span class="keywordtype">bool</span> leader;</div>
+<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <a class="code" href="class_text.html">Text</a> region;</div>
+<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <a class="code" href="struct_point.html">Point</a> location;</div>
+<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordtype">double</span> plan_value; <span class="comment">// scratch pad for plan modules</span></div>
+<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keywordtype">double</span> launch_time;</div>
+<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; <span class="keywordtype">double</span> jump_time;</div>
+<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keywordtype">double</span> sustained_damage;</div>
+<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; <span class="keywordtype">double</span> heading;</div>
+<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div>
+<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <a class="code" href="class_combat_unit.html">CombatUnit</a>* carrier;</div>
+<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; <a class="code" href="class_list.html">List&lt;CombatUnit&gt;</a> attackers;</div>
+<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <a class="code" href="class_combat_unit.html">CombatUnit</a>* target;</div>
+<div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <a class="code" href="class_combat_group.html">CombatGroup</a>* group;</div>
+<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;};</div>
+<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;</div>
+<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160;<span class="preprocessor">#endif CombatUnit_h</span></div>
+<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="preprocessor"></span></div>
+</div><!-- fragment --></div><!-- contents -->
+</div><!-- doc-content -->
+<!-- start footer part -->
+<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
+ <ul>
+ <li class="navelem"><a class="el" href="dir_ea1b58c809a5070716d7c602998a95b0.html">Stars45</a></li><li class="navelem"><a class="el" href="_combat_unit_8h.html">CombatUnit.h</a></li>
+ <li class="footer">Generated on Thu May 31 2012 16:31:04 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>