Module TaskZoneCapture

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


Author: Sven Van de Velde (FlightControl)

Contributions: MillerTime


Global(s)

TASK_ZONE_CAPTURE

TASKZONECAPTURE class, extends TaskZoneGoal#TASKZONEGOAL

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:GetMarkInfo(TaskInfoID, TaskInfo)
TASK_ZONE_GOAL:GetPlannedMenuText()
TASK_ZONE_GOAL:GetReportDetail(ReportGroup, TaskInfoID, TaskInfo)
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#TASKZONEGOAL

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 TaskA2GDispatcher#TASKA2GDISPATCHER 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 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

The TASKZONECAPTURE class

Field(s)

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

Instantiates a new TASKZONECAPTURE.

Parameters

Return value

#TASKZONECAPTURE: 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

The TASKZONEGOAL class

Field(s)

TASK_ZONE_GOAL:GetGoalTotal()
TASK_ZONE_GOAL:GetMarkInfo(TaskInfoID, TaskInfo)

Parameters

  • TaskInfoID :

  • TaskInfo :

TASK_ZONE_GOAL:GetPlannedMenuText()
TASK_ZONE_GOAL:GetReportDetail(ReportGroup, TaskInfoID, TaskInfo)

Parameters

  • ReportGroup :

  • TaskInfoID :

  • TaskInfo :

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

#TASKZONEGOAL: 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