Module Task_A2G
+
+This module contains the TASK_A2G classes.
+ + + +1) #TASK_A2G class, extends Task#TASK_BASE
+The #TASK_A2G class defines a CAS or BAI 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 implemented using 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) | ++ + | +
| 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_A2G
+
+ Type TASK_A2G
+
+The TASK_A2G class
+ +Field(s)
+-
+
- + + +TASK_A2G:AssignToUnit(TaskUnit) + + +
-
+
+
+
+
Parameter
+-
+
-
+
+
+ +Unit#UNIT TaskUnit:
+
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
+-
+
-
+
+
+ +Mission#MISSION Mission:
+ -
+
+
+ +Set#SET_GROUP SetGroup: +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:
+ -
+
+
+ +Zone#ZONE_BASE TargetZone:
+ -
+
+
+ +TargetSetUnit:
+ -
+
+
+ +FACUnit:
+
Return value
+ +#TASK_A2G: +self
+ +
+ -
+
+
-
+
- + + +TASK_A2G:OnNext(Fsm, Event, From, To, Event) + + +
-
+
+
StateMachine callback function for a TASK
+ +Parameters
+-
+
- + + + + +
-
+
+
+ +#string Event:
+ -
+
+
+ +#string From:
+ -
+
+
+ +#string To:
+ -
+
+
+ +Event#EVENTDATA Event:
+
+
-
+
- + + + +TASK_A2G.TaskScheduler + + +
- + + + + +
-
+
- + + +TASK_A2G:_Schedule() + + +
- + + + + +
-
+
- + + +TASK_A2G:_Scheduler() + + +
- + + + + +