mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Jippie! Finally got the Sub Statemachine declaration understandable for end-users.
Reworked the hierarchical state machine processing in terms of sub processing. Now, the declaration and usage of subs is completely understandable and easy to implement. I am excited to see how end-users will see the possibilities.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
-- @field Group#GROUP ProcessGroup
|
||||
-- @field Menu#MENU_GROUP MissionMenu
|
||||
-- @field #string ProcessName
|
||||
-- @extends StateMachine#STATEMACHINE_CONTROLLABLE
|
||||
-- @extends Core.StateMachine#STATEMACHINE_CONTROLLABLE
|
||||
PROCESS = {
|
||||
ClassName = "PROCESS",
|
||||
NextEvent = nil,
|
||||
@@ -29,6 +29,7 @@ function PROCESS:New( FSMT, ProcessName, ProcessUnit )
|
||||
--self.MissionMenu = Task.Mission:GetMissionMenu( self.ProcessGroup )
|
||||
self.ProcessName = ProcessName
|
||||
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
@@ -67,15 +68,6 @@ function PROCESS:GetMission()
|
||||
return self.ProcessTask.Mission
|
||||
end
|
||||
|
||||
function PROCESS:ProcessStart()
|
||||
|
||||
end
|
||||
|
||||
function PROCESS:ProcessStop()
|
||||
self:E("ProcessStop Base Class")
|
||||
|
||||
self:EventRemoveAll()
|
||||
end
|
||||
|
||||
--- Assign the process to a @{Unit} and activate the process.
|
||||
-- @param #PROCESS self
|
||||
@@ -86,8 +78,6 @@ function PROCESS:Assign( ProcessTask, ProcessUnit )
|
||||
self:SetControllable( ProcessUnit )
|
||||
self:SetTask( ProcessTask )
|
||||
|
||||
self:ProcessStart()
|
||||
|
||||
self.ProcessGroup = ProcessUnit:GetGroup()
|
||||
--self:Activate()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user