From 83e20f8062e168b45a25440ee0b5e8e938bcc2ad Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Tue, 17 Jan 2023 12:09:23 +0100 Subject: [PATCH 1/2] #Controllable - docu changes --- Moose Development/Moose/Wrapper/Controllable.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/Moose Development/Moose/Wrapper/Controllable.lua b/Moose Development/Moose/Wrapper/Controllable.lua index ad171ebe8..713069bbe 100644 --- a/Moose Development/Moose/Wrapper/Controllable.lua +++ b/Moose Development/Moose/Wrapper/Controllable.lua @@ -67,7 +67,6 @@ -- * @{#CONTROLLABLE.TaskRouteToVec2}: (AIR + GROUND) Make the Controllable move to a given point. -- * @{#CONTROLLABLE.TaskRouteToVec3}: (AIR + GROUND) Make the Controllable move to a given point. -- * @{#CONTROLLABLE.TaskRouteToZone}: (AIR + GROUND) Route the controllable to a given zone. --- * @{#CONTROLLABLE.TaskReturnToBase}: (AIR) Route the controllable to an airbase. -- -- ## 2.2) EnRoute assignment -- From 0d0292385fe7abaccc942cd9e98eafc702a0bd44 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 19 Jan 2023 10:33:26 +0100 Subject: [PATCH 2/2] #OPSGROUP - added docu --- Moose Development/Moose/Ops/OpsGroup.lua | 72 ++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 4 deletions(-) diff --git a/Moose Development/Moose/Ops/OpsGroup.lua b/Moose Development/Moose/Ops/OpsGroup.lua index 49f681192..24cb5da82 100644 --- a/Moose Development/Moose/Ops/OpsGroup.lua +++ b/Moose Development/Moose/Ops/OpsGroup.lua @@ -669,9 +669,9 @@ function OPSGROUP:New(group) self:AddTransition("*", "DetectedUnitKnown", "*") -- A known unit is still detected. self:AddTransition("*", "DetectedUnitLost", "*") -- Group lost a detected target. - self:AddTransition("*", "DetectedGroup", "*") -- Unit was detected (again) in this detection cycle. - self:AddTransition("*", "DetectedGroupNew", "*") -- Add a newly detected unit to the detected units set. - self:AddTransition("*", "DetectedGroupKnown", "*") -- A known unit is still detected. + self:AddTransition("*", "DetectedGroup", "*") -- Group was detected (again) in this detection cycle. + self:AddTransition("*", "DetectedGroupNew", "*") -- Add a newly detected Group to the detected Groups set. + self:AddTransition("*", "DetectedGroupKnown", "*") -- A known Group is still detected. self:AddTransition("*", "DetectedGroupLost", "*") -- Group lost a detected target group. self:AddTransition("*", "OutOfAmmo", "*") -- Group is completely out of ammo. @@ -869,7 +869,71 @@ function OPSGROUP:New(group) -- @param #string Event Event. -- @param #string To To state. -- @param Ops.OpsTransport#OPSTRANSPORT Transport The transport. - + + --- On After "DetectedGroup" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedGroup + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Group#Group Group Detected Group. + + --- On After "DetectedGroupNew" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedGroupNew + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Group#Group Group Newly detected group. + + --- On After "DetectedGroupKnown" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedGroupKnown + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Group#Group Group Known detected group. + + --- On After "DetectedGroupLost" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedGroupLost + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Group#Group Group Lost detected group. + + --- On After "DetectedUnit" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedUnit + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Unit#Unit Unit Detected Unit. + + --- On After "DetectedUnitNew" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedUnitNew + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Unit#Unit Unit Newly detected unit. + + --- On After "DetectedUnitKnown" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedUnitKnown + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Unit#Unit Unit Known detected unit. + + --- On After "DetectedUnitLost" event. + -- @function [parent=#OPSGROUP] OnAfterDetectedUnitLost + -- @param #OPSGROUP self + -- @param #string From From state. + -- @param #string Event Event. + -- @param #string To To state. + -- @param Wrapper.Unit#Unit Unit Lost detected unit. + -- TODO: Add pseudo functions. return self