Module Task_PICKUP

This module contains the TASK_PICKUP classes.

1) #TASK_PICKUP class, extends Task#TASK

The #TASK_PICKUP class defines a pickup task of a Set of CARGO objects defined within the mission. based on the tasking capabilities defined in Task#TASK. The TASK_PICKUP is implemented using a Statemachine#FSM_TASK, and has the following statuses:

  • None: Start of the process
  • Planned: The SEAD task is planned. Upon Planned, the sub-process Process_Fsm.Assign#ACT_ASSIGN_ACCEPT is started to accept the task.
  • Assigned: The SEAD task is assigned to a Wrapper.Group#GROUP. Upon Assigned, the sub-process Process_Fsm.Route#ACT_ROUTE is started to route the active Units in the Group to the attack zone.
  • Success: The SEAD task is successfully completed. Upon Success, the sub-process Process_SEAD#PROCESS_SEAD is started to follow-up successful SEADing of the targets assigned in the task.
  • Failed: The SEAD task has failed. This will happen if the player exists the task early, without communicating a possible cancellation to HQ.

Authors: FlightControl - Design and Programming

Global(s)

TASK_PICKUP

Type TASK_PICKUP

TASK_PICKUP:AssignToUnit(TaskUnit)

Assign the Task to a Wrapper.Unit.

TASK_PICKUP.ClassName
TASK_PICKUP:CleanUp()

Removes a TASK_PICKUP.

TASK_PICKUP:GetPlannedMenuText()
TASK_PICKUP:New(Mission, AssignedSetGroup, TaskName, TaskType, UnitSetTargets, TargetZone)

Instantiates a new TASK_PICKUP.

TASK_PICKUP:OnNext(Fsm, Event, From, To, Event)

StateMachine callback function for a TASK

TASK_PICKUP.TaskScheduler
TASK_PICKUP:_Schedule()
TASK_PICKUP:_Scheduler()

Global(s)

#TASK_PICKUP TASK_PICKUP

Type Task_PICKUP

Type TASK_PICKUP

Extends Tasking.Task#TASK

The TASK_PICKUP class

Field(s)

TASK_PICKUP:AssignToUnit(TaskUnit)

Assign the Task to a Wrapper.Unit.

Parameter

Return value

#TASK_PICKUP: self

#string TASK_PICKUP.ClassName
TASK_PICKUP:CleanUp()

Removes a TASK_PICKUP.

Return value

#nil:

TASK_PICKUP:GetPlannedMenuText()
TASK_PICKUP:New(Mission, AssignedSetGroup, TaskName, TaskType, UnitSetTargets, TargetZone)

Instantiates a new TASK_PICKUP.

Parameters

Return value

#TASK_PICKUP: self

TASK_PICKUP:OnNext(Fsm, Event, From, To, Event)

StateMachine callback function for a TASK

Parameters

TASK_PICKUP.TaskScheduler
TASK_PICKUP:_Schedule()
TASK_PICKUP:_Scheduler()