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:
FlightControl
2016-11-22 08:45:38 +01:00
parent 07f6760039
commit 2f4eb39156
13 changed files with 296 additions and 179 deletions

View File

@@ -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()