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 ProcessFsm.Assign#ACTASSIGN_ACCEPT is started to accept the task.
- Assigned: The SEAD task is assigned to a Group#GROUP. Upon Assigned, the sub-process ProcessFsm.Route#ACTROUTE 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 ProcessSEAD#PROCESSSEAD 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) | |
| 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)
Type Task_PICKUP
Type TASK_PICKUP
The TASK_PICKUP class
Field(s)
- TASK_PICKUP:AssignToUnit(TaskUnit)
-
Parameter
-
Wrapper.Unit#UNIT TaskUnit:
Return value
#TASK_PICKUP: self
-
- #string TASK_PICKUP.ClassName
- TASK_PICKUP:CleanUp()
-
Removes a TASK_PICKUP.
Return value
#nil:
- TASK_PICKUP:New(Mission, AssignedSetGroup, TaskName, TaskType, UnitSetTargets, TargetZone)
-
Instantiates a new TASK_PICKUP.
Parameters
-
Tasking.Mission#MISSION Mission: -
Set#SET_GROUP AssignedSetGroup: The set of groups for which the Task can be assigned. -
#string TaskName: The name of the Task. -
#string TaskType: BAI or CAS -
Set#SET_UNIT UnitSetTargets: -
Core.Zone#ZONE_BASE TargetZone:
Return value
#TASK_PICKUP: self
-
- TASK_PICKUP:OnNext(Fsm, Event, From, To, Event)
-
StateMachine callback function for a TASK
Parameters
-
Core.Fsm#FSM_TASK Fsm: -
#string Event: -
#string From: -
#string To: -
Event#EVENTDATA Event:
-