new AI_BAI class

This commit is contained in:
FlightControl
2017-05-09 10:40:05 +02:00
parent f181101d8b
commit 743fa8ced1
93 changed files with 3295 additions and 388 deletions

View File

@@ -17,6 +17,7 @@
<a href="index.html">index</a>
</li></ul>
<ul>
<li><a href="AI_BAI.html">AI_BAI</a></li>
<li><a href="AI_Balancer.html">AI_Balancer</a></li>
<li><a href="AI_Cap.html">AI_Cap</a></li>
<li><a href="AI_Cas.html">AI_Cas</a></li>
@@ -127,7 +128,7 @@
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).AbortUnit">TASK:AbortUnit(PlayerUnit)</a></td>
<td class="name" nowrap="nowrap"><a href="##(TASK).AbortGroup">TASK:AbortGroup(PlayerUnit, PlayerGroup)</a></td>
<td class="summary">
<p>Abort a PlayerUnit from a Task.</p>
</td>
@@ -148,6 +149,12 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).Cancel">TASK:Cancel()</a></td>
<td class="summary">
<p>FSM Cancel synchronous event function for TASK.</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).ClearGroupAssignment">TASK:ClearGroupAssignment(TaskGroup)</a></td>
<td class="summary">
<p>Clear the <a href="Group.html">Group</a> assignment from the <a href="Task.html">Task</a>.</p>
</td>
</tr>
<tr>
@@ -157,7 +164,7 @@
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).CrashUnit">TASK:CrashUnit(PlayerUnit)</a></td>
<td class="name" nowrap="nowrap"><a href="##(TASK).CrashGroup">TASK:CrashGroup(PlayerUnit, PlayerGroup)</a></td>
<td class="summary">
<p>A PlayerUnit crashed in a Task.</p>
</td>
@@ -184,6 +191,12 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).FsmTemplate">TASK.FsmTemplate</a></td>
<td class="summary">
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).GetBriefing">TASK:GetBriefing()</a></td>
<td class="summary">
<p>Gets the <a href="Task.html">Task</a> briefing.</p>
</td>
</tr>
<tr>
@@ -208,6 +221,18 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).GetName">TASK:GetName()</a></td>
<td class="summary">
<p>Gets the Name of the Task</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).GetPlayerCount">TASK:GetPlayerCount()</a></td>
<td class="summary">
<p>Create a count of the players in the Task.</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).GetPlayerNames">TASK:GetPlayerNames()</a></td>
<td class="summary">
<p>Create a list of the players in the Task.</p>
</td>
</tr>
<tr>
@@ -232,6 +257,12 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).GetStateString">TASK:GetStateString()</a></td>
<td class="summary">
<p>Gets the <a href="Task.html">Task</a> status.</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).GetTaskBriefing">TASK:GetTaskBriefing()</a></td>
<td class="summary">
<p>Returns the <a href="Task.html">Task</a> briefing.</p>
</td>
</tr>
<tr>
@@ -277,7 +308,7 @@
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).IsAssignedToGroup">TASK:IsAssignedToGroup(TaskGroup)</a></td>
<td class="name" nowrap="nowrap"><a href="##(TASK).IsGroupAssigned">TASK:IsGroupAssigned(TaskGroup)</a></td>
<td class="summary">
<p>Returns if the <a href="Task.html">Task</a> is assigned to the Group.</p>
</td>
@@ -367,7 +398,7 @@
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).New">TASK:New(Mission, SetGroupAssign, TaskName, TaskType)</a></td>
<td class="name" nowrap="nowrap"><a href="##(TASK).New">TASK:New(Mission, SetGroupAssign, TaskName, TaskType, TaskBriefing)</a></td>
<td class="summary">
<p>Instantiates a new TASK.</p>
</td>
@@ -388,6 +419,12 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).OnAfterPlayerDead">TASK:OnAfterPlayerDead(PlayerUnit, PlayerName)</a></td>
<td class="summary">
<p>FSM PlayerDead event handler prototype for TASK.</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).RefreshMenus">TASK:RefreshMenus(TaskGroup, MenuTime)</a></td>
<td class="summary">
<p>Remove the menu option of the <a href="Task.html">Task</a> for a <a href="Group.html">Group</a>.</p>
</td>
</tr>
<tr>
@@ -400,12 +437,6 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).RemoveMenu">TASK:RemoveMenu(MenuTime)</a></td>
<td class="summary">
<p>Remove the menu options of the <a href="Task.html">Task</a> to all the groups in the SetGroup.</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).RemovePlannedMenuForGroup">TASK:RemovePlannedMenuForGroup(TaskGroup, MenuTime)</a></td>
<td class="summary">
<p>Remove the menu option of the <a href="Task.html">Task</a> for a <a href="Group.html">Group</a>.</p>
</td>
</tr>
<tr>
@@ -466,6 +497,12 @@
<td class="name" nowrap="nowrap"><a href="##(TASK).SetGroup">TASK.SetGroup</a></td>
<td class="summary">
<p>The Set of Groups assigned to the Task</p>
</td>
</tr>
<tr>
<td class="name" nowrap="nowrap"><a href="##(TASK).SetGroupAssigned">TASK:SetGroupAssigned(TaskGroup)</a></td>
<td class="summary">
<p>Set <a href="Group.html">Group</a> assigned to the <a href="Task.html">Task</a>.</p>
</td>
</tr>
<tr>
@@ -805,8 +842,8 @@ Use the method <a href="##(TASK).AddScore">TASK.AddScore</a>() to add scores whe
<dl class="function">
<dt>
<a id="#(TASK).AbortUnit" >
<strong>TASK:AbortUnit(PlayerUnit)</strong>
<a id="#(TASK).AbortGroup" >
<strong>TASK:AbortGroup(PlayerUnit, PlayerGroup)</strong>
</a>
</dt>
<dd>
@@ -817,19 +854,24 @@ Use the method <a href="##(TASK).AddScore">TASK.AddScore</a>() to add scores whe
<p>If the Unit was not part of the Task, false is returned.
If the Unit is part of the Task, true is returned.</p>
<h3>Parameter</h3>
<h3>Parameters</h3>
<ul>
<li>
<p><code><em><a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> PlayerUnit </em></code>:
The CLIENT or UNIT of the Player aborting the Task.</p>
</li>
<li>
<p><code><em> PlayerGroup </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em>#boolean:</em>
true if Unit is part of the Task.</p>
<p><em><a href="##(TASK)">#TASK</a>:</em></p>
</dd>
</dl>
@@ -899,6 +941,32 @@ self</p>
<p>Use this event to Cancel the Task.</p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).ClearGroupAssignment" >
<strong>TASK:ClearGroupAssignment(TaskGroup)</strong>
</a>
</dt>
<dd>
<p>Clear the <a href="Group.html">Group</a> assignment from the <a href="Task.html">Task</a>.</p>
<h3>Parameter</h3>
<ul>
<li>
<p><code><em><a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> TaskGroup </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em><a href="##(TASK)">#TASK</a>:</em></p>
</dd>
</dl>
<dl class="function">
@@ -918,8 +986,8 @@ self</p>
<dl class="function">
<dt>
<a id="#(TASK).CrashUnit" >
<strong>TASK:CrashUnit(PlayerUnit)</strong>
<a id="#(TASK).CrashGroup" >
<strong>TASK:CrashGroup(PlayerUnit, PlayerGroup)</strong>
</a>
</dt>
<dd>
@@ -931,19 +999,24 @@ self</p>
If the Unit was not part of the Task, false is returned.
If the Unit is part of the Task, true is returned.</p>
<h3>Parameter</h3>
<h3>Parameters</h3>
<ul>
<li>
<p><code><em><a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> PlayerUnit </em></code>:
The CLIENT or UNIT of the Player aborting the Task.</p>
</li>
<li>
<p><code><em> PlayerGroup </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em>#boolean:</em>
true if Unit is part of the Task.</p>
<p><em><a href="##(TASK)">#TASK</a>:</em></p>
</dd>
</dl>
@@ -1017,6 +1090,24 @@ true if Unit is part of the Task.</p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).GetBriefing" >
<strong>TASK:GetBriefing()</strong>
</a>
</dt>
<dd>
<p>Gets the <a href="Task.html">Task</a> briefing.</p>
<h3>Return value</h3>
<p><em>#string:</em>
The briefing text.</p>
</dd>
</dl>
<dl class="function">
@@ -1094,6 +1185,42 @@ The Task Name</p>
<dl class="function">
<dt>
<a id="#(TASK).GetPlayerCount" >
<strong>TASK:GetPlayerCount()</strong>
</a>
</dt>
<dd>
<p>Create a count of the players in the Task.</p>
<h3>Return value</h3>
<p><em>#number:</em>
The total number of players in the task.</p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).GetPlayerNames" >
<strong>TASK:GetPlayerNames()</strong>
</a>
</dt>
<dd>
<p>Create a list of the players in the Task.</p>
<h3>Return value</h3>
<p><em><a href="##(map)">#map</a>:</em></p>
<h1>string,Wrapper.Group#GROUP> A map of the players</h1>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).GetProcessTemplate" >
<strong>TASK:GetProcessTemplate(ProcessName)</strong>
</a>
@@ -1177,6 +1304,24 @@ Scoring</p>
<dl class="function">
<dt>
<a id="#(TASK).GetTaskBriefing" >
<strong>TASK:GetTaskBriefing()</strong>
</a>
</dt>
<dd>
<p>Returns the <a href="Task.html">Task</a> briefing.</p>
<h3>Return value</h3>
<p><em>#string:</em>
Task briefing.</p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).GetTaskIndex" >
<strong>TASK:GetTaskIndex()</strong>
</a>
@@ -1327,8 +1472,8 @@ self</p>
<dl class="function">
<dt>
<a id="#(TASK).IsAssignedToGroup" >
<strong>TASK:IsAssignedToGroup(TaskGroup)</strong>
<a id="#(TASK).IsGroupAssigned" >
<strong>TASK:IsGroupAssigned(TaskGroup)</strong>
</a>
</dt>
<dd>
@@ -1594,7 +1739,7 @@ true if Unit is part of the Task.</p>
<dt>
<a id="#(TASK).New" >
<strong>TASK:New(Mission, SetGroupAssign, TaskName, TaskType)</strong>
<strong>TASK:New(Mission, SetGroupAssign, TaskName, TaskType, TaskBriefing)</strong>
</a>
</dt>
<dd>
@@ -1629,6 +1774,11 @@ The name of the Task</p>
<p><code><em>#string TaskType </em></code>:
The type of the Task</p>
</li>
<li>
<p><code><em> TaskBriefing </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
@@ -1725,6 +1875,37 @@ The name of the Player.</p>
<dl class="function">
<dt>
<a id="#(TASK).RefreshMenus" >
<strong>TASK:RefreshMenus(TaskGroup, MenuTime)</strong>
</a>
</dt>
<dd>
<p>Remove the menu option of the <a href="Task.html">Task</a> for a <a href="Group.html">Group</a>.</p>
<h3>Parameters</h3>
<ul>
<li>
<p><code><em><a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> TaskGroup </em></code>: </p>
</li>
<li>
<p><code><em>#number MenuTime </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em><a href="##(TASK)">#TASK</a>:</em>
self</p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).RemoveAssignedMenuForGroup" >
<strong>TASK:RemoveAssignedMenuForGroup(TaskGroup, MenuTime)</strong>
</a>
@@ -1777,37 +1958,6 @@ self</p>
<p><em><a href="##(TASK)">#TASK</a>:</em></p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).RemovePlannedMenuForGroup" >
<strong>TASK:RemovePlannedMenuForGroup(TaskGroup, MenuTime)</strong>
</a>
</dt>
<dd>
<p>Remove the menu option of the <a href="Task.html">Task</a> for a <a href="Group.html">Group</a>.</p>
<h3>Parameters</h3>
<ul>
<li>
<p><code><em><a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> TaskGroup </em></code>: </p>
</li>
<li>
<p><code><em>#number MenuTime </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em><a href="##(TASK)">#TASK</a>:</em>
self</p>
</dd>
</dl>
<dl class="function">
@@ -2023,6 +2173,32 @@ self</p>
<p>The Set of Groups assigned to the Task</p>
</dd>
</dl>
<dl class="function">
<dt>
<a id="#(TASK).SetGroupAssigned" >
<strong>TASK:SetGroupAssigned(TaskGroup)</strong>
</a>
</dt>
<dd>
<p>Set <a href="Group.html">Group</a> assigned to the <a href="Task.html">Task</a>.</p>
<h3>Parameter</h3>
<ul>
<li>
<p><code><em><a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> TaskGroup </em></code>: </p>
</li>
</ul>
<h3>Return value</h3>
<p><em><a href="##(TASK)">#TASK</a>:</em></p>
</dd>
</dl>
<dl class="function">
@@ -2901,6 +3077,8 @@ self</p>
<h2><a id="#(integer)" >Type <code>integer</code></a></h2>
<h2><a id="#(map)" >Type <code>map</code></a></h2>
</div>
</div>