mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Documentation AI
This commit is contained in:
parent
bd7c822def
commit
6a71921270
@ -1,4 +1,13 @@
|
|||||||
--- **AI** -- (R2.1) - Manages the independent process of Battlefield Air Interdiction (bombing) for airplanes.
|
--- **AI** -- Peform Battlefield Area Interdiction (BAI) within an engagement zone.
|
||||||
|
--
|
||||||
|
-- **Features:**
|
||||||
|
--
|
||||||
|
-- * Hold and standby within a patrol zone.
|
||||||
|
-- * Engage upon command the assigned targets within an engagement zone.
|
||||||
|
-- * Loop the zone until all targets are eliminated.
|
||||||
|
-- * Trigger different events upon the results achieved.
|
||||||
|
-- * After combat, return to the patrol zone and hold.
|
||||||
|
-- * RTB when commanded or after out of fuel.
|
||||||
--
|
--
|
||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
|
|||||||
@ -1,4 +1,12 @@
|
|||||||
--- **AI** -- (R2.1) - Manages the independent process of Combat Air Patrol (CAP) for airplanes.
|
--- **AI** -- Perform Combat Air Patrolling (CAP) for airplanes.
|
||||||
|
--
|
||||||
|
-- **Features:**
|
||||||
|
--
|
||||||
|
-- * Patrol AI airplanes within a given zone.
|
||||||
|
-- * Trigger detected events when enemy airplanes are detected.
|
||||||
|
-- * Manage a fuel treshold to RTB on time.
|
||||||
|
-- * Engage the enemy when detected.
|
||||||
|
--
|
||||||
--
|
--
|
||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
@ -31,7 +39,7 @@
|
|||||||
-- @extends AI.AI_Patrol#AI_PATROL_ZONE
|
-- @extends AI.AI_Patrol#AI_PATROL_ZONE
|
||||||
|
|
||||||
|
|
||||||
-- Implements the core functions to patrol a @{Zone} by an AI @{Wrapper.Controllable} or @{Wrapper.Group}
|
--- Implements the core functions to patrol a @{Zone} by an AI @{Wrapper.Controllable} or @{Wrapper.Group}
|
||||||
-- and automatically engage any airborne enemies that are within a certain range or within a certain zone.
|
-- and automatically engage any airborne enemies that are within a certain range or within a certain zone.
|
||||||
--
|
--
|
||||||
-- 
|
-- 
|
||||||
|
|||||||
@ -1,4 +1,13 @@
|
|||||||
--- **AI** -- (R2.1) - Manages the independent process of Close Air Support for airplanes.
|
--- **AI** -- Perform Close Air Support (CAS) near friendlies.
|
||||||
|
--
|
||||||
|
-- **Features:**
|
||||||
|
--
|
||||||
|
-- * Hold and standby within a patrol zone.
|
||||||
|
-- * Engage upon command the enemies within an engagement zone.
|
||||||
|
-- * Loop the zone until all enemies are eliminated.
|
||||||
|
-- * Trigger different events upon the results achieved.
|
||||||
|
-- * After combat, return to the patrol zone and hold.
|
||||||
|
-- * RTB when commanded or after fuel.
|
||||||
--
|
--
|
||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
|
|||||||
@ -91,7 +91,7 @@ AI_CARGO_DISPATCHER_APC = {
|
|||||||
-- @param Core.Set#SET_GROUP SetAPC The collection of APC @{Wrapper.Group}s.
|
-- @param Core.Set#SET_GROUP SetAPC The collection of APC @{Wrapper.Group}s.
|
||||||
-- @param Core.Set#SET_CARGO SetCargo The collection of @{Cargo} derived objects.
|
-- @param Core.Set#SET_CARGO SetCargo The collection of @{Cargo} derived objects.
|
||||||
-- @param Core.Set#SET_ZONE SetDeployZone The collection of deploy @{Zone}s, which are used to where the cargo will be deployed by the APCs.
|
-- @param Core.Set#SET_ZONE SetDeployZone The collection of deploy @{Zone}s, which are used to where the cargo will be deployed by the APCs.
|
||||||
-- @param #number CombatRadius The cargo will be unloaded from the APC and engage the enemy if the enemy is within CombatRadius range. The radius is in meters, the default value is 500 meters.
|
-- @param DCS#Distance CombatRadius The cargo will be unloaded from the APC and engage the enemy if the enemy is within CombatRadius range. The radius is in meters, the default value is 500 meters.
|
||||||
-- @return #AI_CARGO_DISPATCHER_APC
|
-- @return #AI_CARGO_DISPATCHER_APC
|
||||||
-- @usage
|
-- @usage
|
||||||
--
|
--
|
||||||
@ -101,9 +101,9 @@ AI_CARGO_DISPATCHER_APC = {
|
|||||||
-- SetDeployZone = SET_ZONE:New():FilterPrefixes( "Deploy" ):FilterStart()
|
-- SetDeployZone = SET_ZONE:New():FilterPrefixes( "Deploy" ):FilterStart()
|
||||||
-- AICargoDispatcher = AI_CARGO_DISPATCHER_APC:New( SetAPC, SetCargo, SetDeployZone, 500 )
|
-- AICargoDispatcher = AI_CARGO_DISPATCHER_APC:New( SetAPC, SetCargo, SetDeployZone, 500 )
|
||||||
--
|
--
|
||||||
function AI_CARGO_DISPATCHER_APC:New( SetAPC, SetCargo, SetDeployZones, CombatRadius )
|
function AI_CARGO_DISPATCHER_APC:New( SetAPC, SetCargo, SetDeployZone, CombatRadius )
|
||||||
|
|
||||||
local self = BASE:Inherit( self, AI_CARGO_DISPATCHER:New( SetAPC, SetCargo, SetDeployZones ) ) -- #AI_CARGO_DISPATCHER_APC
|
local self = BASE:Inherit( self, AI_CARGO_DISPATCHER:New( SetAPC, SetCargo, SetDeployZone ) ) -- #AI_CARGO_DISPATCHER_APC
|
||||||
|
|
||||||
self.CombatRadius = CombatRadius or 500
|
self.CombatRadius = CombatRadius or 500
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,10 @@
|
|||||||
--- **AI** -- (R2.1) - Manages the independent process of Air Patrol for airplanes.
|
--- **AI** -- Perform Air Patrolling for airplanes.
|
||||||
|
--
|
||||||
|
-- **Features:**
|
||||||
|
--
|
||||||
|
-- * Patrol AI airplanes within a given zone.
|
||||||
|
-- * Trigger detected events when enemy airplanes are detected.
|
||||||
|
-- * Manage a fuel treshold to RTB on time.
|
||||||
--
|
--
|
||||||
-- ===
|
-- ===
|
||||||
--
|
--
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user