Module TaskZoneCapture

Tasking - The TASK_Protect models tasks for players to protect or capture specific zones.


Author: FlightControl

Contributions: MillerTime


Global(s)

TASK_ZONE_CAPTURE

TASKZONECAPTURE class, extends TaskZoneGoal#TASK_ZONE_GOAL

The TASKZONECAPTURE class defines an Suppression or Extermination of Air Defenses task for a human player to be executed.

TASK_ZONE_GOAL

TASKZONEGOAL class, extends Task#TASK

The TASKZONEGOAL class defines the task to protect or capture a protection zone.

Type TASK_ZONE_CAPTURE

TASK_ZONE_CAPTURE:New(Mission, SetGroup, TaskName, ZoneGoalCoalition, TaskBriefing)

Instantiates a new TASKZONECAPTURE.

TASK_ZONE_CAPTURE:OnAfterGoal(TaskUnit, From, Event, To, PlayerUnit, PlayerName)
TASK_ZONE_CAPTURE:ReportOrder(ReportGroup)
TASK_ZONE_CAPTURE.TaskCoalition
TASK_ZONE_CAPTURE.TaskCoalitionName
TASK_ZONE_CAPTURE.TaskZoneName
TASK_ZONE_CAPTURE:UpdateTaskInfo()

Instantiates a new TASKZONECAPTURE.

TASK_ZONE_CAPTURE.ZoneGoal

Type TASK_ZONE_GOAL

TASK_ZONE_GOAL:GetGoalTotal()
TASK_ZONE_GOAL:GetPlannedMenuText()
TASK_ZONE_GOAL:GetTargetZone(TaskUnit)
TASK_ZONE_GOAL:New(Mission, SetGroup, TaskName, ZoneGoal, TaskType, TaskBriefing)

Instantiates a new TASKZONEGOAL.

TASK_ZONE_GOAL:SetGoalTotal(GoalTotal)
TASK_ZONE_GOAL:SetProtect(ZoneGoal)
TASK_ZONE_GOAL:SetTargetZone(TargetZone, TaskUnit)
TASK_ZONE_GOAL.TaskType
TASK_ZONE_GOAL.ZoneGoal

Global(s)

#TASK_ZONE_CAPTURE TASK_ZONE_CAPTURE

TASKZONECAPTURE class, extends TaskZoneGoal#TASK_ZONE_GOAL

The TASKZONECAPTURE class defines an Suppression or Extermination of Air Defenses task for a human player to be executed.

These tasks are important to be executed as they will help to achieve air superiority at the vicinity.

The TASKZONECAPTURE is used by the Task_A2G_Dispatcher#TASK_A2G_DISPATCHER to automatically create SEAD tasks based on detected enemy ground targets.

#TASK_ZONE_GOAL TASK_ZONE_GOAL

TASKZONEGOAL class, extends Task#TASK

The TASKZONEGOAL class defines the task to protect or capture a protection zone.

The TASKZONEGOAL is implemented using a Fsm#FSM_TASK, and has the following statuses:

  • None: Start of the process
  • Planned: The A2G task is planned.
  • Assigned: The A2G task is assigned to a Wrapper.Group#GROUP.
  • Success: The A2G task is successfully completed.
  • Failed: The A2G task has failed. This will happen if the player exists the task early, without communicating a possible cancellation to HQ.

Set the scoring of achievements in an A2G attack.

Scoring or penalties can be given in the following circumstances:

Type TaskZoneCapture

Type FSM_PROCESS

Type TASK_ZONE_CAPTURE

Extends #TASK_ZONE_GOAL

The TASKZONECAPTURE class

Field(s)

TASK_ZONE_CAPTURE:New(Mission, SetGroup, TaskName, ZoneGoalCoalition, TaskBriefing)

Instantiates a new TASKZONECAPTURE.

Parameters

Return value

#TASK_ZONE_CAPTURE: self

TASK_ZONE_CAPTURE:OnAfterGoal(TaskUnit, From, Event, To, PlayerUnit, PlayerName)

Parameters

TASK_ZONE_CAPTURE:ReportOrder(ReportGroup)

Parameter

  • ReportGroup :

TASK_ZONE_CAPTURE.TaskCoalition
TASK_ZONE_CAPTURE.TaskCoalitionName
TASK_ZONE_CAPTURE.TaskZoneName
TASK_ZONE_CAPTURE:UpdateTaskInfo()

Instantiates a new TASKZONECAPTURE.

Core.ZoneGoalCoalition#ZONE_GOAL_COALITION TASK_ZONE_CAPTURE.ZoneGoal

Type TASK_ZONE_GOAL

Extends Tasking.Task#TASK

The TASKZONEGOAL class

Field(s)

TASK_ZONE_GOAL:GetGoalTotal()
TASK_ZONE_GOAL:GetPlannedMenuText()
TASK_ZONE_GOAL:GetTargetZone(TaskUnit)

Parameter

Return value

Core.Zone#ZONE_BASE: The Zone object where the Target is located on the map.

TASK_ZONE_GOAL:New(Mission, SetGroup, TaskName, ZoneGoal, TaskType, TaskBriefing)

Instantiates a new TASKZONEGOAL.

Parameters

Return value

#TASK_ZONE_GOAL: self

TASK_ZONE_GOAL:SetGoalTotal(GoalTotal)

Parameter

  • GoalTotal :

TASK_ZONE_GOAL:SetProtect(ZoneGoal)

Parameter

TASK_ZONE_GOAL:SetTargetZone(TargetZone, TaskUnit)

Parameters

TASK_ZONE_GOAL.TaskType
Core.ZoneGoal#ZONE_GOAL TASK_ZONE_GOAL.ZoneGoal