Documenting further

This commit is contained in:
FlightControl
2017-01-09 11:27:37 +01:00
parent 51780b1d9b
commit de4edad449
19 changed files with 17 additions and 22 deletions

View File

@@ -1,24 +1,26 @@
--- SP:N MP:Y AI:Y HU:N TYP:A -- This module contains the AI_BALANCER class. --- SP:N MP:Y AI:Y HU:N TYP:A -- This module contains the AI_BALANCER class. AI Balancing will replace in multi player missions
-- -- non-occupied human slots with AI groups, in order to provide an engaging simulation environment,
-- AI Balancing will replace in multi player missions non-occupied human slots with AI groups, in order to provide an -- even when there are hardly any players in the mission.
-- engaging simulation environment, even when there are hardly any players in the mission.
-- --
-- ![Banner Image](..\Presentations\AI_Balancer\Dia1.JPG) -- ![Banner Image](..\Presentations\AI_Balancer\Dia1.JPG)
-- --
-- Examples can be found in the test missions.
--
-- === -- ===
-- --
-- # 1) @{AI.AI_Balancer#AI_BALANCER} class, extends @{Core.Fsm#FSM_SET} -- # 1) @{AI.AI_Balancer#AI_BALANCER} class, extends @{Core.Fsm#FSM_SET}
-- --
-- The @{AI.AI_Balancer#AI_BALANCER} class monitors and manages as many AI GROUPS as there are -- The @{AI.AI_Balancer#AI_BALANCER} class monitors and manages as many replacement AI groups as there are
-- CLIENTS in a SET_CLIENT collection not occupied by human players. -- CLIENTS in a SET_CLIENT collection, which are not occupied by human players.
-- In other words, use AI_BALANCER to simulate human behaviour by spawning in replacement AI. -- In other words, use AI_BALANCER to simulate human behaviour by spawning in replacement AI in multi player missions.
-- --
-- The AI_BALANCER class manages internally a collection of AI management objects, which govern the behaviour -- The parent class @{Core.Fsm#FSM_SET} manages the functionality to control the Finite State Machine (FSM).
-- of the spawned AI @{Wrapper.Group#GROUP)s. -- The mission designer can tailor the behaviour of the AI_BALANCER, by defining event and state transition methods.
-- An explanation about state and event transition methods can be found in the @{FSM} module documentation.
-- --
-- The parent class @{Core.Fsm#FSM_SET} manages the functionality to control the Finite State Machine (FSM) -- The mission designer can tailor the AI_BALANCER behaviour, by implementing a state or event handling method for the following:
-- and calls for each event the state transition methods providing the internal @{Core.Fsm#FSM_SET.Set} object containing the --
-- AI and additional event parameters provided during the event. -- * **@{#AI_BALANCER.OnAfterSpawned}**( AISet, From, Event, To, AIGroup ): Define to add extra logic when an AI is spawned.
-- --
-- ## 1.1) AI_BALANCER construction -- ## 1.1) AI_BALANCER construction
-- --
@@ -26,12 +28,8 @@
-- --
-- ## 1.2) AI_BALANCER is a FSM -- ## 1.2) AI_BALANCER is a FSM
-- --
-- The AI_BALANCER is a state machine: it manages the different events and states of the @{Core.Fsm#FSM_SET.Set} it is governing.
-- The AI_BALANCER has a default flow to manage the set.
--
-- ![Process](..\Presentations\AI_Balancer\Dia2.JPG) -- ![Process](..\Presentations\AI_Balancer\Dia2.JPG)
-- --
--
-- ### 1.2.1) AI_BALANCER States -- ### 1.2.1) AI_BALANCER States
-- --
-- * **Monitoring** ( Set ): Monitoring the Set if all AI is spawned for the Clients. -- * **Monitoring** ( Set ): Monitoring the Set if all AI is spawned for the Clients.
@@ -61,13 +59,12 @@
-- * @{#AI_BALANCER.ReturnToHomeAirbase}: Returns the AI to the **home** @{Wrapper.Airbase#AIRBASE}. -- * @{#AI_BALANCER.ReturnToHomeAirbase}: Returns the AI to the **home** @{Wrapper.Airbase#AIRBASE}.
-- * @{#AI_BALANCER.ReturnToNearestAirbases}: Returns the AI to the **nearest friendly** @{Wrapper.Airbase#AIRBASE}. -- * @{#AI_BALANCER.ReturnToNearestAirbases}: Returns the AI to the **nearest friendly** @{Wrapper.Airbase#AIRBASE}.
-- --
-- Note that when AI returns to an airbase, it will trigger the **Return** event and will return, -- Note that when AI returns to an airbase, the AI_BALANCER will trigger the **Return** event and the AI will return,
-- otherwise when the AI is destroyed, the **Destroy** event will be triggered. -- otherwise the AI_BALANCER will trigger a **Destroy** event, and the AI will be destroyed.
-- --
-- === -- ===
-- --
-- **API CHANGE HISTORY** -- # **API CHANGE HISTORY**
-- ======================
-- --
-- The underlying change log documents the API changes. Please read this carefully. The following notation is used: -- The underlying change log documents the API changes. Please read this carefully. The following notation is used:
-- --
@@ -94,8 +91,6 @@
-- --
-- @module AI_Balancer -- @module AI_Balancer
--- AI_BALANCER class --- AI_BALANCER class
-- @type AI_BALANCER -- @type AI_BALANCER
-- @field Core.Set#SET_CLIENT SetClient -- @field Core.Set#SET_CLIENT SetClient

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 KiB

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 216 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

After

Width:  |  Height:  |  Size: 199 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 209 KiB

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 258 KiB

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 241 KiB

After

Width:  |  Height:  |  Size: 233 KiB