This commit is contained in:
Frank
2020-03-25 16:43:34 +01:00
parent e675c991c4
commit 130e089d1c
7 changed files with 281 additions and 212 deletions
+3 -2
View File
@@ -85,8 +85,9 @@ INTEL.version="0.0.3"
--- Create a new INTEL object and start the FSM.
-- @param #INTEL self
-- @param Core.Set#SET_GROUP DetectionSet Set of detection groups.
-- @param #number Coalition Coalition side. Can also be passed as a string "red", "blue" or "neutral".
-- @return #INTEL self
function INTEL:New(DetectionSet)
function INTEL:New(DetectionSet, Coalition)
-- Inherit everything from FSM class.
local self=BASE:Inherit(self, FSM:New()) -- #INTEL
@@ -499,7 +500,7 @@ end
-- @param #INTEL.DetectedItem Contact Detected contact.
function INTEL:onafterNewContact(From, Event, To, Contact)
self:I(self.lid..string.format("NEW contact %s", Contact.groupname))
table.insert(self.ContactsUnknown, Contact)
table.insert(self.ContactsUnknown, Contact)
end
--- On after "LostContact" event.