Module Task_CAS

This module contains the TASK_CAS classes.

1) #TASK_CAS class, extends Task#TASK_BASE

The #TASK_CAS 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_CAS 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_CAS

Type TASK_CAS

TASK_CAS:AssignToUnit(TaskUnit)

Assign the Task to a Unit.

TASK_CAS.ClassName
TASK_CAS:New(Mission, UnitSetTargets, TargetZone, MenuText, TargetSetUnit)

Instantiates a new TASK_CAS.

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

StateMachine callback function for a TASK

TASK_CAS.TaskScheduler
TASK_CAS:_Schedule()
TASK_CAS:_Scheduler()

Global(s)

#TASK_CAS TASK_CAS

Type Task_CAS

Type TASK_CAS

The TASK_CAS class

Field(s)

TASK_CAS:AssignToUnit(TaskUnit)

Assign the Task to a Unit.

Parameter

Return value

#TASK_CAS: self

#string TASK_CAS.ClassName
TASK_CAS:New(Mission, UnitSetTargets, TargetZone, MenuText, TargetSetUnit)

Instantiates a new TASK_CAS.

Parameters

Return value

#TASK_CAS: self

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

StateMachine callback function for a TASK

Parameters

TASK_CAS.TaskScheduler
TASK_CAS:_Schedule()
TASK_CAS:_Scheduler()