Banner Image

Module Functional.ZoneGoalCoalition

Functional (WIP) - Base class modeling processes to achieve goals involving coalition zones.


ZONE_GOAL_COALITION models processes that have a Goal with a defined achievement involving a Zone for a Coalition. Derived classes implement the ways how the achievements can be realized.


Author: FlightControl


Global(s)

Global ZONE_GOAL_COALITION

ZONE_GOAL_COALITION models processes that have a Goal with a defined achievement involving a Zone for a Coalition.

#ZONE_GOAL_COALITION ZONE_GOAL_COALITION

ZONE_GOAL_COALITION models processes that have a Goal with a defined achievement involving a Zone for a Coalition.

Derived classes implement the ways how the achievements can be realized.

1. ZONE_GOAL_COALITION constructor

2. ZONE_GOAL_COALITION is a finite state machine (FSM).

2.1 ZONE_GOAL_COALITION States

2.2 ZONE_GOAL_COALITION Events

2.3 ZONE_GOAL_COALITION State Machine

Type(s)

Fields and Methods inherited from ZONE_GOAL_COALITION Description

ZONE_GOAL_COALITION.Coalition

ZONE_GOAL_COALITION:GetCoalition()

Get the owning coalition of the zone.

ZONE_GOAL_COALITION:GetCoalitionName()

Get the owning coalition name of the zone.

ZONE_GOAL_COALITION:GetPreviousCoalition()

Get the previous coalition, i.e.

ZONE_GOAL_COALITION:New(Zone, Coalition, UnitCategories)

ZONE_GOAL_COALITION Constructor.

ZONE_GOAL_COALITION.ObjectCategories

ZONE_GOAL_COALITION.PreviousCoalition

ZONE_GOAL_COALITION:SetCoalition(Coalition)

Set the owning coalition of the zone.

ZONE_GOAL_COALITION:SetObjectCategories(ObjectCategories)

Set the owning coalition of the zone.

ZONE_GOAL_COALITION:SetUnitCategories(UnitCategories)

Set the owning coalition of the zone.

ZONE_GOAL_COALITION.States

ZONE_GOAL_COALITION:StatusZone()

Check status Coalition ownership.

ZONE_GOAL_COALITION.UnitCategories

Field(s)

#table ZONE_GOAL_COALITION.States

@field #table ZONE_GOAL_COALITION.States

Function(s)

Get the owning coalition of the zone.

Defined in:

ZONE_GOAL_COALITION

Return value:

#number:

Coalition.

Get the owning coalition name of the zone.

Defined in:

ZONE_GOAL_COALITION

Return value:

#string:

Coalition name.

Get the previous coalition, i.e.

the one owning the zone before the current one.

Defined in:

ZONE_GOAL_COALITION

Return value:

#number:

Coalition.

ZONE_GOAL_COALITION Constructor.

Defined in:

ZONE_GOAL_COALITION

Parameters:

A Core.Zone object with the goal to be achieved.

#number Coalition

The initial coalition owning the zone. Default coalition.side.NEUTRAL.

#table UnitCategories

Table of unit categories. See DCS Class Unit. Default {Unit.Category.GROUND_UNIT}.

Return value:

Set the owning coalition of the zone.

Defined in:

ZONE_GOAL_COALITION

Parameter:

#number Coalition

The coalition ID, e.g. coalition.side.RED.

Return value:

Set the owning coalition of the zone.

Defined in:

ZONE_GOAL_COALITION

Parameter:

#table ObjectCategories

Table of unit categories. See DCS Class Object. Default {Object.Category.UNIT, Object.Category.STATIC}, i.e. all UNITS and STATICS.

Return value:

Set the owning coalition of the zone.

Defined in:

ZONE_GOAL_COALITION

Parameter:

#table UnitCategories

Table of unit categories. See DCS Class Unit. Default {Unit.Category.GROUND_UNIT}.

Return value:

Check status Coalition ownership.

Defined in:

ZONE_GOAL_COALITION

Return value: