| CLEANUP:AddAirbase(AirbaseName) |
Adds an airbase to the airbase validation list.
@@ -174,9 +168,21 @@
+ | CLEANUP.__.< |
+
+ string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.
+ |
+
+
| CLEANUP.__:AddForCleanUp(CleanUpUnit, CleanUpUnitName) |
Add the DCSWrapper.Unit#Unit to the CleanUpList for CleanUp.
+ |
+
+
+ | CLEANUP.__.Airbases |
+
+
|
@@ -308,20 +314,6 @@ The method CLEANUP.RemoveAirbase removes
-
- #map
-
-CLEANUP.<
-
-
--
-
-
string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.
-
-
-
-
--
-
CLEANUP:AddAirbase(AirbaseName)
@@ -444,6 +436,20 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )
-
+ #map
+
+CLEANUP.__.<
+
+
+-
+
+
string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.
+
+
+
+
+-
+
CLEANUP.__:AddForCleanUp(CleanUpUnit, CleanUpUnitName)
@@ -465,6 +471,20 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )
+
+
+
+-
+
+ #CLEANUP.__.Airbases
+
+CLEANUP.__.Airbases
+
+
+-
+
+
+
@@ -662,6 +682,8 @@ The object to be destroyed.
+
+
diff --git a/docs/Documentation/Detection.html b/docs/Documentation/Detection.html
index 1754d0aa0..d18ec397a 100644
--- a/docs/Documentation/Detection.html
+++ b/docs/Documentation/Detection.html
@@ -2563,7 +2563,7 @@ The index of the DetectedItem.
-
- #number
+
DETECTION_BASE.DetectionInterval
diff --git a/docs/Documentation/Movement.html b/docs/Documentation/Movement.html
index be5ce073c..4307c3aaa 100644
--- a/docs/Documentation/Movement.html
+++ b/docs/Documentation/Movement.html
@@ -227,7 +227,6 @@ on defined intervals (currently every minute).
-
- #number
MOVEMENT.AliveUnits
@@ -236,9 +235,6 @@ on defined intervals (currently every minute).
-
-
Contains the counter how many units are currently alive
-
diff --git a/docs/Documentation/Settings.html b/docs/Documentation/Settings.html
index 4dce02244..7dca37cbf 100644
--- a/docs/Documentation/Settings.html
+++ b/docs/Documentation/Settings.html
@@ -1073,7 +1073,7 @@ true if metric.
-
- #boolean
+
SETTINGS.Metric
diff --git a/docs/Documentation/Spawn.html b/docs/Documentation/Spawn.html
index 1183a03bf..26a6bfada 100644
--- a/docs/Documentation/Spawn.html
+++ b/docs/Documentation/Spawn.html
@@ -2194,6 +2194,9 @@ The group that was spawned. You can use this group for further actions.
+
+
Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.
+
@@ -2726,6 +2729,9 @@ when nothing was spawned.
+
+ Overwrite unit names by default with group name.
+
@@ -2740,6 +2746,9 @@ when nothing was spawned.
+
+ By default, no InitLimit
+
@@ -2775,7 +2784,7 @@ when nothing was spawned.
-
-
+ #number
SPAWN.SpawnMaxGroups
@@ -2792,7 +2801,7 @@ when nothing was spawned.
-
-
+ #number
SPAWN.SpawnMaxUnitsAlive
@@ -3144,7 +3153,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 )
-
When the first Spawn executes, all the Groups need to be made visible before start.
+ Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.
diff --git a/docs/Documentation/SpawnStatic.html b/docs/Documentation/SpawnStatic.html
index d8aa5e633..bc91b9624 100644
--- a/docs/Documentation/SpawnStatic.html
+++ b/docs/Documentation/SpawnStatic.html
@@ -436,7 +436,6 @@ ptional) The name of the new static.
-
- #number
SPAWNSTATIC.SpawnIndex
From 507e4ef25ae18bc368f5ba1bb08fa133700104bb Mon Sep 17 00:00:00 2001
From: FlightControl
Date: Sat, 1 Jul 2017 13:02:49 +0200
Subject: [PATCH 04/11] Made CleanUpScheduler private
---
Moose Development/Moose/Functional/CleanUp.lua | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Moose Development/Moose/Functional/CleanUp.lua b/Moose Development/Moose/Functional/CleanUp.lua
index 9e209ff27..aab745642 100644
--- a/Moose Development/Moose/Functional/CleanUp.lua
+++ b/Moose Development/Moose/Functional/CleanUp.lua
@@ -100,7 +100,7 @@ function CLEANUP:New( AirbaseNames )
self:HandleEvent( EVENTS.Birth, self.__.OnEventBirth )
- self.CleanUpScheduler = SCHEDULER:New( self, self.__.CleanUpScheduler, {}, 1, self.TimeInterval )
+ self.__.CleanUpScheduler = SCHEDULER:New( self, self.__.CleanUpSchedule, {}, 1, self.TimeInterval )
return self
end
@@ -319,7 +319,7 @@ end
--- At the defined time interval, CleanUp the Groups within the CleanUpList.
-- @param #CLEANUP self
-function CLEANUP.__:CleanUpScheduler()
+function CLEANUP.__:CleanUpSchedule()
local CleanUpCount = 0
for CleanUpUnitName, CleanUpListData in pairs( self.CleanUpList ) do
From 22b02cd3eead0f40837ede70eeae77e2203c83c6 Mon Sep 17 00:00:00 2001
From: FlightControl
Date: Sat, 1 Jul 2017 13:12:52 +0200
Subject: [PATCH 05/11] Made __ methods invisible
---
.../Moose/Functional/CleanUp.lua | 4 +-
docs/Documentation/AI_Patrol.html | 3 +
docs/Documentation/Cargo.html | 2 +
docs/Documentation/CleanUp.html | 325 +-----------------
docs/Documentation/Detection.html | 2 +
docs/Documentation/Movement.html | 4 +
docs/Documentation/Point.html | 1 +
docs/Documentation/Settings.html | 2 +-
docs/Documentation/Spawn.html | 9 +-
docs/Documentation/SpawnStatic.html | 1 +
docs/Documentation/Spot.html | 4 +
docs/Documentation/Task_Cargo.html | 2 +-
12 files changed, 28 insertions(+), 331 deletions(-)
diff --git a/Moose Development/Moose/Functional/CleanUp.lua b/Moose Development/Moose/Functional/CleanUp.lua
index aab745642..3f9425ac0 100644
--- a/Moose Development/Moose/Functional/CleanUp.lua
+++ b/Moose Development/Moose/Functional/CleanUp.lua
@@ -9,7 +9,7 @@
--
-- @module CleanUp
---- @type CLEANUP.__
+--- @type CLEANUP.__ Methods which are not intended for mission designers, but which are used interally by the moose designer :-)
-- @field #map<#string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.
-- @extends Core.Base#BASE
@@ -68,7 +68,7 @@ CLEANUP = {
CleanUpList = {},
}
---- @field #CLEANUP.__
+-- @field #CLEANUP.__
CLEANUP.__ = {}
--- @field #CLEANUP.__.Airbases
diff --git a/docs/Documentation/AI_Patrol.html b/docs/Documentation/AI_Patrol.html
index 93a9f8ce6..43392b308 100644
--- a/docs/Documentation/AI_Patrol.html
+++ b/docs/Documentation/AI_Patrol.html
@@ -926,6 +926,9 @@ Use the method AIPATROLZONE.M
+
+
This table contains the targets detected during patrol.
+
diff --git a/docs/Documentation/Cargo.html b/docs/Documentation/Cargo.html
index 262969991..e3fae231c 100644
--- a/docs/Documentation/Cargo.html
+++ b/docs/Documentation/Cargo.html
@@ -2934,6 +2934,7 @@ The range till cargo will board.
-
+
CARGO_UNIT.CargoCarrier
@@ -3059,6 +3060,7 @@ The range till cargo will board.
-
+ #number
CARGO_UNIT.RunCount
diff --git a/docs/Documentation/CleanUp.html b/docs/Documentation/CleanUp.html
index 24d7c0a67..c8e23a470 100644
--- a/docs/Documentation/CleanUp.html
+++ b/docs/Documentation/CleanUp.html
@@ -137,12 +137,6 @@
| CLEANUP:AddAirbase(AirbaseName) |
Adds an airbase to the airbase validation list.
- |
-
-
- | CLEANUP.CleanUpScheduler |
-
-
|
@@ -171,72 +165,6 @@
| CLEANUP.__.< |
string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.
- |
-
-
- | CLEANUP.__:AddForCleanUp(CleanUpUnit, CleanUpUnitName) |
-
- Add the DCSWrapper.Unit#Unit to the CleanUpList for CleanUp.
- |
-
-
- | CLEANUP.__.Airbases |
-
-
- |
-
-
- | CLEANUP.__:CleanUpScheduler() |
-
- At the defined time interval, CleanUp the Groups within the CleanUpList.
- |
-
-
- | CLEANUP.__:DestroyMissile(MissileObject) |
-
- Destroys a missile from the simulator, but checks first if it is still existing!
- |
-
-
- | CLEANUP.__:DestroyUnit(CleanUpUnit) |
-
- Destroys a Unit from the simulator, but checks first if it is still existing!
- |
-
-
- | CLEANUP.__:EventAddForCleanUp(Event) |
-
- Detects if the Unit has an SEVENTENGINESHUTDOWN or an SEVENT_HIT within the given AirbaseNames.
- |
-
-
- | CLEANUP.__:IsInAirbase(Vec2) |
-
-
- |
-
-
- | CLEANUP.__:OnEventBirth(EventData) |
-
-
- |
-
-
- | CLEANUP.__:OnEventCrash(Event) |
-
- Detects if a crash event occurs.
- |
-
-
- | CLEANUP.__:OnEventHit(Event) |
-
- Detects if the Unit has an SEVENTHIT within the given AirbaseNames.
- |
-
-
- | CLEANUP.__:OnEventShot(Event) |
-
- Detects if a unit shoots a missile.
|
@@ -335,20 +263,6 @@ The method CLEANUP.RemoveAirbase removes
#CLEANUP:
-
-
-
--
-
-
-
-CLEANUP.CleanUpScheduler
-
-
--
-
-
-
@@ -419,7 +333,7 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )
-
- #CLEANUP.__
+
CLEANUP.__
@@ -428,6 +342,9 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )
+
+
@field #CLEANUP.__
+
@@ -445,240 +362,6 @@ CleanUpKutaisi = CLEANUP:New( AIRBASE.Caucasus.Kutaisi )
string,Wrapper.Airbase#AIRBASE> Airbases Map of Airbases.
-
-
-
--
-
-
-CLEANUP.__:AddForCleanUp(CleanUpUnit, CleanUpUnitName)
-
-
--
-
-
Add the DCSWrapper.Unit#Unit to the CleanUpList for CleanUp.
-
- Parameters
-
-
-
-
--
-
- #CLEANUP.__.Airbases
-
-CLEANUP.__.Airbases
-
-
--
-
-
-
-
-
-
--
-
-
-CLEANUP.__:CleanUpScheduler()
-
-
--
-
-
At the defined time interval, CleanUp the Groups within the CleanUpList.
-
-
-
-
--
-
-
-CLEANUP.__:DestroyMissile(MissileObject)
-
-
--
-
-
Destroys a missile from the simulator, but checks first if it is still existing!
-
- Parameter
-
-
-
-
--
-
-
-CLEANUP.__:DestroyUnit(CleanUpUnit)
-
-
--
-
-
Destroys a Unit from the simulator, but checks first if it is still existing!
-
- Parameter
-
-
-
-
--
-
-
-CLEANUP.__:EventAddForCleanUp(Event)
-
-
--
-
-
Detects if the Unit has an SEVENTENGINESHUTDOWN or an SEVENT_HIT within the given AirbaseNames.
-
-
-If this is the case, add the Group to the CLEANUP List.
-
- Parameter
-
-
-
-
--
-
-
-CLEANUP.__:IsInAirbase(Vec2)
-
-
--
-
-
-
-
Parameter
-
-
-
-
--
-
-
-CLEANUP.__:OnEventBirth(EventData)
-
-
--
-
-
-
-
Parameter
-
-
-
-
--
-
-
-CLEANUP.__:OnEventCrash(Event)
-
-
--
-
-
Detects if a crash event occurs.
-
-
-Crashed units go into a CleanUpList for removal.
-
- Parameter
-
-
-
-
--
-
-
-CLEANUP.__:OnEventHit(Event)
-
-
--
-
-
Detects if the Unit has an SEVENTHIT within the given AirbaseNames.
-
-
-If this is the case, destroy the unit.
-
- Parameter
-
-
-
-
--
-
-
-CLEANUP.__:OnEventShot(Event)
-
-
--
-
-
Detects if a unit shoots a missile.
-
-
-If this occurs within one of the airbases, then the weapon used must be destroyed.
-
- Parameter
-
diff --git a/docs/Documentation/Detection.html b/docs/Documentation/Detection.html
index d18ec397a..8c70074f0 100644
--- a/docs/Documentation/Detection.html
+++ b/docs/Documentation/Detection.html
@@ -2393,6 +2393,7 @@ The index of the DetectedItem.
-
+ #number
DETECTION_BASE.DetectedItemCount
@@ -2406,6 +2407,7 @@ The index of the DetectedItem.
-
+ #number
DETECTION_BASE.DetectedItemMax
diff --git a/docs/Documentation/Movement.html b/docs/Documentation/Movement.html
index 4307c3aaa..be5ce073c 100644
--- a/docs/Documentation/Movement.html
+++ b/docs/Documentation/Movement.html
@@ -227,6 +227,7 @@ on defined intervals (currently every minute).
-
+ #number
MOVEMENT.AliveUnits
@@ -235,6 +236,9 @@ on defined intervals (currently every minute).
+
+
Contains the counter how many units are currently alive
+
diff --git a/docs/Documentation/Point.html b/docs/Documentation/Point.html
index ba2001e76..c9a6550f1 100644
--- a/docs/Documentation/Point.html
+++ b/docs/Documentation/Point.html
@@ -2823,6 +2823,7 @@ The y coordinate.
-
+
POINT_VEC2.z
diff --git a/docs/Documentation/Settings.html b/docs/Documentation/Settings.html
index 7dca37cbf..4dce02244 100644
--- a/docs/Documentation/Settings.html
+++ b/docs/Documentation/Settings.html
@@ -1073,7 +1073,7 @@ true if metric.
-
-
+ #boolean
SETTINGS.Metric
diff --git a/docs/Documentation/Spawn.html b/docs/Documentation/Spawn.html
index 26a6bfada..6c440cb38 100644
--- a/docs/Documentation/Spawn.html
+++ b/docs/Documentation/Spawn.html
@@ -2746,9 +2746,6 @@ when nothing was spawned.
-
-
By default, no InitLimit
-
@@ -2784,7 +2781,7 @@ when nothing was spawned.
-
- #number
+
SPAWN.SpawnMaxGroups
@@ -2801,7 +2798,7 @@ when nothing was spawned.
-
- #number
+
SPAWN.SpawnMaxUnitsAlive
@@ -3129,7 +3126,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 )
-
-
+ #boolean
SPAWN.SpawnUnControlled
diff --git a/docs/Documentation/SpawnStatic.html b/docs/Documentation/SpawnStatic.html
index bc91b9624..d8aa5e633 100644
--- a/docs/Documentation/SpawnStatic.html
+++ b/docs/Documentation/SpawnStatic.html
@@ -436,6 +436,7 @@ ptional) The name of the new static.
-
+ #number
SPAWNSTATIC.SpawnIndex
diff --git a/docs/Documentation/Spot.html b/docs/Documentation/Spot.html
index ead3792db..5fdc3b305 100644
--- a/docs/Documentation/Spot.html
+++ b/docs/Documentation/Spot.html
@@ -765,6 +765,7 @@ true if it is lasing
-
+
SPOT.ScheduleID
@@ -778,6 +779,7 @@ true if it is lasing
-
+
SPOT.SpotIR
@@ -791,6 +793,7 @@ true if it is lasing
-
+
SPOT.SpotLaser
@@ -804,6 +807,7 @@ true if it is lasing
-
+
SPOT.Target
diff --git a/docs/Documentation/Task_Cargo.html b/docs/Documentation/Task_Cargo.html
index 76e219e8b..9bf9da484 100644
--- a/docs/Documentation/Task_Cargo.html
+++ b/docs/Documentation/Task_Cargo.html
@@ -510,7 +510,7 @@ based on the tasking capabilities defined in Task#TA
-
- Core.Cargo#CARGO_GROUP
+ Core.Cargo#CARGO
FSM_PROCESS.Cargo
From 9006e17c2557db1b7b0f13f75e1dc7abf42ed7b5 Mon Sep 17 00:00:00 2001
From: FlightControl
Date: Sat, 1 Jul 2017 19:00:44 +0200
Subject: [PATCH 06/11] Fixed problem with BASE:GetParent method
---
Moose Development/Moose/AI/AI_A2A_Dispatcher.lua | 2 --
Moose Development/Moose/Core/Base.lua | 3 ++-
Moose Mission Setup/Moose.lua | 2 +-
docs/Documentation/AI_A2A.html | 1 +
docs/Documentation/AI_A2A_Dispatcher.html | 13 +++----------
docs/Documentation/AI_Patrol.html | 3 ---
docs/Documentation/Cargo.html | 2 --
docs/Documentation/Detection.html | 4 +---
docs/Documentation/Point.html | 1 -
docs/Documentation/Spawn.html | 7 +++++--
docs/Documentation/Spot.html | 4 ----
docs/Documentation/Task_Cargo.html | 3 +--
12 files changed, 14 insertions(+), 31 deletions(-)
diff --git a/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua b/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua
index 316a7ab12..fcb65227a 100644
--- a/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua
+++ b/Moose Development/Moose/AI/AI_A2A_Dispatcher.lua
@@ -551,8 +551,6 @@ do -- AI_A2A_DISPATCHER
--- AI_A2A_DISPATCHER constructor.
-- @param #AI_A2A_DISPATCHER self
-- @param Functional.Detection#DETECTION_BASE Detection The DETECTION object that will detects targets using the the Early Warning Radar network.
- -- @param #number GroupingRadius The radius in meters wherein detected planes are being grouped as one target area.
- -- For airplanes, 6000 (6km) is recommended, and is also the default value of this parameter.
-- @return #AI_A2A_DISPATCHER self
-- @usage
--
diff --git a/Moose Development/Moose/Core/Base.lua b/Moose Development/Moose/Core/Base.lua
index 68356d0eb..c7dd7f446 100644
--- a/Moose Development/Moose/Core/Base.lua
+++ b/Moose Development/Moose/Core/Base.lua
@@ -250,6 +250,7 @@ function BASE:Inherit( Child, Parent )
local Child = routines.utils.deepCopy( Child )
if Child ~= nil then
+ Child.ClassParent = Parent
-- This is for "private" methods...
-- When a __ is passed to a method as "self", the __index will search for the method on the public method list of the same object too!
@@ -277,7 +278,7 @@ end
-- @param #BASE Child is the Child class from which the Parent class needs to be retrieved.
-- @return #BASE
function BASE:GetParent( Child )
- local Parent = getmetatable( Child )
+ local Parent = Child.ClassParent
-- env.info('Inherited class of ' .. Child.ClassName .. ' is ' .. Parent.ClassName )
return Parent
end
diff --git a/Moose Mission Setup/Moose.lua b/Moose Mission Setup/Moose.lua
index ba2e8320e..dbcc4bd87 100644
--- a/Moose Mission Setup/Moose.lua
+++ b/Moose Mission Setup/Moose.lua
@@ -1,5 +1,5 @@
env.info( '*** MOOSE DYNAMIC INCLUDE START *** ' )
-env.info( 'Moose Generation Timestamp: 20170630_1035' )
+env.info( 'Moose Generation Timestamp: 20170701_1713' )
local base = _G
diff --git a/docs/Documentation/AI_A2A.html b/docs/Documentation/AI_A2A.html
index ee2dc9007..2a24504d1 100644
--- a/docs/Documentation/AI_A2A.html
+++ b/docs/Documentation/AI_A2A.html
@@ -575,6 +575,7 @@
-
+ #number
AI_A2A.IdleCount
diff --git a/docs/Documentation/AI_A2A_Dispatcher.html b/docs/Documentation/AI_A2A_Dispatcher.html
index b2cf47842..2dba4f655 100644
--- a/docs/Documentation/AI_A2A_Dispatcher.html
+++ b/docs/Documentation/AI_A2A_Dispatcher.html
@@ -345,7 +345,7 @@
|