mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
CLEANUP_AIRBASE documentation
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<div id="content">
|
||||
<h1>Module <code>CleanUp</code></h1>
|
||||
|
||||
<p><strong>Functional</strong> -- The CLEANUP class keeps an area clean of crashing or colliding airplanes.</p>
|
||||
<p><strong>Functional</strong> -- The CLEANUP_AIRBASE class keeps an area clean of crashing or colliding airplanes.</p>
|
||||
|
||||
|
||||
<p>It also prevents airplanes from firing within this area.</p>
|
||||
@@ -121,54 +121,54 @@
|
||||
<h2>Global(s)</h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="#CLEANUP">CLEANUP</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="#CLEANUP_AIRBASE">CLEANUP_AIRBASE</a></td>
|
||||
<td class="summary">
|
||||
<h1>CLEANUP, extends <a href="Base.html##(BASE)">Base#BASE</a></h1>
|
||||
<h1>CLEANUP_AIRBASE, extends <a href="Base.html##(BASE)">Base#BASE</a></h1>
|
||||
|
||||
<p><img src="..\Presentations\CLEANUP\Dia1.JPG" alt="Banner Image"/></p>
|
||||
<p><img src="..\Presentations\CLEANUP_AIRBASE\Dia1.JPG" alt="Banner Image"/></p>
|
||||
|
||||
<p>The CLEANUP class keeps airbases clean, and tries to guarantee continuous airbase operations, even under combat.</p>
|
||||
<p>The CLEANUP_AIRBASE class keeps airbases clean, and tries to guarantee continuous airbase operations, even under combat.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<h2><a id="#(CLEANUP)">Type <code>CLEANUP</code></a></h2>
|
||||
<h2><a id="#(CLEANUP_AIRBASE)">Type <code>CLEANUP_AIRBASE</code></a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP).AddAirbase">CLEANUP:AddAirbase(AirbaseName)</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP_AIRBASE).AddAirbase">CLEANUP_AIRBASE:AddAirbase(AirbaseName)</a></td>
|
||||
<td class="summary">
|
||||
<p>Adds an airbase to the airbase validation list.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP).New">CLEANUP:New(<, AirbaseNames)</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP_AIRBASE).New">CLEANUP_AIRBASE:New(<, AirbaseNames)</a></td>
|
||||
<td class="summary">
|
||||
<p>Creates the main object which is handling the cleaning of the debris within the given Zone Names.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP).RemoveAirbase">CLEANUP:RemoveAirbase(AirbaseName)</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP_AIRBASE).RemoveAirbase">CLEANUP_AIRBASE:RemoveAirbase(AirbaseName)</a></td>
|
||||
<td class="summary">
|
||||
<p>Removes an airbase from the airbase validation list.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP).SetCleanMissiles">CLEANUP:SetCleanMissiles(CleanMissiles)</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP_AIRBASE).SetCleanMissiles">CLEANUP_AIRBASE:SetCleanMissiles(CleanMissiles)</a></td>
|
||||
<td class="summary">
|
||||
<p>Enables or disables the cleaning of missiles within the airbase zones.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP).__">CLEANUP.__</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP_AIRBASE).__">CLEANUP_AIRBASE.__</a></td>
|
||||
<td class="summary">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h2><a id="#(CLEANUP.__)">Type <code>CLEANUP.__</code></a></h2>
|
||||
<h2><a id="#(CLEANUP_AIRBASE.__)">Type <code>CLEANUP_AIRBASE.__</code></a></h2>
|
||||
<table class="function_list">
|
||||
<tr>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP.__).<">CLEANUP.__.<</a></td>
|
||||
<td class="name" nowrap="nowrap"><a href="##(CLEANUP_AIRBASE.__).<">CLEANUP_AIRBASE.__.<</a></td>
|
||||
<td class="summary">
|
||||
<p>string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.</p>
|
||||
</td>
|
||||
@@ -179,26 +179,26 @@
|
||||
<dl class="function">
|
||||
<dt>
|
||||
|
||||
<em><a href="##(CLEANUP)">#CLEANUP</a></em>
|
||||
<a id="CLEANUP" >
|
||||
<strong>CLEANUP</strong>
|
||||
<em><a href="##(CLEANUP_AIRBASE)">#CLEANUP_AIRBASE</a></em>
|
||||
<a id="CLEANUP_AIRBASE" >
|
||||
<strong>CLEANUP_AIRBASE</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
|
||||
<h1>CLEANUP, extends <a href="Base.html##(BASE)">Base#BASE</a></h1>
|
||||
<h1>CLEANUP_AIRBASE, extends <a href="Base.html##(BASE)">Base#BASE</a></h1>
|
||||
|
||||
<p><img src="..\Presentations\CLEANUP\Dia1.JPG" alt="Banner Image"/></p>
|
||||
<p><img src="..\Presentations\CLEANUP_AIRBASE\Dia1.JPG" alt="Banner Image"/></p>
|
||||
|
||||
<p>The CLEANUP class keeps airbases clean, and tries to guarantee continuous airbase operations, even under combat.</p>
|
||||
<p>The CLEANUP_AIRBASE class keeps airbases clean, and tries to guarantee continuous airbase operations, even under combat.</p>
|
||||
|
||||
|
||||
<p>Specific airbases need to be provided that need to be guarded. Each airbase registered, will be guarded within a zone of 8 km around the airbase.
|
||||
Any unit that fires a missile, or shoots within the zone of an airbase, will be monitored by CLEANUP.
|
||||
Any unit that fires a missile, or shoots within the zone of an airbase, will be monitored by CLEANUP_AIRBASE.
|
||||
Within the 8km zone, units cannot fire any missile, which prevents the airbase runway to receive missile or bomb hits.
|
||||
Any airborne or ground unit that is on the runway below 30 meters (default value) will be automatically removed if it is damaged.</p>
|
||||
|
||||
<p>This is not a full 100% secure implementation. It is still possible that CLEANUP cannot prevent (in-time) to keep the airbase clean.
|
||||
<p>This is not a full 100% secure implementation. It is still possible that CLEANUP_AIRBASE cannot prevent (in-time) to keep the airbase clean.
|
||||
The following situations may happen that will still stop the runway of an airbase:</p>
|
||||
|
||||
<ul>
|
||||
@@ -211,7 +211,7 @@ The following situations may happen that will still stop the runway of an airbas
|
||||
its status will be checked every 0.25 seconds! This is required to ensure that the airbase is kept clean.
|
||||
But as a result, there is more CPU overload.</p>
|
||||
|
||||
<p>So as an advise, I suggest you use the CLEANUP class with care:</p>
|
||||
<p>So as an advise, I suggest you use the CLEANUP_AIRBASE class with care:</p>
|
||||
|
||||
<ul>
|
||||
<li>Only monitor airbases that really need to be monitored!</li>
|
||||
@@ -221,27 +221,27 @@ But as a result, there is more CPU overload.</p>
|
||||
|
||||
<p>By following the above guidelines, you can add airbase cleanup with acceptable CPU overhead.</p>
|
||||
|
||||
<h2>1. CLEANUP Constructor</h2>
|
||||
<h2>1. CLEANUP_AIRBASE Constructor</h2>
|
||||
|
||||
<p>Creates the main object which is preventing the airbase to get polluted with debris on the runway, which halts the airbase.</p>
|
||||
|
||||
<pre><code> -- Clean these Zones.
|
||||
CleanUpAirports = CLEANUP:New( { AIRBASE.Caucasus.Tbilisi, AIRBASE.Caucasus.Kutaisi )
|
||||
CleanUpAirports = CLEANUP_AIRBASE:New( { AIRBASE.Caucasus.Tbilisi, AIRBASE.Caucasus.Kutaisi )
|
||||
|
||||
-- or
|
||||
CleanUpTbilisi = CLEANUP:New( AIRBASE.Caucasus.Tbilisi )
|
||||
CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )
|
||||
CleanUpTbilisi = CLEANUP_AIRBASE:New( AIRBASE.Caucasus.Tbilisi )
|
||||
CleanUpKutaisi = CLEANUP_AIRBASE:New( AIRBASE.Caucasus.Kutaisi )
|
||||
</code></pre>
|
||||
|
||||
<h2>2. Add or Remove airbases</h2>
|
||||
|
||||
<p>The method <a href="##(CLEANUP).AddAirbase">CLEANUP.AddAirbase</a>() to add an airbase to the cleanup validation process.
|
||||
The method <a href="##(CLEANUP).RemoveAirbase">CLEANUP.RemoveAirbase</a>() removes an airbase from the cleanup validation process.</p>
|
||||
<p>The method <a href="##(CLEANUP_AIRBASE).AddAirbase">CLEANUP_AIRBASE.AddAirbase</a>() to add an airbase to the cleanup validation process.
|
||||
The method <a href="##(CLEANUP_AIRBASE).RemoveAirbase">CLEANUP_AIRBASE.RemoveAirbase</a>() removes an airbase from the cleanup validation process.</p>
|
||||
|
||||
<h2>3. Clean missiles and bombs within the airbase zone.</h2>
|
||||
|
||||
<p>When missiles or bombs hit the runway, the airbase operations stop.
|
||||
Use the method <a href="##(CLEANUP).SetCleanMissiles">CLEANUP.SetCleanMissiles</a>() to control the cleaning of missiles, which will prevent airbases to stop.
|
||||
Use the method <a href="##(CLEANUP_AIRBASE).SetCleanMissiles">CLEANUP_AIRBASE.SetCleanMissiles</a>() to control the cleaning of missiles, which will prevent airbases to stop.
|
||||
Note that this method will not allow anymore airbases to be attacked, so there is a trade-off here to do.</p>
|
||||
|
||||
|
||||
@@ -249,13 +249,13 @@ Note that this method will not allow anymore airbases to be attacked, so there i
|
||||
</dl>
|
||||
<h2><a id="#(CleanUp)" >Type <code>CleanUp</code></a></h2>
|
||||
|
||||
<h2><a id="#(CLEANUP)" >Type <code>CLEANUP</code></a></h2>
|
||||
<h2><a id="#(CLEANUP_AIRBASE)" >Type <code>CLEANUP_AIRBASE</code></a></h2>
|
||||
<h3>Field(s)</h3>
|
||||
<dl class="function">
|
||||
<dt>
|
||||
|
||||
<a id="#(CLEANUP).AddAirbase" >
|
||||
<strong>CLEANUP:AddAirbase(AirbaseName)</strong>
|
||||
<a id="#(CLEANUP_AIRBASE).AddAirbase" >
|
||||
<strong>CLEANUP_AIRBASE:AddAirbase(AirbaseName)</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -272,7 +272,7 @@ Note that this method will not allow anymore airbases to be attacked, so there i
|
||||
</ul>
|
||||
<h3>Return value</h3>
|
||||
|
||||
<p><em><a href="##(CLEANUP)">#CLEANUP</a>:</em></p>
|
||||
<p><em><a href="##(CLEANUP_AIRBASE)">#CLEANUP_AIRBASE</a>:</em></p>
|
||||
|
||||
|
||||
</dd>
|
||||
@@ -280,8 +280,8 @@ Note that this method will not allow anymore airbases to be attacked, so there i
|
||||
<dl class="function">
|
||||
<dt>
|
||||
|
||||
<a id="#(CLEANUP).New" >
|
||||
<strong>CLEANUP:New(<, AirbaseNames)</strong>
|
||||
<a id="#(CLEANUP_AIRBASE).New" >
|
||||
<strong>CLEANUP_AIRBASE:New(<, AirbaseNames)</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -304,23 +304,23 @@ string> AirbaseNames Is a table of airbase names where the debris should be clea
|
||||
</ul>
|
||||
<h3>Return value</h3>
|
||||
|
||||
<p><em><a href="##(CLEANUP)">#CLEANUP</a>:</em></p>
|
||||
<p><em><a href="##(CLEANUP_AIRBASE)">#CLEANUP_AIRBASE</a>:</em></p>
|
||||
|
||||
|
||||
<h3>Usage:</h3>
|
||||
<pre class="example"><code> -- Clean these Zones.
|
||||
CleanUpAirports = CLEANUP:New( { AIRBASE.Caucasus.Tbilisi, AIRBASE.Caucasus.Kutaisi )
|
||||
CleanUpAirports = CLEANUP_AIRBASE:New( { AIRBASE.Caucasus.Tbilisi, AIRBASE.Caucasus.Kutaisi )
|
||||
or
|
||||
CleanUpTbilisi = CLEANUP:New( AIRBASE.Caucasus.Tbilisi )
|
||||
CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )</code></pre>
|
||||
CleanUpTbilisi = CLEANUP_AIRBASE:New( AIRBASE.Caucasus.Tbilisi )
|
||||
CleanUpKutaisi = CLEANUP_AIRBASE:New( AIRBASE.Caucasus.Kutaisi )</code></pre>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="function">
|
||||
<dt>
|
||||
|
||||
<a id="#(CLEANUP).RemoveAirbase" >
|
||||
<strong>CLEANUP:RemoveAirbase(AirbaseName)</strong>
|
||||
<a id="#(CLEANUP_AIRBASE).RemoveAirbase" >
|
||||
<strong>CLEANUP_AIRBASE:RemoveAirbase(AirbaseName)</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -337,7 +337,7 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )</code></pre>
|
||||
</ul>
|
||||
<h3>Return value</h3>
|
||||
|
||||
<p><em><a href="##(CLEANUP)">#CLEANUP</a>:</em></p>
|
||||
<p><em><a href="##(CLEANUP_AIRBASE)">#CLEANUP_AIRBASE</a>:</em></p>
|
||||
|
||||
|
||||
</dd>
|
||||
@@ -345,8 +345,8 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )</code></pre>
|
||||
<dl class="function">
|
||||
<dt>
|
||||
|
||||
<a id="#(CLEANUP).SetCleanMissiles" >
|
||||
<strong>CLEANUP:SetCleanMissiles(CleanMissiles)</strong>
|
||||
<a id="#(CLEANUP_AIRBASE).SetCleanMissiles" >
|
||||
<strong>CLEANUP_AIRBASE:SetCleanMissiles(CleanMissiles)</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -358,7 +358,7 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )</code></pre>
|
||||
Note that when this method is used, the airbase operations won't stop if
|
||||
the missile or bomb was cleaned within the airbase zone, which is 8km from the center of the airbase.
|
||||
However, there is a trade-off to make. Attacks on airbases won't be possible anymore if this method is used.
|
||||
Note, one can also use the method <a href="##(CLEANUP).RemoveAirbase">CLEANUP.RemoveAirbase</a>() to remove the airbase from the control process as a whole,
|
||||
Note, one can also use the method <a href="##(CLEANUP_AIRBASE).RemoveAirbase">CLEANUP_AIRBASE.RemoveAirbase</a>() to remove the airbase from the control process as a whole,
|
||||
when an enemy unit is near. That is also an option...</p>
|
||||
|
||||
<h3>Parameter</h3>
|
||||
@@ -372,7 +372,7 @@ when an enemy unit is near. That is also an option...</p>
|
||||
</ul>
|
||||
<h3>Return value</h3>
|
||||
|
||||
<p><em><a href="##(CLEANUP)">#CLEANUP</a>:</em></p>
|
||||
<p><em><a href="##(CLEANUP_AIRBASE)">#CLEANUP_AIRBASE</a>:</em></p>
|
||||
|
||||
|
||||
</dd>
|
||||
@@ -381,8 +381,8 @@ when an enemy unit is near. That is also an option...</p>
|
||||
<dt>
|
||||
|
||||
<em></em>
|
||||
<a id="#(CLEANUP).__" >
|
||||
<strong>CLEANUP.__</strong>
|
||||
<a id="#(CLEANUP_AIRBASE).__" >
|
||||
<strong>CLEANUP_AIRBASE.__</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -390,19 +390,19 @@ when an enemy unit is near. That is also an option...</p>
|
||||
|
||||
|
||||
|
||||
<p> @field #CLEANUP.__</p>
|
||||
<p> @field #CLEANUP<em>AIRBASE.</em>_</p>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h2><a id="#(CLEANUP.__)" >Type <code>CLEANUP.__</code></a></h2>
|
||||
<h2><a id="#(CLEANUP_AIRBASE.__)" >Type <code>CLEANUP_AIRBASE.__</code></a></h2>
|
||||
<h3>Field(s)</h3>
|
||||
<dl class="function">
|
||||
<dt>
|
||||
|
||||
<em><a href="##(map)">#map</a></em>
|
||||
<a id="#(CLEANUP.__).<" >
|
||||
<strong>CLEANUP.__.<</strong>
|
||||
<a id="#(CLEANUP_AIRBASE.__).<" >
|
||||
<strong>CLEANUP_AIRBASE.__.<</strong>
|
||||
</a>
|
||||
</dt>
|
||||
<dd>
|
||||
@@ -412,7 +412,7 @@ when an enemy unit is near. That is also an option...</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<h2><a id="#(CLEANUP.__.Airbases)" >Type <code>CLEANUP.__.Airbases</code></a></h2>
|
||||
<h2><a id="#(CLEANUP_AIRBASE.__.Airbases)" >Type <code>CLEANUP_AIRBASE.__.Airbases</code></a></h2>
|
||||
|
||||
<h2><a id="#(list)" >Type <code>list</code></a></h2>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user