Module Task_CAS

This module contains the TASK_A2G classes.

1) #TASK_A2G class, extends Task#TASK_BASE

The #TASK_A2G class defines a new CAS task of a Set of Target Units, located at a Target Zone, based on the tasking capabilities defined in Task#TASK_BASE. The TASK_A2G is processed through a Statemachine#STATEMACHINE_TASK, and has the following statuses:

  • None: Start of the process
  • Planned: The SEAD task is planned. Upon Planned, the sub-process ProcessAssign#PROCESSASSIGN_ACCEPT is started to accept the task.
  • Assigned: The SEAD task is assigned to a Group#GROUP. Upon Assigned, the sub-process ProcessRoute#PROCESSROUTE 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_A2G

Type TASK_A2G

TASK_A2G:AssignToUnit(TaskUnit)

Assign the Task to a Unit.

TASK_A2G.ClassName
TASK_A2G:CleanUp()

Removes a TASK_A2G.

TASK_A2G:GetPlannedMenuText()
TASK_A2G:New(Mission, SetGroup, TaskName, TaskType, UnitSetTargets, TargetZone, TargetSetUnit, FACUnit)

Instantiates a new TASK_A2G.

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

StateMachine callback function for a TASK

TASK_A2G.TaskScheduler
TASK_A2G:_Schedule()
TASK_A2G:_Scheduler()

Global(s)

#TASK_A2G TASK_A2G

Type Task_CAS

Type TASK_A2G

The TASK_A2G class

Field(s)

TASK_A2G:AssignToUnit(TaskUnit)

Assign the Task to a Unit.

Parameter

Return value

#TASK_A2G: self

#string TASK_A2G.ClassName
TASK_A2G:CleanUp()

Removes a TASK_A2G.

Return value

#nil:

TASK_A2G:GetPlannedMenuText()
TASK_A2G:New(Mission, SetGroup, TaskName, TaskType, UnitSetTargets, TargetZone, TargetSetUnit, FACUnit)

Instantiates a new TASK_A2G.

Parameters

Return value

#TASK_A2G: self

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

StateMachine callback function for a TASK

Parameters

TASK_A2G.TaskScheduler
TASK_A2G:_Schedule()
TASK_A2G:_Scheduler()