Updates on goal logic

This commit is contained in:
FlightControl
2019-03-23 10:45:14 +01:00
parent 4c72496599
commit bfb11b6f79
3 changed files with 27 additions and 9 deletions

View File

@@ -1709,6 +1709,23 @@ end
do -- Links
--- Set goal of a task
-- @param #TASK self
-- @param Core.Goal#GOAL Goal
-- @return #TASK
function TASK:SetGoal( Goal )
self.Goal = Goal
end
--- Get goal of a task
-- @param #TASK self
-- @return Core.Goal#GOAL The Goal
function TASK:GetGoal()
return self.Goal
end
--- Set dispatcher of a task
-- @param #TASK self
-- @param Tasking.DetectionManager#DETECTION_MANAGER Dispatcher