mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#AIRBASE
* Added 3 new airports to the enumerator
This commit is contained in:
parent
8289ebbe50
commit
5d84f1c523
@ -697,6 +697,8 @@ do
|
|||||||
-- @field #number TargetRadius
|
-- @field #number TargetRadius
|
||||||
-- @field #boolean UseWhiteList
|
-- @field #boolean UseWhiteList
|
||||||
-- @field #table WhiteList
|
-- @field #table WhiteList
|
||||||
|
-- @field #boolean UseBlackList
|
||||||
|
-- @field #table BlackList
|
||||||
-- @field Core.TextAndSound#TEXTANDSOUND gettext
|
-- @field Core.TextAndSound#TEXTANDSOUND gettext
|
||||||
-- @field #string locale
|
-- @field #string locale
|
||||||
-- @field #boolean precisionbombing
|
-- @field #boolean precisionbombing
|
||||||
@ -873,7 +875,7 @@ do
|
|||||||
-- YES = "Yes",
|
-- YES = "Yes",
|
||||||
-- NO = "No",
|
-- NO = "No",
|
||||||
-- POINTEROVERTARGET = "%s, %s, pointer over target for task %03d, lasing!",
|
-- POINTEROVERTARGET = "%s, %s, pointer over target for task %03d, lasing!",
|
||||||
-- POINTERTARGETREPORT = "\nPointer over target: %s\nLasing: %s\n",
|
-- POINTERTARGETREPORT = "\nPointer over target: %s\nLasing: %s",
|
||||||
-- },
|
-- },
|
||||||
--
|
--
|
||||||
-- e.g.
|
-- e.g.
|
||||||
@ -1043,7 +1045,7 @@ PLAYERTASKCONTROLLER.Messages = {
|
|||||||
YES = "Yes",
|
YES = "Yes",
|
||||||
NO = "No",
|
NO = "No",
|
||||||
POINTEROVERTARGET = "%s, %s, pointer over target for task %03d, lasing!",
|
POINTEROVERTARGET = "%s, %s, pointer over target for task %03d, lasing!",
|
||||||
POINTERTARGETREPORT = "\nPointer over target: %s\nLasing: %s\n",
|
POINTERTARGETREPORT = "\nPointer over target: %s\nLasing: %s",
|
||||||
},
|
},
|
||||||
DE = {
|
DE = {
|
||||||
TASKABORT = "Auftrag abgebrochen!",
|
TASKABORT = "Auftrag abgebrochen!",
|
||||||
@ -1097,7 +1099,7 @@ PLAYERTASKCONTROLLER.Messages = {
|
|||||||
YES = "Ja",
|
YES = "Ja",
|
||||||
NO = "Nein",
|
NO = "Nein",
|
||||||
POINTEROVERTARGET = "%s, %s, Marker im Zielbereich für %03d, Laser an!",
|
POINTEROVERTARGET = "%s, %s, Marker im Zielbereich für %03d, Laser an!",
|
||||||
POINTERTARGETREPORT = "\nMarker im Zielbereich: %s\nLaser an: %s\n",
|
POINTERTARGETREPORT = "\nMarker im Zielbereich: %s\nLaser an: %s",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1657,6 +1659,26 @@ function PLAYERTASKCONTROLLER:_CheckTaskTypeAllowed(Type)
|
|||||||
return Outcome
|
return Outcome
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- [Internal] Check for allowed task type, if there is a (negative) blacklist
|
||||||
|
-- @param #PLAYERTASKCONTROLLER self
|
||||||
|
-- @param #string Type
|
||||||
|
-- @return #boolean Outcome
|
||||||
|
function PLAYERTASKCONTROLLER:_CheckTaskTypeDisallowed(Type)
|
||||||
|
self:T(self.lid.."_CheckTaskTypeDisallowed")
|
||||||
|
local Outcome = false
|
||||||
|
if self.UseBlackList then
|
||||||
|
for _,_type in pairs(self.BlackList) do
|
||||||
|
if Type == _type then
|
||||||
|
Outcome = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
else
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
return Outcome
|
||||||
|
end
|
||||||
|
|
||||||
--- [User] Set up a (positive) whitelist of allowed task types. Only these types will be generated.
|
--- [User] Set up a (positive) whitelist of allowed task types. Only these types will be generated.
|
||||||
-- @param #PLAYERTASKCONTROLLER self
|
-- @param #PLAYERTASKCONTROLLER self
|
||||||
-- @param #table WhiteList Table of task types that can be generated. Use to restrict available types.
|
-- @param #table WhiteList Table of task types that can be generated. Use to restrict available types.
|
||||||
@ -1677,6 +1699,26 @@ function PLAYERTASKCONTROLLER:SetTaskWhiteList(WhiteList)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- [User] Set up a (negative) blacklist of forbidden task types. These types will **not** be generated.
|
||||||
|
-- @param #PLAYERTASKCONTROLLER self
|
||||||
|
-- @param #table BlackList Table of task types that cannot be generated. Use to restrict available types.
|
||||||
|
-- @return #PLAYERTASKCONTROLLER self
|
||||||
|
-- @usage Currently, the following task types will be generated, if detection has been set up:
|
||||||
|
-- A2A - AUFTRAG.Type.INTERCEPT
|
||||||
|
-- A2S - AUFTRAG.Type.ANTISHIP
|
||||||
|
-- A2G - AUFTRAG.Type.CAS, AUFTRAG.Type.BAI, AUFTRAG.Type.SEAD, AUFTRAG.Type.BOMBING, AUFTRAG.Type.PRECISIONBOMBING, AUFTRAG.Type.BOMBRUNWAY
|
||||||
|
-- A2GS - A2G + A2S
|
||||||
|
-- If you don't want SEAD tasks generated, use as follows where "mycontroller" is your PLAYERTASKCONTROLLER object:
|
||||||
|
--
|
||||||
|
-- `mycontroller:SetTaskBlackList({AUFTRAG.Type.SEAD})`
|
||||||
|
--
|
||||||
|
function PLAYERTASKCONTROLLER:SetTaskBlackList(BlackList)
|
||||||
|
self:T(self.lid.."SetTaskBlackList")
|
||||||
|
self.BlackList = BlackList
|
||||||
|
self.UseBlackList = true
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
|
||||||
--- [Internal] Add a task to the task queue
|
--- [Internal] Add a task to the task queue
|
||||||
-- @param #PLAYERTASKCONTROLLER self
|
-- @param #PLAYERTASKCONTROLLER self
|
||||||
-- @param Ops.Target#TARGET Target
|
-- @param Ops.Target#TARGET Target
|
||||||
@ -1808,6 +1850,12 @@ function PLAYERTASKCONTROLLER:_AddTask(Target)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if self.UseBlackList then
|
||||||
|
if self:_CheckTaskTypeDisallowed(type) then
|
||||||
|
return self
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local task = PLAYERTASK:New(type,Target,self.repeatonfailed,self.repeattimes,ttstype)
|
local task = PLAYERTASK:New(type,Target,self.repeatonfailed,self.repeattimes,ttstype)
|
||||||
|
|
||||||
task.coalition = self.Coalition
|
task.coalition = self.Coalition
|
||||||
|
|||||||
@ -500,6 +500,9 @@ AIRBASE.MarianaIslands={
|
|||||||
-- * AIRBASE.SouthAtlantic.Punta_Arenas
|
-- * AIRBASE.SouthAtlantic.Punta_Arenas
|
||||||
-- * AIRBASE.SouthAtlantic.Pampa_Guanaco
|
-- * AIRBASE.SouthAtlantic.Pampa_Guanaco
|
||||||
-- * AIRBASE.SouthAtlantic.San_Julian
|
-- * AIRBASE.SouthAtlantic.San_Julian
|
||||||
|
-- * AIRBASE.SouthAtlantic.Puerto_Williams
|
||||||
|
-- * AIRBASE.SouthAtlantic.Puerto_Natales
|
||||||
|
-- * AIRBASE.SouthAtlantic.El_Calafate
|
||||||
--
|
--
|
||||||
--@field MarianaIslands
|
--@field MarianaIslands
|
||||||
AIRBASE.SouthAtlantic={
|
AIRBASE.SouthAtlantic={
|
||||||
@ -513,6 +516,9 @@ AIRBASE.SouthAtlantic={
|
|||||||
["Punta_Arenas"]="Punta Arenas",
|
["Punta_Arenas"]="Punta Arenas",
|
||||||
["Pampa_Guanaco"]="Pampa Guanaco",
|
["Pampa_Guanaco"]="Pampa Guanaco",
|
||||||
["San_Julian"]="San Julian",
|
["San_Julian"]="San Julian",
|
||||||
|
["Puerto_Williams"]="Puerto Williams",
|
||||||
|
["Puerto_Natales"]="Puerto Natales",
|
||||||
|
["El_Calafate"]="El Calafate",
|
||||||
}
|
}
|
||||||
|
|
||||||
--- AIRBASE.ParkingSpot ".Coordinate, ".TerminalID", ".TerminalType", ".TOAC", ".Free", ".TerminalID0", ".DistToRwy".
|
--- AIRBASE.ParkingSpot ".Coordinate, ".TerminalID", ".TerminalType", ".TOAC", ".Free", ".TerminalID0", ".DistToRwy".
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user