mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Progress
This commit is contained in:
parent
cf4c269f77
commit
b48c467d57
@ -475,7 +475,7 @@ do -- AI_A2A_DISPATCHER
|
|||||||
Intercept.MaxSpeed = MaxSpeed
|
Intercept.MaxSpeed = MaxSpeed
|
||||||
end
|
end
|
||||||
|
|
||||||
---
|
--- Defines the amount of extra planes that will take-off as part of the defense system.
|
||||||
-- @param #AI_A2A_DISPATCHER self
|
-- @param #AI_A2A_DISPATCHER self
|
||||||
-- @param #string SquadronName The name of the squadron.
|
-- @param #string SquadronName The name of the squadron.
|
||||||
-- @param #number Overhead The %-tage of Units that dispatching command will allocate to intercept in surplus of detected amount of units.
|
-- @param #number Overhead The %-tage of Units that dispatching command will allocate to intercept in surplus of detected amount of units.
|
||||||
@ -496,14 +496,14 @@ do -- AI_A2A_DISPATCHER
|
|||||||
--
|
--
|
||||||
-- @usage:
|
-- @usage:
|
||||||
--
|
--
|
||||||
-- local Dispatcher = AI_A2A_DISPATCHER:New( EWR )
|
-- local Dispatcher = AI_A2A_DISPATCHER:New( ... )
|
||||||
--
|
--
|
||||||
-- -- An overhead of 1,5 with 1 planes detected, will allocate 2 planes ( 1 * 1,5 ) = 1,5 => rounded up gives 2.
|
-- -- An overhead of 1,5 with 1 planes detected, will allocate 2 planes ( 1 * 1,5 ) = 1,5 => rounded up gives 2.
|
||||||
-- -- An overhead of 1,5 with 2 planes detected, will allocate 3 planes ( 2 * 1,5 ) = 3 => rounded up gives 3.
|
-- -- An overhead of 1,5 with 2 planes detected, will allocate 3 planes ( 2 * 1,5 ) = 3 => rounded up gives 3.
|
||||||
-- -- An overhead of 1,5 with 3 planes detected, will allocate 5 planes ( 3 * 1,5 ) = 4,5 => rounded up gives 5 planes.
|
-- -- An overhead of 1,5 with 3 planes detected, will allocate 5 planes ( 3 * 1,5 ) = 4,5 => rounded up gives 5 planes.
|
||||||
-- -- An overhead of 1,5 with 4 planes detected, will allocate 6 planes ( 4 * 1,5 ) = 6 => rounded up gives 6 planes.
|
-- -- An overhead of 1,5 with 4 planes detected, will allocate 6 planes ( 4 * 1,5 ) = 6 => rounded up gives 6 planes.
|
||||||
--
|
--
|
||||||
-- Dispatcher:SetOverhead( 1,5 )
|
-- Dispatcher:SetSquadronOverhead( 1,5 )
|
||||||
--
|
--
|
||||||
--
|
--
|
||||||
-- @return #AI_A2A_DISPATCHER
|
-- @return #AI_A2A_DISPATCHER
|
||||||
@ -514,6 +514,24 @@ do -- AI_A2A_DISPATCHER
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---
|
||||||
|
-- @param #AI_A2A_DISPATCHER self
|
||||||
|
-- @param #string SquadronName The name of the squadron.
|
||||||
|
-- @param #number Grouping The level of grouping that will be applied of the CAP or GCI defenders.
|
||||||
|
-- @usage:
|
||||||
|
--
|
||||||
|
-- local Dispatcher = AI_A2A_DISPATCHER:New( ... )
|
||||||
|
-- Dispatcher:SetSquadronGrouping( 2 )
|
||||||
|
--
|
||||||
|
--
|
||||||
|
-- @return #AI_A2A_DISPATCHER
|
||||||
|
function AI_A2A_DISPATCHER:SetSquadronGrouping( SquadronName, Grouping )
|
||||||
|
|
||||||
|
self.Grouping = Grouping
|
||||||
|
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- Creates an SWEEP task when there are targets for it.
|
--- Creates an SWEEP task when there are targets for it.
|
||||||
-- @param #AI_A2A_DISPATCHER self
|
-- @param #AI_A2A_DISPATCHER self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user