Module Process

Global(s)

PROCESS

Type PROCESS

PROCESS:AddScore(Task, State, ScoreText, Score, ProcessStatus)

Adds a score for the PROCESS to be achieved.

PROCESS.ClassName
PROCESS.MissionMenu
PROCESS:New(ProcessName, Task, ProcessUnit, FSMT)

Instantiates a new TASK Base.

PROCESS.NextEvent
PROCESS:OnStateChange(ProcessUnit, Event, From, To)

StateMachine callback function for a PROCESS

PROCESS.ProcessGroup
PROCESS.ProcessName
PROCESS.Scores
PROCESS.Task

Global(s)

#PROCESS PROCESS

Type Process

Type PROCESS

The PROCESS class

Field(s)

PROCESS:AddScore(Task, State, ScoreText, Score, ProcessStatus)

Adds a score for the PROCESS to be achieved.

Parameters

  • Task#TASK_BASE Task : The task for which the process needs to account score.

  • #string State : is the state of the process when the score needs to be given. (See the relevant state descriptions of the process).

  • #string ScoreText : is a text describing the score that is given according the status.

  • #number Score : is a number providing the score of the status.

  • ProcessStatus :

Return value

#PROCESS: self

#string PROCESS.ClassName
Menu#MENU_GROUP PROCESS.MissionMenu
PROCESS:New(ProcessName, Task, ProcessUnit, FSMT)

Instantiates a new TASK Base.

Should never be used. Interface Class.

Parameters

Return value

#PROCESS: self

PROCESS.NextEvent
PROCESS:OnStateChange(ProcessUnit, Event, From, To)

StateMachine callback function for a PROCESS

Parameters

Group#GROUP PROCESS.ProcessGroup
#string PROCESS.ProcessName
PROCESS.Scores
Task#TASK_BASE PROCESS.Task