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_GOALThe 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#TASKThe TASKZONEGOAL class defines the task to protect or capture a protection zone. |
Type TASK_ZONE_CAPTURE
Type TASK_ZONE_GOAL
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:
- TASK_ZONE_GOAL.SetScoreOnDestroy(): Set a score when a target in scope of the A2G attack, has been destroyed.
- TASK_ZONE_GOAL.SetScoreOnSuccess(): Set a score when all the targets in scope of the A2G attack, have been destroyed.
- TASK_ZONE_GOAL.SetPenaltyOnFailed(): Set a penalty when the A2G attack has failed.
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
-
Tasking.Mission#MISSION Mission
: -
Core.Set#SET_GROUP SetGroup
: The set of groups for which the Task can be assigned. -
#string TaskName
: The name of the Task. -
Core.ZoneGoalCoalition#ZONEGOALCOALITION ZoneGoalCoalition
: -
#string TaskBriefing
: The briefing of the task.
Return value
#TASK_ZONE_CAPTURE: self
-
- TASK_ZONE_CAPTURE:OnAfterGoal(TaskUnit, From, Event, To, PlayerUnit, PlayerName)
-
Parameters
-
Wrapper.Unit#UNIT TaskUnit
: -
From
: -
Event
: -
To
: -
PlayerUnit
: -
PlayerName
:
-
- TASK_ZONE_CAPTURE:ReportOrder(ReportGroup)
-
Parameter
-
ReportGroup
:
-
- TASK_ZONE_CAPTURE:UpdateTaskInfo()
-
Instantiates a new TASKZONECAPTURE.
Type TASK_ZONE_GOAL
Extends Tasking.Task#TASK
The TASKZONEGOAL class
Field(s)
- TASK_ZONE_GOAL:GetTargetZone(TaskUnit)
-
Parameter
-
Wrapper.Unit#UNIT TaskUnit
:
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
-
Tasking.Mission#MISSION Mission
: -
Core.Set#SET_GROUP SetGroup
: The set of groups for which the Task can be assigned. -
#string TaskName
: The name of the Task. -
Core.ZoneGoal#ZONE_GOAL ZoneGoal
: -
TaskType
: -
TaskBriefing
:
Return value
#TASK_ZONE_GOAL: self
-
- TASK_ZONE_GOAL:SetGoalTotal(GoalTotal)
-
Parameter
-
GoalTotal
:
-
- TASK_ZONE_GOAL:SetProtect(ZoneGoal)
-
Parameter
-
Core.ZoneGoal#ZONE_GOAL ZoneGoal
: The ZoneGoal Engine.
-
- TASK_ZONE_GOAL:SetTargetZone(TargetZone, TaskUnit)
-
Parameters
-
Core.Zone#ZONE_BASE TargetZone
: The Zone object where the Target is located on the map. -
Wrapper.Unit#UNIT TaskUnit
:
-