diff --git a/Moose Development/Moose/Core/Scheduler.lua b/Moose Development/Moose/Core/Scheduler.lua index 525124c47..2244d9b1b 100644 --- a/Moose Development/Moose/Core/Scheduler.lua +++ b/Moose Development/Moose/Core/Scheduler.lua @@ -1,5 +1,9 @@ ---- This module contains the SCHEDULER class. +--- **Core** - SCHEDULER prepares and handles the **execution of functions over scheduled time (intervals)**. -- +-- ![Banner Image](..\Presentations\SCHEDULER\Dia1.JPG) +-- +-- === +-- -- # 1) @{Scheduler#SCHEDULER} class, extends @{Base#BASE} -- -- The @{Scheduler#SCHEDULER} class creates schedule. diff --git a/Moose Development/Moose/Core/Zone.lua b/Moose Development/Moose/Core/Zone.lua index fe1848037..dedde1fb4 100644 --- a/Moose Development/Moose/Core/Zone.lua +++ b/Moose Development/Moose/Core/Zone.lua @@ -1,5 +1,7 @@ --- **Core** - ZONE classes define **zones** within your mission of **various forms**, with **various capabilities**. -- +-- ![Banner Image](..\Presentations\ZONE\Dia1.JPG) +-- -- === -- -- There are essentially two core functions that zones accomodate: diff --git a/Moose Presentations/SCHEDULER.pptx b/Moose Presentations/SCHEDULER.pptx new file mode 100644 index 000000000..6dab2d58c Binary files /dev/null and b/Moose Presentations/SCHEDULER.pptx differ diff --git a/Moose Presentations/ZONE.pptx b/Moose Presentations/ZONE.pptx new file mode 100644 index 000000000..7bf099ec4 Binary files /dev/null and b/Moose Presentations/ZONE.pptx differ diff --git a/docs/Documentation/AI_Balancer.html b/docs/Documentation/AI_Balancer.html index b5afcb1a4..c5b24c824 100644 --- a/docs/Documentation/AI_Balancer.html +++ b/docs/Documentation/AI_Balancer.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/AI_Cap.html b/docs/Documentation/AI_Cap.html index d9d91abaf..7cc56e36f 100644 --- a/docs/Documentation/AI_Cap.html +++ b/docs/Documentation/AI_Cap.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/AI_Cas.html b/docs/Documentation/AI_Cas.html index 766b7be8e..b470c3d95 100644 --- a/docs/Documentation/AI_Cas.html +++ b/docs/Documentation/AI_Cas.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/AI_Patrol.html b/docs/Documentation/AI_Patrol.html index fe491e280..5703ae81f 100644 --- a/docs/Documentation/AI_Patrol.html +++ b/docs/Documentation/AI_Patrol.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Account.html b/docs/Documentation/Account.html index 4b98fc1ab..8552ecbe8 100644 --- a/docs/Documentation/Account.html +++ b/docs/Documentation/Account.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Airbase.html b/docs/Documentation/Airbase.html index fa23f7c94..6410f78fd 100644 --- a/docs/Documentation/Airbase.html +++ b/docs/Documentation/Airbase.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/AirbasePolice.html b/docs/Documentation/AirbasePolice.html index 27e47f5fe..c123060d6 100644 --- a/docs/Documentation/AirbasePolice.html +++ b/docs/Documentation/AirbasePolice.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Assign.html b/docs/Documentation/Assign.html index 6cc1abe16..5b47c54ca 100644 --- a/docs/Documentation/Assign.html +++ b/docs/Documentation/Assign.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Base.html b/docs/Documentation/Base.html index 702a362f5..ed9ed90be 100644 --- a/docs/Documentation/Base.html +++ b/docs/Documentation/Base.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Cargo.html b/docs/Documentation/Cargo.html index 34836b383..f3bcbd277 100644 --- a/docs/Documentation/Cargo.html +++ b/docs/Documentation/Cargo.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/CleanUp.html b/docs/Documentation/CleanUp.html index 6148fe3f1..b25737cbe 100644 --- a/docs/Documentation/CleanUp.html +++ b/docs/Documentation/CleanUp.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Client.html b/docs/Documentation/Client.html index a00f673ed..81cdc7555 100644 --- a/docs/Documentation/Client.html +++ b/docs/Documentation/Client.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/CommandCenter.html b/docs/Documentation/CommandCenter.html index f0607f930..3b28aef86 100644 --- a/docs/Documentation/CommandCenter.html +++ b/docs/Documentation/CommandCenter.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -158,6 +158,12 @@ COMMANDCENTER:HasGroup(Wrapper, MissionGroup)

    Checks of the COMMANDCENTER has a GROUP.

    + + + + COMMANDCENTER:MessageToAll(Message) + +

    Send a CC message to the coalition of the CC.

    @@ -471,6 +477,27 @@ Group#GROUP

    + +COMMANDCENTER:MessageToAll(Message) + +
    +
    + +

    Send a CC message to the coalition of the CC.

    + +

    Parameter

    + +
    +
    +
    +
    + COMMANDCENTER:MessageToCoalition(Message) diff --git a/docs/Documentation/Controllable.html b/docs/Documentation/Controllable.html index 86b4d42d2..9ae29ec73 100644 --- a/docs/Documentation/Controllable.html +++ b/docs/Documentation/Controllable.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -522,7 +522,7 @@ A speed can be given in km/h.

    - CONTROLLABLE:TaskAttackUnit(AttackUnit, GroupAttack, WeaponExpend, AttackQty, Direction, Altitude, Visible, ControllableAttack) + CONTROLLABLE:TaskAttackUnit(AttackUnit, GroupAttack, WeaponExpend, AttackQty, Direction, AttackQtyLimit, ControllableAttack, Altitude, Visible)

    (AIR) Attack the Unit.

    @@ -2110,7 +2110,7 @@ The DCS task structure.

    -CONTROLLABLE:TaskAttackUnit(AttackUnit, GroupAttack, WeaponExpend, AttackQty, Direction, Altitude, Visible, ControllableAttack) +CONTROLLABLE:TaskAttackUnit(AttackUnit, GroupAttack, WeaponExpend, AttackQty, Direction, AttackQtyLimit, ControllableAttack, Altitude, Visible)
    @@ -2151,19 +2151,8 @@ The UNIT.

  • -<<<<<<< HEAD -

    Dcs.DCSTypes#Distance Altitude : -(optional) Desired altitude to perform the unit engagement.

    - -
  • -
  • - -

    #boolean Visible : -(optional) Unit must be visible.

    -=======

    #boolean AttackQtyLimit : (optional) The flag determines how to interpret attackQty parameter. If the flag is true then attackQty is a limit on maximal attack quantity for "AttackGroup" and "AttackUnit" tasks. If the flag is false then attackQty is a desired attack quantity for "Bombing" and "BombingRunway" tasks.

    ->>>>>>> refs/remotes/origin/master
  • @@ -2171,6 +2160,16 @@ The UNIT.

    #boolean ControllableAttack : (optional) Flag indicates that the target must be engaged by all aircrafts of the controllable. Has effect only if the task is assigned to a controllable, not to a single aircraft.

    +
  • +
  • + +

    Altitude :

    + +
  • +
  • + +

    Visible :

    +
  • Return value

    diff --git a/docs/Documentation/Database.html b/docs/Documentation/Database.html index 93a9354c4..4edfad744 100644 --- a/docs/Documentation/Database.html +++ b/docs/Documentation/Database.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -169,6 +169,18 @@ The following iterator methods are currently available within the DATABASE:

    DATABASE.CLIENTS + + + + DATABASE.COUNTRY_ID + + + + + + DATABASE.COUNTRY_NAME + + @@ -628,6 +640,34 @@ The following iterator methods are currently available within the DATABASE:

    +
    +
    +
    +
    + + + +DATABASE.COUNTRY_ID + +
    +
    + + + +
    +
    +
    +
    + + + +DATABASE.COUNTRY_NAME + +
    +
    + + +
    diff --git a/docs/Documentation/Detection.html b/docs/Documentation/Detection.html index bbf38dbd0..f55f9ae2c 100644 --- a/docs/Documentation/Detection.html +++ b/docs/Documentation/Detection.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -77,7 +77,6 @@

    -

    # 1) #DETECTION_BASE class, extends Fsm#FSM

    The #DETECTION_BASE class defines the core functions to administer detected objects. @@ -163,7 +162,7 @@

    Use the method Detection#DETECTION_BASE.SetDistanceProbability() to set the probability factor upon a 10 km distance.

    -

    ### 1.4.2 ) Height visual detection probability

    +

    ### 1.4.2 ) Alpha Angle visual detection probability

    Upon a visual detection, the higher the unit is during the detecting process, the more likely the detected unit is to be detected properly. A detection at a 90% alpha angle is the most optimal, a detection at 10% is less and a detection at 0% is less likely to be correct.

    @@ -173,7 +172,7 @@

    For example, if a alpha angle probability factor of 0.7 is given, the extrapolated probabilities of the different angles would look like: 0°: 70%, 10°: 75,21%, 20°: 80,26%, 30°: 85%, 40°: 89,28%, 50°: 92,98%, 60°: 95,98%, 70°: 98,19%, 80°: 99,54%, 90°: 100%

    -

    Use the method Detection#DETECTION_BASE.SetHeightProbability() to set the probability factor if 0°.

    +

    Use the method Detection#DETECTION_BASE.SetAlphaAngleProbability() to set the probability factor if 0°.

    ### 1.4.3 ) Cloudy Zones detection probability

    @@ -280,10 +279,17 @@

    # 2) Detection#DETECTION_UNITS class, extends Detection#DETECTION_BASE

    -

    The Detection#DETECTION_UNITS class will detect units within the battle zone within a specified range. +

    The Detection#DETECTION_UNITS class will detect units within the battle zone. It will build a DetectedItems list filled with DetectedItems. Each DetectedItem will contain a field Set, which contains a Set#SET_UNIT containing ONE UNIT object reference. Beware that when the amount of units detected is large, the DetectedItems list will be large also.

    +

    # 3) Detection#DETECTION_TYPES class, extends Detection#DETECTION_BASE

    + +

    The Detection#DETECTION_TYPES class will detect units within the battle zone. + It will build a DetectedItems[] list filled with DetectedItems, grouped by the type of units detected. + Each DetectedItem will contain a field Set, which contains a Set#SET_UNIT containing ONE UNIT object reference. + Beware that when the amount of different types detected is large, the DetectedItems[] list will be large also.

    +

    # 4) Detection#DETECTION_AREAS class, extends Detection#DETECTION_BASE

    The Detection#DETECTION_AREAS class will detect units within the battle zone for a list of Groups detecting targets following (a) detection method(s), @@ -306,9 +312,17 @@

    Use the methods Detection#DETECTION_AREAS.FlareDetectedUnits() or Detection#DETECTION_AREAS.SmokeDetectedUnits() to flare or smoke the detected units when a new detection has taken place.

    -

    ## 4.5) Flare or Smoke detected zones

    +

    ## 4.5) Flare or Smoke or Bound detected zones

    -

    Use the methods Detection#DETECTION_AREAS.FlareDetectedZones() or Detection#DETECTION_AREAS.SmokeDetectedZones() to flare or smoke the detected zones when a new detection has taken place.

    +

    Use the methods:

    + + + +

    the detected zones when a new detection has taken place.


    @@ -337,6 +351,12 @@ DETECTION_BASE + + + + DETECTION_TYPES + + @@ -367,9 +387,15 @@ - DETECTION_AREAS.AddDetectedItem(Set, Zone, self) + DETECTION_AREAS:AddDetectedItem(Set, Zone)

    Add a detected DETECTION_AREAS.DetectedItem.

    + + + + DETECTION_AREAS:BoundDetectedZones() + +

    Bound the detected zones

    @@ -424,12 +450,6 @@ DETECTION_AREAS:GetChangeText(DetectedArea)

    Make text documenting the changes of the detected zone.

    - - - - DETECTION_AREAS:GetDetectedZone(Index) - -

    Get the Zone#ZONE_UNIT of a detection area using a given numeric index.

    @@ -454,12 +474,6 @@ DETECTION_AREAS:New(DetectionSetGroup, DetectionZoneRange)

    DETECTION_AREAS constructor.

    - - - - DETECTION_AREAS:RemoveDetectedItem(Index, DetectedItemIndex) - -

    Remove a detected DETECTION_AREAS.DetectedItem with a given Index.

    @@ -478,6 +492,12 @@ DETECTION_AREAS:SmokeDetectedZones()

    Smoke the detected zones

    + + + + DETECTION_AREAS._BoundDetectedZones + + @@ -601,15 +621,27 @@ - DETECTION_BASE:AddDetectedItem() + DETECTION_BASE:AddDetectedItem(Set, Zone)

    Adds a new DetectedItem to the DetectedItems list.

    + + + + DETECTION_BASE.AlphaAngleProbability + + DETECTION_BASE.ClassName + + + + DETECTION_BASE.CountryID + + @@ -664,6 +696,12 @@ DETECTION_BASE:Detected()

    Synchronous Event Trigger for Event Detected.

    + + + + DETECTION_BASE.DetectedItemCount + + @@ -688,6 +726,18 @@ DETECTION_BASE.DetectedObjectsIdentified

    Map of the DetectedObjects identified.

    + + + + DETECTION_BASE:DetectedReportDetailed() + +

    Report detailed of a detectedion result.

    + + + + DETECTION_BASE.DetectionCount + + @@ -757,15 +807,15 @@ - DETECTION_BASE:GetDetectionSetGroup() + DETECTION_BASE:GetDetectedZone(Index) -

    Get the detection Groups.

    +

    Get the Zone#ZONE_UNIT of a detection area using a given numeric index.

    - DETECTION_BASE.HeightProbability + DETECTION_BASE:GetDetectionSetGroup() - +

    Get the detection Groups.

    @@ -937,15 +987,21 @@ - DETECTION_BASE:SetDistanceProbability(DistanceProbability) + DETECTION_BASE:SetAlphaAngleProbability(AlphaAngleProbability) -

    Upon a visual detection, the further away a detected object is, the less likely it is to be detected properly.

    +

    Upon a visual detection, the higher the unit is during the detecting process, the more likely the detected unit is to be detected properly.

    - DETECTION_BASE:SetHeightProbability(HeightProbability) + DETECTION_BASE:SetDetectionInterval(DetectionInterval) -

    Upon a visual detection, the higher the unit is during the detecting process, the more likely the detected unit is to be detected properly.

    +

    Set the detection interval time in seconds.

    + + + + DETECTION_BASE:SetDistanceProbability(DistanceProbability) + +

    Upon a visual detection, the further away a detected object is, the less likely it is to be detected properly.

    @@ -955,7 +1011,7 @@ - DETECTION_BASE:SetZoneProbability(CloudyZone, ZoneProbability) + DETECTION_BASE:SetZoneProbability(ZoneArray)

    Upon a visual detection, the more a detected unit is within a cloudy zone, the less likely the detected unit is to be detected successfully.

    @@ -1012,6 +1068,24 @@ DETECTION_BASE:__Stop(Delay)

    Asynchronous Event Trigger for Event Stop.

    + + + + DETECTION_BASE:onafterDetect(From, Event, To) + + + + + + DETECTION_BASE:onafterDetectionGroup(From, Event, To, DetectionGroup) + + + + + + DETECTION_BASE:onafterStart(From, Event, To) + + @@ -1056,6 +1130,112 @@ DETECTION_BASE.DetectedObject.Visible + + + + +

    Type DETECTION_TYPES

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DETECTION_TYPES:AddDetectedItem(TypeName) +

    Adds a new DetectedItem to the DetectedItems list.

    +
    DETECTION_TYPES.ClassName + +
    DETECTION_TYPES:CreateDetectionSets() +

    Create the DetectedItems list from the DetectedObjects table.

    +
    DETECTION_TYPES:DetectedItemReportSummary(Index, DetectedTypeName) +

    Report summary of a DetectedItem using a given numeric index.

    +
    DETECTION_TYPES.DetectedItems + +
    DETECTION_TYPES:DetectedReportDetailed() +

    Report detailed of a detection result.

    +
    DETECTION_TYPES.DetectionRange + +
    DETECTION_TYPES:GetDetectedItem(TypeName) +

    Get a detected item using a given numeric index.

    +
    DETECTION_TYPES:GetDetectedItemsCount() +

    Get the amount of SETs with detected objects.

    +
    DETECTION_TYPES:GetDetectedSet(TypeName) +

    Get the Set#SET_UNIT of a detecttion area using a given numeric index.

    +
    DETECTION_TYPES:New(DetectionSetGroup) +

    DETECTION_TYPES constructor.

    +
    DETECTION_TYPES:RemoveDetectedItem(TypeName) +

    Removes an existing DetectedItem from the DetectedItems list.

    +
    DETECTION_TYPES._BoundDetectedZones + +
    DETECTION_TYPES._FlareDetectedUnits + +
    DETECTION_TYPES._FlareDetectedZones + +
    DETECTION_TYPES._SmokeDetectedUnits + +
    DETECTION_TYPES._SmokeDetectedZones +
    @@ -1084,6 +1264,12 @@ DETECTION_UNITS.DetectedItems + + + + DETECTION_UNITS:DetectedReportDetailed() + +

    Report detailed of a detection result.

    @@ -1096,6 +1282,12 @@ DETECTION_UNITS:New(DetectionSetGroup)

    DETECTION_UNITS constructor.

    + + + + DETECTION_UNITS._BoundDetectedZones + + @@ -1151,6 +1343,20 @@ + +
    +
    +
    + + #DETECTION_TYPES + +DETECTION_TYPES + +
    +
    + + +
    @@ -1276,7 +1482,7 @@ self

    -DETECTION_AREAS.AddDetectedItem(Set, Zone, self) +DETECTION_AREAS:AddDetectedItem(Set, Zone)
    @@ -1296,11 +1502,6 @@ self

    Core.Zone#ZONE_UNIT Zone : -- The Zone of the detected area.

    - -
  • - -

    self :

    -
  • Return value

    @@ -1313,6 +1514,24 @@ DetectedItem

    + +DETECTION_AREAS:BoundDetectedZones() + +
    +
    + +

    Bound the detected zones

    + +

    Return value

    + +

    #DETECTION_AREAS: +self

    + +
    +
    +
    +
    + DETECTION_AREAS:CalculateThreatLevelA2G(DetectedArea) @@ -1381,7 +1600,7 @@ self

    • -

      #number Index :

      +

      Index :

    @@ -1485,32 +1704,6 @@ The Changes text

    - -DETECTION_AREAS:GetDetectedZone(Index) - -
    -
    - -

    Get the Zone#ZONE_UNIT of a detection area using a given numeric index.

    - -

    Parameter

    -
      -
    • - -

      #number Index :

      - -
    • -
    -

    Return value

    - -

    Core.Zone#ZONE_UNIT: -DetectedZone

    - -
    -
    -
    -
    - DETECTION_AREAS:GetTreatLevelA2G(DetectedArea) @@ -1614,39 +1807,7 @@ The range till which targets are grouped upon the first detected target.

    Return value

    -

    Functional.Detection#DETECTION_AREAS: -self

    - -
    -
    -
    -
    - - -DETECTION_AREAS:RemoveDetectedItem(Index, DetectedItemIndex) - -
    -
    - -

    Remove a detected DETECTION_AREAS.DetectedItem with a given Index.

    - -

    Parameters

    - -

    Return value

    - -

    #nil:

    +

    #DETECTION_AREAS:

    @@ -1711,6 +1872,20 @@ self

    #DETECTION_AREAS: self

    + +
    +
    +
    + + #boolean + +DETECTION_AREAS._BoundDetectedZones + +
    +
    + + +
    @@ -1986,7 +2161,7 @@ self

    -DETECTION_BASE:AddDetectedItem() +DETECTION_BASE:AddDetectedItem(Set, Zone)
    @@ -1996,11 +2171,40 @@ self

    The DetectedItem is a table and contains a SET_UNIT in the field Set.

    +

    Parameters

    +

    Return value

    #DETECTION_BASE.DetectedItem:

    +
    +
    +
    +
    + + + +DETECTION_BASE.AlphaAngleProbability + +
    +
    + + +
    @@ -2015,6 +2219,20 @@ self

    + +
    +
    +
    + + + +DETECTION_BASE.CountryID + +
    +
    + + +
    @@ -2146,6 +2364,20 @@ self

    Synchronous Event Trigger for Event Detected.

    + +
    +
    +
    + + #number + +DETECTION_BASE.DetectedItemCount + +
    +
    + + +
    @@ -2163,7 +2395,7 @@ self

    @@ -2214,6 +2446,38 @@ self

    Map of the DetectedObjects identified.

    + +
    +
    +
    + + +DETECTION_BASE:DetectedReportDetailed() + +
    +
    + +

    Report detailed of a detectedion result.

    + +

    Return value

    + +

    #string:

    + + +
    +
    +
    +
    + + #number + +DETECTION_BASE.DetectionCount + +
    +
    + + +
    @@ -2417,6 +2681,32 @@ DetectedSet

    + +DETECTION_BASE:GetDetectedZone(Index) + +
    +
    + +

    Get the Zone#ZONE_UNIT of a detection area using a given numeric index.

    + +

    Parameter

    +
      +
    • + +

      #number Index :

      + +
    • +
    +

    Return value

    + +

    Core.Zone#ZONE_UNIT: +DetectedZone

    + +
    +
    +
    +
    + DETECTION_BASE:GetDetectionSetGroup() @@ -2430,20 +2720,6 @@ DetectedSet

    Wrapper.Group#GROUP:

    - -
    -
    -
    - - - -DETECTION_BASE.HeightProbability - -
    -
    - - -
    @@ -3271,6 +3547,68 @@ self

    + +DETECTION_BASE:SetAlphaAngleProbability(AlphaAngleProbability) + +
    +
    + +

    Upon a visual detection, the higher the unit is during the detecting process, the more likely the detected unit is to be detected properly.

    + + +

    A detection at a 90% alpha angle is the most optimal, a detection at 10% is less and a detection at 0% is less likely to be correct.

    + +

    A probability factor between 0 and 1 can be given, that will model a progressive extrapolated probability if the target would be detected at a 0° angle.

    + +

    For example, if a alpha angle probability factor of 0.7 is given, the extrapolated probabilities of the different angles would look like: +0°: 70%, 10°: 75,21%, 20°: 80,26%, 30°: 85%, 40°: 89,28%, 50°: 92,98%, 60°: 95,98%, 70°: 98,19%, 80°: 99,54%, 90°: 100%

    + +

    Parameter

    +
      +
    • + +

      AlphaAngleProbability : +The probability factor.

      + +
    • +
    +

    Return value

    + +

    #DETECTION_BASE: +self

    + +
    +
    +
    +
    + + +DETECTION_BASE:SetDetectionInterval(DetectionInterval) + +
    +
    + +

    Set the detection interval time in seconds.

    + +

    Parameter

    +
      +
    • + +

      #number DetectionInterval : +Interval in seconds.

      + +
    • +
    +

    Return value

    + +

    #DETECTION_BASE: +self

    + +
    +
    +
    +
    + DETECTION_BASE:SetDistanceProbability(DistanceProbability) @@ -3304,41 +3642,6 @@ self

    - -DETECTION_BASE:SetHeightProbability(HeightProbability) - -
    -
    - -

    Upon a visual detection, the higher the unit is during the detecting process, the more likely the detected unit is to be detected properly.

    - - -

    A detection at a 90% alpha angle is the most optimal, a detection at 10% is less and a detection at 0% is less likely to be correct.

    - -

    A probability factor between 0 and 1 can be given, that will model a progressive extrapolated probability if the target would be detected at a 0° angle.

    - -

    For example, if a alpha angle probability factor of 0.7 is given, the extrapolated probabilities of the different angles would look like: -0°: 70%, 10°: 75,21%, 20°: 80,26%, 30°: 85%, 40°: 89,28%, 50°: 92,98%, 60°: 95,98%, 70°: 98,19%, 80°: 99,54%, 90°: 100%

    - -

    Parameter

    -
      -
    • - -

      HeightProbability : -The probability factor.

      - -
    • -
    -

    Return value

    - -

    #DETECTION_BASE: -self

    - -
    -
    -
    -
    - DETECTION_BASE:SetRejectZones(RejectZones) @@ -3367,7 +3670,7 @@ self

    -DETECTION_BASE:SetZoneProbability(CloudyZone, ZoneProbability) +DETECTION_BASE:SetZoneProbability(ZoneArray)
    @@ -3378,18 +3681,12 @@ self

    The Cloudy Zones work with the ZONE_BASE derived classes. The mission designer can define within the mission zones that reflect cloudy areas where detected units may not be so easily visually detected.

    -

    Parameters

    +

    Parameter

    • -

      CloudyZone : -The ZONE_BASE object.

      - -
    • -
    • - -

      ZoneProbability : -The probability factor.

      +

      ZoneArray : +Aray of a The ZONE_BASE object and a ZoneProbability pair..

    @@ -3561,6 +3858,114 @@ The delay in seconds.

    +
    +
    +
    + + +DETECTION_BASE:onafterDetect(From, Event, To) + +
    +
    + + + +

    Parameters

    +
      +
    • + +

      #string From : +The From State string.

      + +
    • +
    • + +

      #string Event : +The Event string.

      + +
    • +
    • + +

      #string To : +The To State string.

      + +
    • +
    +
    +
    +
    +
    + + +DETECTION_BASE:onafterDetectionGroup(From, Event, To, DetectionGroup) + +
    +
    + + + +

    Parameters

    +
      +
    • + +

      #string From : +The From State string.

      + +
    • +
    • + +

      #string Event : +The Event string.

      + +
    • +
    • + +

      #string To : +The To State string.

      + +
    • +
    • + +

      Wrapper.Group#GROUP DetectionGroup : +The Group detecting.

      + +
    • +
    +
    +
    +
    +
    + + +DETECTION_BASE:onafterStart(From, Event, To) + +
    +
    + + + +

    Parameters

    +
      +
    • + +

      #string From : +The From State string.

      + +
    • +
    • + +

      #string Event : +The Event string.

      + +
    • +
    • + +

      #string To : +The To State string.

      + +
    • +
    +

    Type DETECTION_BASE.DetectedItem

    @@ -3657,6 +4062,345 @@ The delay in seconds.

    Type DETECTION_BASE.DetectedObjects

    +

    Type DETECTION_TYPES

    + +

    DETECTION_TYPES class

    + +

    Field(s)

    +
    +
    + + +DETECTION_TYPES:AddDetectedItem(TypeName) + +
    +
    + +

    Adds a new DetectedItem to the DetectedItems list.

    + + +

    The DetectedItem is a table and contains a SET_UNIT in the field Set.

    + +

    Parameter

    +
      +
    • + +

      #string TypeName :

      + +
    • +
    +

    Return value

    + +

    #DETECTION_TYPES.DetectedItem:

    + + +
    +
    +
    +
    + + #string + +DETECTION_TYPES.ClassName + +
    +
    + + + +
    +
    +
    +
    + + +DETECTION_TYPES:CreateDetectionSets() + +
    +
    + +

    Create the DetectedItems list from the DetectedObjects table.

    + + +

    For each DetectedItem, a one field array is created containing the Unit detected.

    + +

    Return value

    + +

    #DETECTION_TYPES: +self

    + +
    +
    +
    +
    + + +DETECTION_TYPES:DetectedItemReportSummary(Index, DetectedTypeName) + +
    +
    + +

    Report summary of a DetectedItem using a given numeric index.

    + +

    Parameters

    +
      +
    • + +

      Index :

      + +
    • +
    • + +

      DetectedTypeName :

      + +
    • +
    +

    Return value

    + +

    #string:

    + + +
    +
    +
    +
    + + + +DETECTION_TYPES.DetectedItems + +
    +
    + + + +
    +
    +
    +
    + + +DETECTION_TYPES:DetectedReportDetailed() + +
    +
    + +

    Report detailed of a detection result.

    + +

    Return value

    + +

    #string:

    + + +
    +
    +
    +
    + + +DETECTION_TYPES.DetectionRange + +
    +
    + + + +
    +
    +
    +
    + + +DETECTION_TYPES:GetDetectedItem(TypeName) + +
    +
    + +

    Get a detected item using a given numeric index.

    + +

    Parameter

    +
      +
    • + +

      #string TypeName :

      + +
    • +
    +

    Return value

    + + +

    DETECTION_TYPES.DetectedItem

    + +
    +
    +
    +
    + + +DETECTION_TYPES:GetDetectedItemsCount() + +
    +
    + +

    Get the amount of SETs with detected objects.

    + +

    Return value

    + +

    #number: +Count

    + +
    +
    +
    +
    + + +DETECTION_TYPES:GetDetectedSet(TypeName) + +
    +
    + +

    Get the Set#SET_UNIT of a detecttion area using a given numeric index.

    + +

    Parameter

    +
      +
    • + +

      #string TypeName :

      + +
    • +
    +

    Return value

    + +

    Core.Set#SET_UNIT: +DetectedSet

    + +
    +
    +
    +
    + + +DETECTION_TYPES:New(DetectionSetGroup) + +
    +
    + +

    DETECTION_TYPES constructor.

    + +

    Parameter

    + +

    Return value

    + +

    Functional.Detection#DETECTION_TYPES: +self

    + +
    +
    +
    +
    + + +DETECTION_TYPES:RemoveDetectedItem(TypeName) + +
    +
    + +

    Removes an existing DetectedItem from the DetectedItems list.

    + + +

    The DetectedItem is a table and contains a SET_UNIT in the field Set.

    + +

    Parameter

    +
      +
    • + +

      #string TypeName :

      + +
    • +
    +
    +
    +
    +
    + + #boolean + +DETECTION_TYPES._BoundDetectedZones + +
    +
    + + + +
    +
    +
    +
    + + #boolean + +DETECTION_TYPES._FlareDetectedUnits + +
    +
    + + + +
    +
    +
    +
    + + #boolean + +DETECTION_TYPES._FlareDetectedZones + +
    +
    + + + +
    +
    +
    +
    + + #boolean + +DETECTION_TYPES._SmokeDetectedUnits + +
    +
    + + + +
    +
    +
    +
    + + #boolean + +DETECTION_TYPES._SmokeDetectedZones + +
    +
    + + + +
    +
    + +

    Type DETECTION_TYPES.DetectedItem

    +

    Type DETECTION_UNITS

    DETECTION_UNITS class

    @@ -3712,7 +4456,7 @@ self

    • -

      #number Index :

      +

      Index :

    @@ -3735,6 +4479,24 @@ self

    + +
    +
    +
    + + +DETECTION_UNITS:DetectedReportDetailed() + +
    +
    + +

    Report detailed of a detection result.

    + +

    Return value

    + +

    #string:

    + +
    @@ -3776,6 +4538,20 @@ The Set of GROUPs in the Forward Air Controller role.

    Functional.Detection#DETECTION_UNITS: self

    + +
    +
    +
    + + #boolean + +DETECTION_UNITS._BoundDetectedZones + +
    +
    + + +
    diff --git a/docs/Documentation/DetectionManager.html b/docs/Documentation/DetectionManager.html index 4da79c117..4828a274a 100644 --- a/docs/Documentation/DetectionManager.html +++ b/docs/Documentation/DetectionManager.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -105,23 +105,6 @@ If an ad-hoc report is requested, use the method DetectionManager#DETECTION_REPORTING.New() method creates a new DETECTION_REPORTING instance.

    -
    - -

    3) #DETECTION_DISPATCHER class, extends #DETECTION_MANAGER

    -

    The #DETECTION_DISPATCHER class implements the dynamic dispatching of tasks upon groups of detected units determined a Set of FAC (groups). -The FAC will detect units, will group them, and will dispatch Tasks to groups. Depending on the type of target detected, different tasks will be dispatched. -Find a summary below describing for which situation a task type is created:

    - -
      -
    • CAS Task: Is created when there are enemy ground units within range of the FAC, while there are friendly units in the FAC perimeter.
    • -
    • BAI Task: Is created when there are enemy ground units within range of the FAC, while there are NO other friendly units within the FAC perimeter.
    • -
    • SEAD Task: Is created when there are enemy ground units wihtin range of the FAC, with air search radars.
    • -
    - -

    Other task types will follow...

    - -

    3.1) DETECTION_DISPATCHER constructor:

    -

    The DETECTION_DISPATCHER.New() method creates a new DETECTION_DISPATCHER instance.


    @@ -131,12 +114,6 @@ Find a summary below describing for which situation a task type is created:

    Global(s)

    - - - -
    DETECTION_DISPATCHER - -
    DETECTION_MANAGER @@ -150,76 +127,6 @@ Find a summary below describing for which situation a task type is created:

    -

    Type DETECTION_DISPATCHER

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    DETECTION_DISPATCHER.ClassName - -
    DETECTION_DISPATCHER.CommandCenter - -
    DETECTION_DISPATCHER.Detection -

    The DETECTION_BASE object that is used to report the detected objects.

    -
    DETECTION_DISPATCHER:EvaluateBAI(DetectedArea, FriendlyCoalition) -

    Creates a BAI task when there are targets for it.

    -
    DETECTION_DISPATCHER:EvaluateCAS(DetectedArea) -

    Creates a CAS task when there are targets for it.

    -
    DETECTION_DISPATCHER:EvaluateRemoveTask(Mission, Task, DetectedArea) -

    Evaluates the removal of the Task from the Mission.

    -
    DETECTION_DISPATCHER:EvaluateSEAD(DetectedArea) -

    Creates a SEAD task when there are targets for it.

    -
    DETECTION_DISPATCHER.Mission - -
    DETECTION_DISPATCHER:New(SetGroup, Detection, Mission, CommandCenter) -

    DETECTION_DISPATCHER constructor.

    -
    DETECTION_DISPATCHER:ProcessDetected(Detection) -

    Assigns tasks in relation to the detected items to the Set#SET_GROUP.

    -
    DETECTION_DISPATCHER.SetGroup -

    The groups to which the FAC will report to.

    -
    -

    Type DETECTION_MANAGER

    @@ -352,20 +259,6 @@ Find a summary below describing for which situation a task type is created:

    - #DETECTION_DISPATCHER - -DETECTION_DISPATCHER - -
    -
    - - - -
    -
    -
    -
    - #DETECTION_MANAGER DETECTION_MANAGER @@ -393,282 +286,6 @@ Find a summary below describing for which situation a task type is created:

    Type DetectionManager

    -

    Type DETECTION_DISPATCHER

    - -

    DETECTION_DISPATCHER class.

    - -

    Field(s)

    -
    -
    - - #string - -DETECTION_DISPATCHER.ClassName - -
    -
    - - - -
    -
    -
    -
    - - Wrapper.Group#GROUP - -DETECTION_DISPATCHER.CommandCenter - -
    -
    - - - -
    -
    -
    -
    - - Functional.Detection#DETECTION_BASE - -DETECTION_DISPATCHER.Detection - -
    -
    - -

    The DETECTION_BASE object that is used to report the detected objects.

    - -
    -
    -
    -
    - - -DETECTION_DISPATCHER:EvaluateBAI(DetectedArea, FriendlyCoalition) - -
    -
    - -

    Creates a BAI task when there are targets for it.

    - -

    Parameters

    - -

    Return value

    - -

    Tasking.Task#TASK:

    - - -
    -
    -
    -
    - - -DETECTION_DISPATCHER:EvaluateCAS(DetectedArea) - -
    -
    - -

    Creates a CAS task when there are targets for it.

    - -

    Parameter

    - -

    Return value

    - -

    Tasking.Task#TASK:

    - - -
    -
    -
    -
    - - -DETECTION_DISPATCHER:EvaluateRemoveTask(Mission, Task, DetectedArea) - -
    -
    - -

    Evaluates the removal of the Task from the Mission.

    - - -

    Can only occur when the DetectedArea is Changed AND the state of the Task is "Planned".

    - -

    Parameters

    - -

    Return value

    - -

    Tasking.Task#TASK:

    - - -
    -
    -
    -
    - - -DETECTION_DISPATCHER:EvaluateSEAD(DetectedArea) - -
    -
    - -

    Creates a SEAD task when there are targets for it.

    - -

    Parameter

    - -

    Return values

    -
      -
    1. - -

      Set#SET_UNIT: -TargetSetUnit: The target set of units.

      - -
    2. -
    3. - -

      #nil: -If there are no targets to be set.

      - -
    4. -
    -
    -
    -
    -
    - - Tasking.Mission#MISSION - -DETECTION_DISPATCHER.Mission - -
    -
    - - - -
    -
    -
    -
    - - -DETECTION_DISPATCHER:New(SetGroup, Detection, Mission, CommandCenter) - -
    -
    - -

    DETECTION_DISPATCHER constructor.

    - -

    Parameters

    - -

    Return value

    - -

    #DETECTION_DISPATCHER: -self

    - -
    -
    -
    -
    - - -DETECTION_DISPATCHER:ProcessDetected(Detection) - -
    -
    - -

    Assigns tasks in relation to the detected items to the Set#SET_GROUP.

    - -

    Parameter

    - -

    Return value

    - -

    #boolean: -Return true if you want the task assigning to continue... false will cancel the loop.

    - -
    -
    -
    -
    - - Set#SET_GROUP - -DETECTION_DISPATCHER.SetGroup - -
    -
    - -

    The groups to which the FAC will report to.

    - -
    -
    -

    Type DETECTION_MANAGER

    DETECTION_MANAGER class.

    diff --git a/docs/Documentation/Escort.html b/docs/Documentation/Escort.html index f07ad5198..b3a03693c 100644 --- a/docs/Documentation/Escort.html +++ b/docs/Documentation/Escort.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Event.html b/docs/Documentation/Event.html index cdbe23cd3..aa688f7c1 100644 --- a/docs/Documentation/Event.html +++ b/docs/Documentation/Event.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -197,18 +197,29 @@ Always ensure that your event handling methods align with the events being subsc

    3) EVENTDATA type

    -

    The EVENTDATA contains all the fields that are populated with event information before +

    The Event#EVENTDATA structure contains all the fields that are populated with event information before an Event Handler method is being called by the event dispatcher. The Event Handler received the EVENTDATA object as a parameter, and can be used to investigate further the different events. There are basically 4 main categories of information stored in the EVENTDATA structure:

      -
    • Initiator Unit data: Several fields documenting the initiator unit related to the event.
    • -
    • Target Unit data: Several fields documenting the target unit related to the event.
    • -
    • Weapon data: Certain events populate weapon information.
    • -
    • Place data: Certain events populate place information.
    • +
    • Initiator Unit data: Several fields documenting the initiator unit related to the event.

    • +
    • Target Unit data: Several fields documenting the target unit related to the event.

    • +
    • Weapon data: Certain events populate weapon information.

    • +
    • Place data: Certain events populate place information.

      + +

      --- This function is an Event Handling function that will be called when Tank1 is Dead. + -- EventData is an EVENTDATA structure. + -- We use the EventData.IniUnit to smoke the tank Green. + -- @param Wrapper.Unit#UNIT self + -- @param Core.Event#EVENTDATA EventData + function Tank1:OnEventDead( EventData )

      + +

      EventData.IniUnit:SmokeGreen() + end

    +

    Find below an overview which events populate which information categories:

    Objects

    @@ -345,33 +356,6 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    - - -<<<<<<< HEAD - -======= - - - - - - - - - - - - - - @@ -381,8 +365,7 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    - ->>>>>>> refs/remotes/origin/master + @@ -458,55 +441,49 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    @@ -518,120 +495,105 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    @@ -662,15 +624,13 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    @@ -1167,412 +1127,6 @@ The self instance of the class for which the event is.

    #EVENT:

    - - -
    -
    - - -EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventClass, OnEventFunction, EventID) - -
    -
    - -

    Create an OnDead event handler for a group

    - -

    Parameters

    -
      -
    • - -

      #table EventTemplate :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      EventClass : -The instance of the class for which the event is.

      - -
    • -
    • - -

      #function OnEventFunction :

      - -
    • -
    • - -

      EventID :

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEventForUnit(EventDCSUnitName, EventFunction, EventClass, EventID) - -
    -
    - -

    Set a new listener for an SEVENTX event

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Core.Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    • - -

      EventID :

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEventGeneric(EventFunction, EventClass, EventID) - -
    -
    - -

    Set a new listener for an SEVENTX event independent from a unit or a weapon.

    - -

    Parameters

    -
      -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Core.Base#BASE EventClass : -The self instance of the class for which the event is captured. When the event happens, the event process will be called in this class provided.

      - -
    • -
    • - -

      EventID :

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - -<<<<<<< HEAD - -EVENT:OnLandForTemplate(EventTemplate, EventFunction, EventClass) -======= - -EVENT:OnDeadForTemplate(EventGroup, EventFunction, EventClass, EventTemplate) - -
    -
    - -

    Create an OnDead event handler for a group

    - -

    Parameters

    -
      -
    • - -

      Wrapper.Group#GROUP EventGroup :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      EventClass : -The self instance of the class for which the event is.

      - -
    • -
    • - -

      EventTemplate :

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnDeadForUnit(EventDCSUnitName, EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTDEAD event.

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnDeadRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTDEAD event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEngineShutDownForTemplate(EventTemplate, EventFunction, EventClass) - -
    -
    - -

    Create an OnDead event handler for a group

    - -

    Parameters

    -
      -
    • - -

      #table EventTemplate :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEngineShutDownForUnit(EventDCSUnitName, EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTENGINE_SHUTDOWN event.

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEngineShutDownRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTENGINE_SHUTDOWN event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEngineStartUpForUnit(EventDCSUnitName, EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTENGINE_STARTUP event.

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnEngineStartUpRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTENGINE_STARTUP event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - -
    @@ -1623,7 +1177,7 @@ The self instance of the class for which the event is.

    -EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventClass, OnEventFunction) +EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventClass, OnEventFunction, EventID)
    @@ -1653,6 +1207,11 @@ The instance of the class for which the event is.

    #function OnEventFunction :

    + +
  • + +

    EventID :

    +
  • Return value

    @@ -1742,103 +1301,6 @@ The self instance of the class for which the event is captured. When the event h

    #EVENT:

    -
    -
    -
    -
    - - -EVENT:OnHit(EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTHIT event.

    - -

    Parameters

    -
      -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnHitForUnit(EventDCSUnitName, EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTHIT event.

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnHitRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTHIT event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - -
    @@ -1852,283 +1314,6 @@ The self instance of the class for which the event is.

    -

    Parameters

    -
      -
    • - -

      EventTemplate :

      - -
    • -
    • - -

      EventFunction :

      - -
    • -
    • - -

      EventClass :

      - -
    • -
    - -
    -
    -
    - - -EVENT:OnLandForUnit(EventDCSUnitName, EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTLAND event.

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnLandRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTLAND event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPilotDead(EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTPILOT_DEAD event.

    - -

    Parameters

    -
      -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass :

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPilotDeadForUnit(EventDCSUnitName, EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTPILOT_DEAD event.

    - -

    Parameters

    -
      -
    • - -

      #string EventDCSUnitName :

      - -
    • -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPilotDeadRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTPILOT_DEAD event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPlayerEnterRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTPLAYERENTERUNIT event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPlayerEnterUnit(EventFunction, EventClass) - -
    -
    - -

    Set a new listener for an SEVENTPLAYERENTERUNIT event.

    - -

    Parameters

    -
      -
    • - -

      #function EventFunction : -The function to be called when the event occurs for the unit.

      - -
    • -
    • - -

      Base#BASE EventClass : -The self instance of the class for which the event is.

      - -
    • -
    -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPlayerLeaveRemove(EventClass) - -
    -
    - -

    Stop listening to SEVENTPLAYERLEAVEUNIT event.

    - -

    Parameter

    - -

    Return value

    - -

    #EVENT:

    - - -
    -
    -
    -
    - - -EVENT:OnPlayerLeaveUnit(EventFunction, EventClass) ->>>>>>> refs/remotes/origin/master - -
    -
    - - -

    Parameters

    • @@ -2377,8 +1562,7 @@ Note that at the beginning of each field description, there is an indication whi
      -
        (UNIT) The category of the initiator.
      -
      +

      (UNIT) The category of the initiator.

    @@ -2392,8 +1576,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
     (UNIT) The coalition of the initiator.
    -
    +

    (UNIT) The coalition of the initiator.

    @@ -2407,8 +1590,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT) The initiating {Dcs.DCSGroup#Group}.
    -
    +

    (UNIT) The initiating {DCSGroup#Group}.

    @@ -2422,7 +1604,7 @@ Note that at the beginning of each field description, there is an indication whi
    -

    (UNIT) The initiating Group name.

    +

    (UNIT) The initiating Group name.

    @@ -2436,8 +1618,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
       (UNIT/STATIC) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC) The initiating DCSUnit#Unit or DCSStaticObject#StaticObject.

    @@ -2451,7 +1632,7 @@ Note that at the beginning of each field description, there is an indication whi
    -

    (UNIT/STATIC) The initiating Unit name.

    +

    (UNIT/STATIC) The initiating Unit name.

    @@ -2465,8 +1646,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
         (UNIT) The initiating MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the initiator Group object.
    -
    +

    (UNIT) The initiating MOOSE wrapper Group#GROUP of the initiator Group object.

    @@ -2480,8 +1660,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
     (UNIT) The initiating GROUP name (same as IniDCSGroupName).
    -
    +

    UNIT) The initiating GROUP name (same as IniDCSGroupName).

    @@ -2509,8 +1688,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
    (UNIT) The name of the initiating player in case the Unit is a client or player slot.
    -
    +

    (UNIT) The name of the initiating player in case the Unit is a client or player slot.

    @@ -2524,8 +1702,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT) The type name of the initiator.
    -
    +

    (UNIT) The type name of the initiator.

    @@ -2540,8 +1717,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
          (UNIT/STATIC) The initiating MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the initiator Unit object.
    -
    +

    (UNIT/STATIC) The initiating MOOSE wrapper Unit#UNIT of the initiator Unit object.

    @@ -2555,8 +1731,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).
    -
    +

    (UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).

    @@ -2570,8 +1745,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT) The category of the target.
    -
    +

    (UNIT) The category of the target.

    @@ -2585,8 +1759,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
     (UNIT) The coalition of the target.
    -
    +

    (UNIT) The coalition of the target.

    @@ -2600,8 +1773,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT) The target {Dcs.DCSGroup#Group}.
    -
    +

    (UNIT) The target {DCSGroup#Group}.

    @@ -2615,7 +1787,7 @@ Note that at the beginning of each field description, there is an indication whi
    -

    (UNIT) The target Group name.

    +

    (UNIT) The target Group name.

    @@ -2629,8 +1801,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
       (UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC) The target DCSUnit#Unit or DCSStaticObject#StaticObject.

    @@ -2644,7 +1815,7 @@ Note that at the beginning of each field description, there is an indication whi
    -

    (UNIT/STATIC) The target Unit name.

    +

    (UNIT/STATIC) The target Unit name.

    @@ -2658,8 +1829,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
         (UNIT) The target MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the target Group object.
    -
    +

    (UNIT) The target MOOSE wrapper Group#GROUP of the target Group object.

    @@ -2673,8 +1843,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
     (UNIT) The target GROUP name (same as TgtDCSGroupName).
    -
    +

    (UNIT) The target GROUP name (same as TgtDCSGroupName).

    @@ -2688,8 +1857,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).
    -
    +

    (UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).

    @@ -2703,8 +1871,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
    (UNIT) The name of the target player in case the Unit is a client or player slot.
    -
    +

    (UNIT) The name of the target player in case the Unit is a client or player slot.

    @@ -2718,8 +1885,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT) The type name of the target.
    -
    +

    (UNIT) The type name of the target.

    @@ -2734,8 +1900,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
          (UNIT/STATIC) The target MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the target Unit object.
    -
    +

    (UNIT/STATIC) The target MOOSE wrapper Unit#UNIT of the target Unit object.

    @@ -2749,8 +1914,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
      (UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).
    -
    +

    (UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).

    @@ -2818,8 +1982,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
        (UNIT/STATIC/SCENERY) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC/SCENERY) The initiating Dcs.DCSUnit#Unit or Dcs.DCSStaticObject#StaticObject.

    @@ -2833,8 +1996,7 @@ Note that at the beginning of each field description, there is an indication whi
    -
           (UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC) The target Dcs.DCSUnit#Unit or DCSStaticObject#StaticObject.

    diff --git a/docs/Documentation/Fsm.html b/docs/Documentation/Fsm.html index 15f5cbb49..769a40841 100644 --- a/docs/Documentation/Fsm.html +++ b/docs/Documentation/Fsm.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -844,6 +844,12 @@ YYYY-MM-DD: CLASS:NewFunction( Params ) added

    + + + + @@ -1542,7 +1548,7 @@ A string defining the start state.

    - + #string FSM._StartState @@ -1841,7 +1847,6 @@ A string defining the start state.

    - FSM.current @@ -2508,6 +2513,37 @@ self

    + +
    +
    +
    + + +FSM_PROCESS:_call_handler(handler, params, EventName) + +
    +
    + + + +

    Parameters

    +
      +
    • + +

      handler :

      + +
    • +
    • + +

      params :

      + +
    • +
    • + +

      EventName :

      + +
    • +
    diff --git a/docs/Documentation/Group.html b/docs/Documentation/Group.html index 9e33d5cc9..afa5c8eac 100644 --- a/docs/Documentation/Group.html +++ b/docs/Documentation/Group.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Identifiable.html b/docs/Documentation/Identifiable.html index 8a521c0f9..919816a08 100644 --- a/docs/Documentation/Identifiable.html +++ b/docs/Documentation/Identifiable.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/MOVEMENT.html b/docs/Documentation/MOVEMENT.html index 12f09c4ec..824e74b60 100644 --- a/docs/Documentation/MOVEMENT.html +++ b/docs/Documentation/MOVEMENT.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Menu.html b/docs/Documentation/Menu.html index 4c7aa8f9b..37ac9a182 100644 --- a/docs/Documentation/Menu.html +++ b/docs/Documentation/Menu.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Message.html b/docs/Documentation/Message.html index 892d5c1a7..935b571f5 100644 --- a/docs/Documentation/Message.html +++ b/docs/Documentation/Message.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/MissileTrainer.html b/docs/Documentation/MissileTrainer.html index 6c7b0853d..735bef024 100644 --- a/docs/Documentation/MissileTrainer.html +++ b/docs/Documentation/MissileTrainer.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Mission.html b/docs/Documentation/Mission.html index f5e92651f..18ec2f81d 100644 --- a/docs/Documentation/Mission.html +++ b/docs/Documentation/Mission.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Object.html b/docs/Documentation/Object.html index ae8b003b8..99c3c8465 100644 --- a/docs/Documentation/Object.html +++ b/docs/Documentation/Object.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Point.html b/docs/Documentation/Point.html index 348359af0..63ef7724d 100644 --- a/docs/Documentation/Point.html +++ b/docs/Documentation/Point.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -91,11 +91,30 @@ In order to keep the credibility of the the author, I want to emphasize that the
  • Point#POINT_VEC3.NewFromVec3(): a 3D point created from a DCSTypes#Vec3.
  • -

    1.2) Smoke, flare, explode, illuminate

    +

    1.2) Manupulate the X, Y, Z coordinates of the point

    + +

    A POINT_VEC3 class works in 3D space. It contains internally an X, Y, Z coordinate. +Methods exist to manupulate these coordinates.

    + +

    The current X, Y, Z axis can be retrieved with the methods POINT_VEC3.GetX(), POINT_VEC3.GetY(), POINT_VEC3.GetZ() respectively. +The methods POINT_VEC3.SetX(), POINT_VEC3.SetY(), POINT_VEC3.SetZ() change the respective axis with a new value. +The current axis values can be changed by using the methods POINT_VEC3.AddX(), POINT_VEC3.AddY(), POINT_VEC3.AddZ() +to add or substract a value from the current respective axis value. +Note that the Set and Add methods return the current POINT_VEC3 object, so these manipulation methods can be chained... For example:

    + +
     local Vec3 = PointVec3:AddX( 100 ):AddZ( 150 ):GetVec3()
    +
    + +

    1.3) Create waypoints for routes

    + +

    A POINT_VEC3 can prepare waypoints for Ground, Air and Naval groups to be embedded into a Route.

    + + +

    1.5) Smoke, flare, explode, illuminate

    At the point a smoke, flare, explosion and illumination bomb can be triggered. Use the following methods:

    -

    1.2.1) Smoke

    +

    1.5.1) Smoke

    • POINT_VEC3.Smoke(): To smoke the point in a certain color.
    • @@ -106,7 +125,7 @@ In order to keep the credibility of the the author, I want to emphasize that the
    • POINT_VEC3.SmokeGreen(): To smoke the point in green.
    -

    1.2.2) Flare

    +

    1.5.2) Flare

    • POINT_VEC3.Flare(): To flare the point in a certain color.
    • @@ -116,13 +135,13 @@ In order to keep the credibility of the the author, I want to emphasize that the
    • POINT_VEC3.FlareGreen(): To flare the point in green.
    -

    1.2.3) Explode

    +

    1.5.3) Explode

    -

    1.2.4) Illuminate

    +

    1.5.4) Illuminate

    +

    1.2) Manupulate the X, Altitude, Y coordinates of the 2D point

    + +

    A POINT_VEC2 class works in 2D space, with an altitude setting. It contains internally an X, Altitude, Y coordinate. +Methods exist to manupulate these coordinates.

    + +

    The current X, Altitude, Y axis can be retrieved with the methods POINT_VEC2.GetX(), POINT_VEC2.GetAlt(), POINT_VEC2.GetY() respectively. +The methods POINT_VEC2.SetX(), POINT_VEC2.SetAlt(), POINT_VEC2.SetY() change the respective axis with a new value. +The current Lat(itude), Alt(itude), Lon(gitude) values can also be retrieved with the methods POINT_VEC2.GetLat(), POINT_VEC2.GetAlt(), POINT_VEC2.GetLon() respectively. +The current axis values can be changed by using the methods POINT_VEC2.AddX(), POINT_VEC2.AddAlt(), POINT_VEC2.AddY() +to add or substract a value from the current respective axis value. +Note that the Set and Add methods return the current POINT_VEC2 object, so these manipulation methods can be chained... For example:

    + +
     local Vec2 = PointVec2:AddX( 100 ):AddY( 2000 ):GetVec2()
    +
    +

    API CHANGE HISTORY

    @@ -196,6 +230,24 @@ In order to keep the credibility of the the author, I want to emphasize that the

    Type POINT_VEC2

    EVENT:OnEngineShutDownForTemplate(EventTemplate, EventFunction, EventClass)

    Create an OnDead event handler for a group

    -
    EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventClass, OnEventFunction, EventID)EVENT:OnEngineShutDownForUnit(EventDCSUnitName, EventFunction, EventClass) -

    Set a new listener for an SEVENTENGINE_SHUTDOWN event.

    -
    EVENT:OnEngineShutDownRemove(EventClass) -

    Stop listening to SEVENTENGINE_SHUTDOWN event.

    -
    EVENT:OnEngineStartUpForUnit(EventDCSUnitName, EventFunction, EventClass) -

    Set a new listener for an SEVENTENGINE_STARTUP event.

    -
    EVENT:OnEngineStartUpRemove(EventClass) -

    Stop listening to SEVENTENGINE_STARTUP event.

    EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventClass, OnEventFunction)EVENT:OnEventForTemplate(EventTemplate, EventFunction, EventClass, OnEventFunction, EventID)

    Create an OnDead event handler for a group

    EVENTDATA.IniCategory -
      (UNIT) The category of the initiator.
    -
    +

    (UNIT) The category of the initiator.

    EVENTDATA.IniCoalition -
     (UNIT) The coalition of the initiator.
    -
    +

    (UNIT) The coalition of the initiator.

    EVENTDATA.IniDCSGroup -
      (UNIT) The initiating {Dcs.DCSGroup#Group}.
    -
    +

    (UNIT) The initiating {DCSGroup#Group}.

    EVENTDATA.IniDCSGroupName -

    (UNIT) The initiating Group name.

    +

    (UNIT) The initiating Group name.

    EVENTDATA.IniDCSUnit -
       (UNIT/STATIC) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC) The initiating DCSUnit#Unit or DCSStaticObject#StaticObject.

    EVENTDATA.IniDCSUnitName -

    (UNIT/STATIC) The initiating Unit name.

    +

    (UNIT/STATIC) The initiating Unit name.

    EVENTDATA.IniGroup -
         (UNIT) The initiating MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the initiator Group object.
    -
    +

    (UNIT) The initiating MOOSE wrapper Group#GROUP of the initiator Group object.

    EVENTDATA.IniGroupName -
     (UNIT) The initiating GROUP name (same as IniDCSGroupName).
    -
    +

    UNIT) The initiating GROUP name (same as IniDCSGroupName).

    EVENTDATA.IniPlayerName -
    (UNIT) The name of the initiating player in case the Unit is a client or player slot.
    -
    +

    (UNIT) The name of the initiating player in case the Unit is a client or player slot.

    EVENTDATA.IniTypeName -
      (UNIT) The type name of the initiator.
    -
    +

    (UNIT) The type name of the initiator.

    EVENTDATA.IniUnit -
          (UNIT/STATIC) The initiating MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the initiator Unit object.
    -
    +

    (UNIT/STATIC) The initiating MOOSE wrapper Unit#UNIT of the initiator Unit object.

    EVENTDATA.IniUnitName -
      (UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).
    -
    +

    (UNIT/STATIC) The initiating UNIT name (same as IniDCSUnitName).

    EVENTDATA.TgtCategory -
      (UNIT) The category of the target.
    -
    +

    (UNIT) The category of the target.

    EVENTDATA.TgtCoalition -
     (UNIT) The coalition of the target.
    -
    +

    (UNIT) The coalition of the target.

    EVENTDATA.TgtDCSGroup -
      (UNIT) The target {Dcs.DCSGroup#Group}.
    -
    +

    (UNIT) The target {DCSGroup#Group}.

    EVENTDATA.TgtDCSGroupName -

    (UNIT) The target Group name.

    +

    (UNIT) The target Group name.

    EVENTDATA.TgtDCSUnit -
       (UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC) The target DCSUnit#Unit or DCSStaticObject#StaticObject.

    EVENTDATA.TgtDCSUnitName -

    (UNIT/STATIC) The target Unit name.

    +

    (UNIT/STATIC) The target Unit name.

    EVENTDATA.TgtGroup -
         (UNIT) The target MOOSE wrapper <a href="Wrapper.Group.html##(GROUP)">Wrapper.Group#GROUP</a> of the target Group object.
    -
    +

    (UNIT) The target MOOSE wrapper Group#GROUP of the target Group object.

    EVENTDATA.TgtGroupName -
     (UNIT) The target GROUP name (same as TgtDCSGroupName).
    -
    +

    (UNIT) The target GROUP name (same as TgtDCSGroupName).

    EVENTDATA.TgtObjectCategory -
      (UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).
    -
    +

    (UNIT/STATIC) The target object category ( Object.Category.UNIT or Object.Category.STATIC ).

    EVENTDATA.TgtPlayerName -
    (UNIT) The name of the target player in case the Unit is a client or player slot.
    -
    +

    (UNIT) The name of the target player in case the Unit is a client or player slot.

    EVENTDATA.TgtTypeName -
      (UNIT) The type name of the target.
    -
    +

    (UNIT) The type name of the target.

    EVENTDATA.TgtUnit -
          (UNIT/STATIC) The target MOOSE wrapper <a href="Wrapper.Unit.html##(UNIT)">Wrapper.Unit#UNIT</a> of the target Unit object.
    -
    +

    (UNIT/STATIC) The target MOOSE wrapper Unit#UNIT of the target Unit object.

    EVENTDATA.TgtUnitName -
      (UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).
    -
    +

    (UNIT/STATIC) The target UNIT name (same as TgtDCSUnitName).

    EVENTDATA.initiator -
        (UNIT/STATIC/SCENERY) The initiating <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC/SCENERY) The initiating Dcs.DCSUnit#Unit or Dcs.DCSStaticObject#StaticObject.

    EVENTDATA.target -
           (UNIT/STATIC) The target <a href="Dcs.DCSUnit.html##(Unit)">Dcs.DCSUnit#Unit</a> or <a href="Dcs.DCSStaticObject.html##(StaticObject)">Dcs.DCSStaticObject#StaticObject</a>.
    -
    +

    (UNIT/STATIC) The target Dcs.DCSUnit#Unit or DCSStaticObject#StaticObject.

    FSM_PROCESS.Task +
    FSM_PROCESS:_call_handler(handler, params, EventName) +
    + + + + + + + + + + + + + + + + + + + + @@ -256,13 +320,31 @@ In order to keep the credibility of the the author, I want to emphasize that the - + + + + + + + + + + + + + - + @@ -283,6 +365,12 @@ In order to keep the credibility of the the author, I want to emphasize that the + + + +
    POINT_VEC2:AddAlt(Altitude) +

    Add to the current land height an altitude.

    +
    POINT_VEC2:AddX(x) +

    Add to the x coordinate of the POINT_VEC2.

    +
    POINT_VEC2:AddY(y) +

    Add to the y coordinate of the POINT_VEC2.

    +
    POINT_VEC2.ClassName @@ -216,13 +268,25 @@ In order to keep the credibility of the the author, I want to emphasize that the
    POINT_VEC2:GetAlt() -

    Return the altitude of the land at the POINT_VEC2.

    +

    Return the altitude (height) of the land at the POINT_VEC2.

    POINT_VEC2:GetAltitudeText()

    Return no text for the altitude of the POINT_VEC2.

    +
    POINT_VEC2:GetLat() +

    Return Return the Lat(itude) coordinate of the POINTVEC2 (ie: (parent)POINTVEC3.x).

    +
    POINT_VEC2:GetLon() +

    Return the Lon(gitude) coordinate of the POINTVEC2 (ie: (parent)POINTVEC3.z).

    POINT_VEC2.SetX(x, self)POINT_VEC2:SetAlt(Altitude) +

    Set the altitude of the POINT_VEC2.

    +
    POINT_VEC2:SetLat(x) +

    Set the Lat(itude) coordinate of the POINTVEC2 (ie: POINTVEC3.x).

    +
    POINT_VEC2:SetLon(y, z) +

    Set the Lon(gitude) coordinate of the POINTVEC2 (ie: POINTVEC3.z).

    +
    POINT_VEC2:SetX(x)

    Set the x coordinate of the POINT_VEC2.

    POINT_VEC2.SetY(y, self)POINT_VEC2:SetY(y)

    Set the y coordinate of the POINT_VEC2.

    POINT_VEC2.y

    the y coordinate in meters.

    +
    POINT_VEC2.z +
    @@ -290,6 +378,24 @@ In order to keep the credibility of the the author, I want to emphasize that the

    Type POINT_VEC3

    + + + + + + + + + + + + - + - + - + @@ -684,6 +790,87 @@ In order to keep the credibility of the the author, I want to emphasize that the
    + +POINT_VEC2:AddAlt(Altitude) + +
    +
    + +

    Add to the current land height an altitude.

    + +

    Parameter

    +
      +
    • + +

      #number Altitude : +The Altitude to add. If nothing (nil) is given, then the current land altitude is set.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC2:

    + + +
    +
    +
    +
    + + +POINT_VEC2:AddX(x) + +
    +
    + +

    Add to the x coordinate of the POINT_VEC2.

    + +

    Parameter

    +
      +
    • + +

      #number x : +The x coordinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC2:

    + + +
    +
    +
    +
    + + +POINT_VEC2:AddY(y) + +
    +
    + +

    Add to the y coordinate of the POINT_VEC2.

    + +

    Parameter

    +
      +
    • + +

      #number y : +The y coordinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC2:

    + + +
    +
    +
    +
    + #string POINT_VEC2.ClassName @@ -758,7 +945,7 @@ The distance from the reference DCSTypes#Vec2
    -

    Return the altitude of the land at the POINT_VEC2.

    +

    Return the altitude (height) of the land at the POINT_VEC2.

    Return value

    @@ -788,6 +975,42 @@ Empty string.

    + +POINT_VEC2:GetLat() + +
    +
    + +

    Return Return the Lat(itude) coordinate of the POINTVEC2 (ie: (parent)POINTVEC3.x).

    + +

    Return value

    + +

    #number: +The x coodinate.

    + +
    +
    +
    +
    + + +POINT_VEC2:GetLon() + +
    +
    + +

    Return the Lon(gitude) coordinate of the POINTVEC2 (ie: (parent)POINTVEC3.z).

    + +

    Return value

    + +

    #number: +The y coodinate.

    + +
    +
    +
    +
    + POINT_VEC2:GetX() @@ -922,40 +1145,67 @@ self

    - -POINT_VEC2.SetX(x, self) + +POINT_VEC2:SetAlt(Altitude)
    -

    Set the x coordinate of the POINT_VEC2.

    +

    Set the altitude of the POINT_VEC2.

    -

    Parameters

    +

    Parameter

    +
      +
    • + +

      #number Altitude : +The land altitude. If nothing (nil) is given, then the current land altitude is set.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC2:

    + + +
    +
    +
    +
    + + +POINT_VEC2:SetLat(x) + +
    +
    + +

    Set the Lat(itude) coordinate of the POINTVEC2 (ie: POINTVEC3.x).

    + +

    Parameter

    • #number x : The x coordinate.

      -
    • -
    • - -

      self :

      -
    +

    Return value

    + +

    #POINT_VEC2:

    + +
    - -POINT_VEC2.SetY(y, self) + +POINT_VEC2:SetLon(y, z)
    -

    Set the y coordinate of the POINT_VEC2.

    +

    Set the Lon(gitude) coordinate of the POINTVEC2 (ie: POINTVEC3.z).

    Parameters

      @@ -967,10 +1217,69 @@ The y coordinate.

    • -

      self :

      +

      z :

    +

    Return value

    + +

    #POINT_VEC2:

    + + +
    +
    +
    +
    + + +POINT_VEC2:SetX(x) + +
    +
    + +

    Set the x coordinate of the POINT_VEC2.

    + +

    Parameter

    +
      +
    • + +

      #number x : +The x coordinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC2:

    + + +
    +
    +
    +
    + + +POINT_VEC2:SetY(y) + +
    +
    + +

    Set the y coordinate of the POINT_VEC2.

    + +

    Parameter

    +
      +
    • + +

      #number y : +The y coordinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC2:

    + +
    @@ -1034,8 +1343,6 @@ The new calculated POINT_VEC2.

    -<<<<<<< HEAD -=======
    @@ -1049,7 +1356,6 @@ The new calculated POINT_VEC2.

    ->>>>>>> refs/remotes/origin/master

    Type POINT_VEC3

    @@ -1059,6 +1365,87 @@ The new calculated POINT_VEC2.

    + +POINT_VEC3:AddX(x) + +
    +
    + +

    Add to the x coordinate of the POINT_VEC3.

    + +

    Parameter

    +
      +
    • + +

      #number x : +The x coordinate value to add to the current x coodinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC3:

    + + +
    +
    +
    +
    + + +POINT_VEC3:AddY(y) + +
    +
    + +

    Add to the y coordinate of the POINT_VEC3.

    + +

    Parameter

    +
      +
    • + +

      #number y : +The y coordinate value to add to the current y coodinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC3:

    + + +
    +
    +
    +
    + + +POINT_VEC3:AddZ(z) + +
    +
    + +

    Add to the z coordinate of the POINT_VEC3.

    + +

    Parameter

    +
      +
    • + +

      #number z : +The z coordinate value to add to the current z coodinate.

      + +
    • +
    +

    Return value

    + +

    #POINT_VEC3:

    + + +
    +
    +
    +
    + #string POINT_VEC3.ClassName @@ -1919,81 +2306,81 @@ true means metric, false means NM.

    -POINT_VEC3.SetX(x, self) +POINT_VEC3:SetX(x)

    Set the x coordinate of the POINT_VEC3.

    -

    Parameters

    +

    Parameter

    • #number x : The x coordinate.

      -
    • -
    • - -

      self :

      -
    +

    Return value

    + +

    #POINT_VEC3:

    + +
    -POINT_VEC3.SetY(y, self) +POINT_VEC3:SetY(y)

    Set the y coordinate of the POINT_VEC3.

    -

    Parameters

    +

    Parameter

    • #number y : The y coordinate.

      -
    • -
    • - -

      self :

      -
    +

    Return value

    + +

    #POINT_VEC3:

    + +
    -POINT_VEC3.SetZ(z, self) +POINT_VEC3:SetZ(z)

    Set the z coordinate of the POINT_VEC3.

    -

    Parameters

    +

    Parameter

    • #number z : The z coordinate.

      -
    • -
    • - -

      self :

      -
    +

    Return value

    + +

    #POINT_VEC3:

    + +
    diff --git a/docs/Documentation/Positionable.html b/docs/Documentation/Positionable.html index 93943636f..0fbf409de 100644 --- a/docs/Documentation/Positionable.html +++ b/docs/Documentation/Positionable.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Process_JTAC.html b/docs/Documentation/Process_JTAC.html index 7b075d55f..a6f640ee1 100644 --- a/docs/Documentation/Process_JTAC.html +++ b/docs/Documentation/Process_JTAC.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Process_Pickup.html b/docs/Documentation/Process_Pickup.html index 01d6c1246..7738af995 100644 --- a/docs/Documentation/Process_Pickup.html +++ b/docs/Documentation/Process_Pickup.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Route.html b/docs/Documentation/Route.html index 188d2dd9a..7a204a4c5 100644 --- a/docs/Documentation/Route.html +++ b/docs/Documentation/Route.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -164,6 +164,12 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil
    + + + + @@ -206,7 +212,7 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil - + @@ -227,6 +233,106 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil + +
    POINT_VEC3:AddX(x) +

    Add to the x coordinate of the POINT_VEC3.

    +
    POINT_VEC3:AddY(y) +

    Add to the y coordinate of the POINT_VEC3.

    +
    POINT_VEC3:AddZ(z) +

    Add to the z coordinate of the POINT_VEC3.

    +
    POINT_VEC3.ClassName @@ -506,19 +612,19 @@ In order to keep the credibility of the the author, I want to emphasize that the
    POINT_VEC3.SetX(x, self)POINT_VEC3:SetX(x)

    Set the x coordinate of the POINT_VEC3.

    POINT_VEC3.SetY(y, self)POINT_VEC3:SetY(y)

    Set the y coordinate of the POINT_VEC3.

    POINT_VEC3.SetZ(z, self)POINT_VEC3:SetZ(z)

    Set the z coordinate of the POINT_VEC3.

    ACT_ROUTE +
    ACT_ROUTE_POINT +
    ACT_ROUTE.TargetZoneACT_ROUTE.Zone ACT_ROUTE:onfuncHasArrived(ProcessUnit)

    Check if the controllable has arrived.

    +
    + +

    Type ACT_ROUTE_POINT

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ACT_ROUTE_POINT.ClassName + +
    ACT_ROUTE_POINT.DisplayCount + +
    ACT_ROUTE_POINT.DisplayInterval + +
    ACT_ROUTE_POINT.DisplayMessage + +
    ACT_ROUTE_POINT.DisplayTime + +
    ACT_ROUTE_POINT:GetPointVec2() +

    Get PointVec2

    +
    ACT_ROUTE_POINT:GetRange() +

    Get Range around PointVec2

    +
    ACT_ROUTE_POINT:Init(FsmRoute) + +
    ACT_ROUTE_POINT:New(The, Range, Zone, PointVec2) +

    Creates a new routing state machine.

    +
    ACT_ROUTE_POINT.PointVec2 + +
    ACT_ROUTE_POINT.Range + +
    ACT_ROUTE_POINT:SetPointVec2(PointVec2) +

    Set PointVec2

    +
    ACT_ROUTE_POINT:SetRange(Range) +

    Set Range around PointVec2

    +
    ACT_ROUTE_POINT.TASK + +
    ACT_ROUTE_POINT:onenterReporting(ProcessUnit, Event, From, To) +

    StateMachine callback function

    +
    ACT_ROUTE_POINT:onfuncHasArrived(ProcessUnit) +

    Method override to check if the controllable has arrived.

    @@ -261,6 +367,12 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil ACT_ROUTE_ZONE.DisplayTime + + + + ACT_ROUTE_ZONE:GetZone() + +

    Get Zone

    @@ -270,7 +382,7 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil - ACT_ROUTE_ZONE:New(TargetZone) + ACT_ROUTE_ZONE:New(Zone)

    Creates a new routing state machine.

    @@ -279,6 +391,12 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil ACT_ROUTE_ZONE.ProcessUnit + + + + ACT_ROUTE_ZONE:SetZone(Zone) + +

    Set Zone

    @@ -288,7 +406,7 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil - ACT_ROUTE_ZONE.TargetZone + ACT_ROUTE_ZONE.Zone @@ -320,6 +438,20 @@ Upon arrival at the zone, a confirmation of arrival is sent, and the process wil + +
    +
    +
    + + #ACT_ROUTE_POINT + +ACT_ROUTE_POINT + +
    +
    + + +
    @@ -424,8 +556,8 @@ self

    Core.Zone#ZONE_BASE - -ACT_ROUTE.TargetZone + +ACT_ROUTE.Zone
    @@ -530,6 +662,330 @@ self

    #boolean:

    +
    +
    + +

    Type ACT_ROUTE_POINT

    + +

    ACTROUTEPOINT class

    + +

    Field(s)

    +
    +
    + + #string + +ACT_ROUTE_POINT.ClassName + +
    +
    + + + +
    +
    +
    +
    + + #number + +ACT_ROUTE_POINT.DisplayCount + +
    +
    + + + +
    +
    +
    +
    + + #number + +ACT_ROUTE_POINT.DisplayInterval + +
    +
    + + + +
    +
    +
    +
    + + #boolean + +ACT_ROUTE_POINT.DisplayMessage + +
    +
    + + + +
    +
    +
    +
    + + #number + +ACT_ROUTE_POINT.DisplayTime + +
    +
    + + + + +

    10 seconds is the default

    + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:GetPointVec2() + +
    +
    + +

    Get PointVec2

    + +

    Return value

    + +

    Core.Point#POINT_VEC2: +PointVec2 The PointVec2 to route to.

    + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:GetRange() + +
    +
    + +

    Get Range around PointVec2

    + +

    Return value

    + +

    #number: +The Range to consider the arrival. Default is 10000 meters.

    + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:Init(FsmRoute) + +
    +
    + + + +

    Parameter

    +
      +
    • + +

      FsmRoute :

      + +
    • +
    +
    +
    +
    +
    + + +ACT_ROUTE_POINT:New(The, Range, Zone, PointVec2) + +
    +
    + +

    Creates a new routing state machine.

    + + +

    The task will route a controllable to a PointVec2 until the controllable is within the Range.

    + +

    Parameters

    + +
    +
    +
    +
    + + + +ACT_ROUTE_POINT.PointVec2 + +
    +
    + + + +
    +
    +
    +
    + + +ACT_ROUTE_POINT.Range + +
    +
    + + + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:SetPointVec2(PointVec2) + +
    +
    + +

    Set PointVec2

    + +

    Parameter

    + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:SetRange(Range) + +
    +
    + +

    Set Range around PointVec2

    + +

    Parameter

    +
      +
    • + +

      #number Range : +The Range to consider the arrival. Default is 10000 meters.

      + +
    • +
    +
    +
    +
    +
    + + Tasking.Task#TASK + +ACT_ROUTE_POINT.TASK + +
    +
    + + + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:onenterReporting(ProcessUnit, Event, From, To) + +
    +
    + +

    StateMachine callback function

    + +

    Parameters

    + +
    +
    +
    +
    + + +ACT_ROUTE_POINT:onfuncHasArrived(ProcessUnit) + +
    +
    + +

    Method override to check if the controllable has arrived.

    + +

    Parameter

    + +

    Return value

    + +

    #boolean:

    + +
    @@ -614,6 +1070,24 @@ self

    + +ACT_ROUTE_ZONE:GetZone() + +
    +
    + +

    Get Zone

    + +

    Return value

    + +

    Core.Zone#ZONE_BASE: +Zone The Zone object where to route to.

    + +
    +
    +
    +
    + ACT_ROUTE_ZONE:Init(FsmRoute) @@ -636,7 +1110,7 @@ self

    -ACT_ROUTE_ZONE:New(TargetZone) +ACT_ROUTE_ZONE:New(Zone)
    @@ -650,7 +1124,7 @@ self

    @@ -668,6 +1142,28 @@ self

    +
    +
    +
    +
    + + +ACT_ROUTE_ZONE:SetZone(Zone) + +
    +
    + +

    Set Zone

    + +

    Parameter

    +
    @@ -688,8 +1184,8 @@ self

    Core.Zone#ZONE_BASE - -ACT_ROUTE_ZONE.TargetZone + +ACT_ROUTE_ZONE.Zone
    diff --git a/docs/Documentation/Scenery.html b/docs/Documentation/Scenery.html index f7258b5b4..b9e8b4a3d 100644 --- a/docs/Documentation/Scenery.html +++ b/docs/Documentation/Scenery.html @@ -39,11 +39,11 @@
  • Fsm
  • Group
  • Identifiable
  • -
  • MOVEMENT
  • Menu
  • Message
  • MissileTrainer
  • Mission
  • +
  • Movement
  • Object
  • Point
  • Positionable
  • @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/ScheduleDispatcher.html b/docs/Documentation/ScheduleDispatcher.html index 78cfd02be..298ef4de0 100644 --- a/docs/Documentation/ScheduleDispatcher.html +++ b/docs/Documentation/ScheduleDispatcher.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Scheduler.html b/docs/Documentation/Scheduler.html index e6fea02b4..a975d1109 100644 --- a/docs/Documentation/Scheduler.html +++ b/docs/Documentation/Scheduler.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -72,10 +72,14 @@

    Module Scheduler

    -

    This module contains the SCHEDULER class.

    +

    Core - SCHEDULER prepares and handles the execution of functions over scheduled time (intervals).

    +

    Banner Image

    + +
    +

    1) Scheduler#SCHEDULER class, extends Base#BASE

    The Scheduler#SCHEDULER class creates schedule.

    diff --git a/docs/Documentation/Scoring.html b/docs/Documentation/Scoring.html index 3d38a7d76..c869150bd 100644 --- a/docs/Documentation/Scoring.html +++ b/docs/Documentation/Scoring.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -493,6 +493,12 @@ Various methods exist to configure:

    SCORING:ReportDetailedPlayerDestroys(PlayerName)

    Produce detailed report of player destroy scores.

    + + + + SCORING:ReportDetailedPlayerGoals(PlayerName) + +

    Produce detailed report of player goal scores.

    @@ -504,7 +510,7 @@ Various methods exist to configure:

    SCORING:ReportDetailedPlayerMissions(PlayerName) -

    Produce detailed report of player goal scores.

    +

    Produce detailed report of player penalty scores because of changing the coalition.

    @@ -1441,6 +1447,33 @@ The report.

    + +SCORING:ReportDetailedPlayerGoals(PlayerName) + +
    +
    + +

    Produce detailed report of player goal scores.

    + +

    Parameter

    +
      +
    • + +

      #string PlayerName : +The name of the player.

      + +
    • +
    +

    Return value

    + +

    #string: +The report.

    + +
    +
    +
    +
    + SCORING:ReportDetailedPlayerHits(PlayerName) @@ -1474,7 +1507,7 @@ The report.

    -

    Produce detailed report of player goal scores.

    +

    Produce detailed report of player penalty scores because of changing the coalition.

    Parameter

    +
    +
    +
    + + +SET_BASE:GetRandom() + +
    +
    + +

    Gets a random object from the Set#SET_BASE and derived classes.

    + +

    Return value

    + +

    Core.Base#BASE:

    + +
    @@ -1910,6 +1940,20 @@ self

    #SET_BASE: self

    +
    +
    +
    +
    + + + +SET_BASE.Index + +
    +
    + + +
    diff --git a/docs/Documentation/Smoke.html b/docs/Documentation/Smoke.html index 6702e3e2c..f21743f78 100644 --- a/docs/Documentation/Smoke.html +++ b/docs/Documentation/Smoke.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -231,6 +231,12 @@ At random intervals, a new target is smoked.

    ACT_ASSIST:onafterStart(ProcessUnit, Event, From, To)

    StateMachine callback function

    + + + + ACT_ASSIST:onafterStop(ProcessUnit, Event, From, To) + +

    StateMachine callback function

    @@ -467,6 +473,42 @@ At random intervals, a new target is smoked.

    +

    StateMachine callback function

    + +

    Parameters

    + +
    +
    +
    +
    + + +ACT_ASSIST:onafterStop(ProcessUnit, Event, From, To) + +
    +
    +

    StateMachine callback function

    Parameters

    diff --git a/docs/Documentation/Spawn.html b/docs/Documentation/Spawn.html index 00b707335..b80258536 100644 --- a/docs/Documentation/Spawn.html +++ b/docs/Documentation/Spawn.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -834,12 +834,6 @@ A coding example is provided at the description of the SPAWN:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle) - - - - SPAWN.uncontrolled - - @@ -1765,9 +1759,6 @@ The group that was spawned. You can use this group for further actions.

    - -

    Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.

    -
    @@ -2562,7 +2553,7 @@ Spawn_BE_KA50 = SPAWN:New( 'BE KA-50@RAMP-Ground Defense' ):Schedule( 600, 0.5 ) -

    Flag that indicates if all the Groups of the SpawnGroup need to be visible when Spawned.

    +

    When the first Spawn executes, all the Groups need to be made visible before start.

    @@ -3201,20 +3192,6 @@ True = Continue Scheduler

    - -
    -
    -
    - - - -SPAWN.uncontrolled - -
    -
    - - -
    diff --git a/docs/Documentation/Static.html b/docs/Documentation/Static.html index 60fca2b1e..ebd47c91e 100644 --- a/docs/Documentation/Static.html +++ b/docs/Documentation/Static.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Task.html b/docs/Documentation/Task.html index cc7c6163d..5093f8138 100644 --- a/docs/Documentation/Task.html +++ b/docs/Documentation/Task.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -237,6 +237,12 @@ Use the method TASK.AddScore() to add scores whe TASK:GetScoring()

    Gets the Scoring of the task

    + + + + TASK:GetStateMachine(TaskUnit) + +

    Gets the FiniteStateMachine of Task with key TaskUnit

    @@ -264,7 +270,7 @@ Use the method TASK.AddScore() to add scores whe - TASK:GetUnitProcess() + TASK:GetUnitProcess(TaskUnit)

    Get the Task FSM Process Template

    @@ -354,9 +360,9 @@ Use the method TASK.AddScore() to add scores whe - TASK.MenuTaskStatus(MenuParam) + TASK:MenuTaskStatus(TaskGroup) - +

    Report the task status.

    @@ -609,12 +615,18 @@ Use the method TASK.AddScore() to add scores whe TASK.TimeOut + + + + TASK:UnAssignFromGroup(TaskGroup) + +

    UnAssign the Task from a Group.

    TASK:UnAssignFromGroups() -

    Assign the Task from the Groups.

    +

    UnAssign the Task from the Groups.

    @@ -1072,6 +1084,32 @@ The Task Name

    Functional.Scoring#SCORING: Scoring

    + +
    +
    +
    + + +TASK:GetStateMachine(TaskUnit) + +
    +
    + +

    Gets the FiniteStateMachine of Task with key TaskUnit

    + +

    Parameter

    + +

    Return value

    + +

    Core.Fsm#FSM_PROCESS:

    + +
    @@ -1145,13 +1183,21 @@ TaskType

    -TASK:GetUnitProcess() +TASK:GetUnitProcess(TaskUnit)

    Get the Task FSM Process Template

    +

    Parameter

    +

    Return value

    Core.Fsm#FSM_PROCESS:

    @@ -1431,18 +1477,18 @@ true if Unit is part of the Task.

    -TASK.MenuTaskStatus(MenuParam) +TASK:MenuTaskStatus(TaskGroup)
    - +

    Report the task status.

    Parameter

    @@ -2005,7 +2051,7 @@ self

  • -

    Fsm :

    +

    Core.Fsm#FSM_PROCESS Fsm :

  • @@ -2270,6 +2316,27 @@ Fsm#FSM_PROCESS

    +
    +
    +
    +
    + + +TASK:UnAssignFromGroup(TaskGroup) + +
    +
    + +

    UnAssign the Task from a Group.

    + +

    Parameter

    +
    @@ -2281,7 +2348,7 @@ Fsm#FSM_PROCESS

    -

    Assign the Task from the Groups.

    +

    UnAssign the Task from the Groups.

    diff --git a/docs/Documentation/Task_A2G.html b/docs/Documentation/Task_A2G.html index d3718c2c3..8b3b168d3 100644 --- a/docs/Documentation/Task_A2G.html +++ b/docs/Documentation/Task_A2G.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -72,27 +72,59 @@

    Module Task_A2G

    -

    (AI) (SP) (MP) Tasking for Air to Ground Processes.

    +

    This module contains the TASK_A2G classes.

    -

    1) #TASK_A2G class, extends Task#TASK

    -

    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. +

    1) TaskA2G#TASKA2G class, extends Task#TASK

    + +

    The #TASK_A2G class defines Air To Ground tasks for a Set of Target Units, +based on the tasking capabilities defined in Task#TASK. The TASK_A2G is implemented using a Statemachine#FSM_TASK, and has the following statuses:

    +

    1) TaskA2G#TASKSEAD class, extends TaskA2G#TASKA2G

    + +

    The #TASK_SEAD class defines a SEAD task for a Set of Target Units.

    +
    -

    Authors: FlightControl - Design and Programming

    +

    API CHANGE HISTORY

    +

    The underlying change log documents the API changes. Please read this carefully. The following notation is used:

    + + + +

    Hereby the change log:

    + +

    2017-03-09: Revised version.

    + +
    + +

    AUTHORS and CONTRIBUTIONS

    + +

    Contributions:

    + + + +

    Authors:

    + +

    Global(s)

    @@ -100,6 +132,24 @@ The TASK_A2G is implemented using a Stat + + + + + + + + + + + +
    TASK_A2G +
    TASK_BAI + +
    TASK_CAS + +
    TASK_SEAD +
    @@ -118,9 +168,129 @@ The TASK_A2G is implemented using a Stat - TASK_A2G:New(Mission, SetGroup, TaskName, TaskType, UnitSetTargets, TargetZone, TargetSetUnit, FACUnit) + TASK_A2G:GetRendezVousPointVec2(TaskUnit) + + + + + + TASK_A2G:GetRendezVousZone(TaskUnit) + + + + + + TASK_A2G:GetTargetPointVec2(TaskUnit) + + + + + + TASK_A2G:GetTargetZone(TaskUnit) + + + + + + TASK_A2G:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit, TaskType)

    Instantiates a new TASK_A2G.

    + + + + TASK_A2G:SetRendezVousPointVec2(RendezVousPointVec2, RendezVousRange, TaskUnit) + + + + + + TASK_A2G:SetRendezVousZone(RendezVousZone, TaskUnit) + + + + + + TASK_A2G:SetTargetPointVec2(TargetPointVec2, TaskUnit) + + + + + + TASK_A2G:SetTargetZone(TargetZone, TaskUnit) + + + + + + TASK_A2G.TargetSetUnit + + + + + + +

    Type TASK_BAI

    + + + + + + + + + + + + + +
    TASK_BAI.ClassName + +
    TASK_BAI:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) +

    Instantiates a new TASK_BAI.

    +
    TASK_BAI.TargetSetUnit + +
    + +

    Type TASK_CAS

    + + + + + + + + + + + + + +
    TASK_CAS.ClassName + +
    TASK_CAS:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) +

    Instantiates a new TASK_CAS.

    +
    TASK_CAS.TargetSetUnit + +
    + +

    Type TASK_SEAD

    + + + + + + + + + + + +
    TASK_SEAD.ClassName + +
    TASK_SEAD:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) +

    Instantiates a new TASK_SEAD.

    +
    TASK_SEAD.TargetSetUnit +
    @@ -138,10 +308,54 @@ The TASK_A2G is implemented using a Stat + + +
    +
    + + #TASK_BAI + +TASK_BAI + +
    +
    + + + +
    +
    +
    +
    + + #TASK_CAS + +TASK_CAS + +
    +
    + + + +
    +
    +
    +
    + + #TASK_SEAD + +TASK_SEAD + +
    +
    + + +

    Type Task_A2G

    +

    Type FSM_PROCESS

    +

    Type TASK_A2G

    The TASK_A2G class

    @@ -172,13 +386,127 @@ The TASK_A2G is implemented using a Stat + + +
    +
    + + +TASK_A2G:GetRendezVousPointVec2(TaskUnit) + +
    +
    + + + +

    Parameter

    + +

    Return values

    +
      +
    1. + +

      Core.Point#POINT_VEC2: +The PointVec2 object referencing to the 2D point where the RendezVous point is located on the map.

      + +
    2. +
    3. + +

      #number: +The RendezVousRange that defines when the player is considered to have arrived at the RendezVous point.

      + +
    4. +
    +
    +
    +
    +
    + + +TASK_A2G:GetRendezVousZone(TaskUnit) + +
    +
    + + + +

    Parameter

    + +

    Return value

    + +

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

    + +
    +
    +
    +
    + + +TASK_A2G:GetTargetPointVec2(TaskUnit) + +
    +
    + + + +

    Parameter

    + +

    Return value

    + +

    Core.Point#POINT_VEC2: +The PointVec2 object where the Target is located on the map.

    + +
    +
    +
    +
    + + +TASK_A2G:GetTargetZone(TaskUnit) + +
    +
    + + + +

    Parameter

    + +

    Return value

    + +

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

    +
    -TASK_A2G:New(Mission, SetGroup, TaskName, TaskType, UnitSetTargets, TargetZone, TargetSetUnit, FACUnit) +TASK_A2G:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit, TaskType)
    @@ -206,18 +534,20 @@ The name of the Task.

  • -

    #string TaskType : -BAI or CAS

    - -
  • -
  • -

    Set#SET_UNIT UnitSetTargets :

  • -

    Core.Zone#ZONE_BASE TargetZone :

    +

    #number TargetDistance : +The distance to Target when the Player is considered to have "arrived" at the engagement range.

    + +
  • +
  • + +

    Core.Zone#ZONE_BASE TargetZone : +The target zone, if known. +If the TargetZone parameter is specified, the player will be routed to the center of the zone where all the targets are assumed to be.

  • @@ -227,7 +557,7 @@ BAI or CAS

  • -

    FACUnit :

    +

    TaskType :

  • @@ -236,6 +566,419 @@ BAI or CAS

    #TASK_A2G: self

    +
    +
    +
    +
    + + +TASK_A2G:SetRendezVousPointVec2(RendezVousPointVec2, RendezVousRange, TaskUnit) + +
    +
    + + + +

    Parameters

    +
      +
    • + +

      Core.Point#POINT_VEC2 RendezVousPointVec2 : +The PointVec2 object referencing to the 2D point where the RendezVous point is located on the map.

      + +
    • +
    • + +

      #number RendezVousRange : +The RendezVousRange that defines when the player is considered to have arrived at the RendezVous point.

      + +
    • +
    • + +

      Wrapper.Unit#UNIT TaskUnit :

      + +
    • +
    +
    +
    +
    +
    + + +TASK_A2G:SetRendezVousZone(RendezVousZone, TaskUnit) + +
    +
    + + + +

    Parameters

    + +
    +
    +
    +
    + + +TASK_A2G:SetTargetPointVec2(TargetPointVec2, TaskUnit) + +
    +
    + + + +

    Parameters

    + +
    +
    +
    +
    + + +TASK_A2G:SetTargetZone(TargetZone, TaskUnit) + +
    +
    + + + +

    Parameters

    + +
    +
    +
    +
    + + Set#SET_UNIT + +TASK_A2G.TargetSetUnit + +
    +
    + + + +
    +
    + +

    Type TASK_BAI

    + +

    The TASK_BAI class

    + +

    Field(s)

    +
    +
    + + #string + +TASK_BAI.ClassName + +
    +
    + + + +
    +
    +
    +
    + + +TASK_BAI:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) + +
    +
    + +

    Instantiates a new TASK_BAI.

    + +

    Parameters

    +
      +
    • + +

      Tasking.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.

      + +
    • +
    • + +

      Set#SET_UNIT UnitSetTargets :

      + +
    • +
    • + +

      #number TargetDistance : +The distance to Target when the Player is considered to have "arrived" at the engagement range.

      + +
    • +
    • + +

      Core.Zone#ZONE_BASE TargetZone : +The target zone, if known. +If the TargetZone parameter is specified, the player will be routed to the center of the zone where all the targets are assumed to be.

      + +
    • +
    • + +

      TargetSetUnit :

      + +
    • +
    +

    Return value

    + +

    #TASK_BAI: +self

    + +
    +
    +
    +
    + + Set#SET_UNIT + +TASK_BAI.TargetSetUnit + +
    +
    + + + +
    +
    + +

    Type TASK_CAS

    + +

    The TASK_CAS class

    + +

    Field(s)

    +
    +
    + + #string + +TASK_CAS.ClassName + +
    +
    + + + +
    +
    +
    +
    + + +TASK_CAS:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) + +
    +
    + +

    Instantiates a new TASK_CAS.

    + +

    Parameters

    +
      +
    • + +

      Tasking.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.

      + +
    • +
    • + +

      Set#SET_UNIT UnitSetTargets :

      + +
    • +
    • + +

      #number TargetDistance : +The distance to Target when the Player is considered to have "arrived" at the engagement range.

      + +
    • +
    • + +

      Core.Zone#ZONE_BASE TargetZone : +The target zone, if known. +If the TargetZone parameter is specified, the player will be routed to the center of the zone where all the targets are assumed to be.

      + +
    • +
    • + +

      TargetSetUnit :

      + +
    • +
    +

    Return value

    + +

    #TASK_CAS: +self

    + +
    +
    +
    +
    + + Set#SET_UNIT + +TASK_CAS.TargetSetUnit + +
    +
    + + + +
    +
    + +

    Type TASK_SEAD

    + +

    The TASK_SEAD class

    + +

    Field(s)

    +
    +
    + + #string + +TASK_SEAD.ClassName + +
    +
    + + + +
    +
    +
    +
    + + +TASK_SEAD:New(Mission, SetGroup, TaskName, UnitSetTargets, TargetDistance, TargetZone, TargetSetUnit) + +
    +
    + +

    Instantiates a new TASK_SEAD.

    + +

    Parameters

    +
      +
    • + +

      Tasking.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.

      + +
    • +
    • + +

      Set#SET_UNIT UnitSetTargets :

      + +
    • +
    • + +

      #number TargetDistance : +The distance to Target when the Player is considered to have "arrived" at the engagement range.

      + +
    • +
    • + +

      Core.Zone#ZONE_BASE TargetZone : +The target zone, if known. +If the TargetZone parameter is specified, the player will be routed to the center of the zone where all the targets are assumed to be.

      + +
    • +
    • + +

      TargetSetUnit :

      + +
    • +
    +

    Return value

    + +

    #TASK_SEAD: +self

    + +
    +
    +
    +
    + + Set#SET_UNIT + +TASK_SEAD.TargetSetUnit + +
    +
    + + +
    diff --git a/docs/Documentation/Task_A2G_Dispatcher.html b/docs/Documentation/Task_A2G_Dispatcher.html new file mode 100644 index 000000000..a6b227934 --- /dev/null +++ b/docs/Documentation/Task_A2G_Dispatcher.html @@ -0,0 +1,502 @@ + + + + + + +
    +
    + +
    +
    +
    +
    + +
    +

    Module Task_A2G_Dispatcher

    + +

    Tasking - The TASKA2GDISPATCHER creates and manages player TASK_A2G tasks based on detected targets.

    + + + +
    + +

    1) #TASKA2GDISPATCHER class, extends #DETECTION_MANAGER

    + +

    The #TASKA2GDISPATCHER class implements the dynamic dispatching of tasks upon groups of detected units determined a Set of FAC (groups). +The FAC will detect units, will group them, and will dispatch Tasks to groups. Depending on the type of target detected, different tasks will be dispatched. +Find a summary below describing for which situation a task type is created:

    + +
      +
    • CAS Task: Is created when there are enemy ground units within range of the FAC, while there are friendly units in the FAC perimeter.
    • +
    • BAI Task: Is created when there are enemy ground units within range of the FAC, while there are NO other friendly units within the FAC perimeter.
    • +
    • SEAD Task: Is created when there are enemy ground units wihtin range of the FAC, with air search radars.
    • +
    + +

    Other task types will follow...

    + +

    3.1) TASKA2GDISPATCHER constructor:

    +

    The TASKA2GDISPATCHER.New() method creates a new TASKA2GDISPATCHER instance.

    + +
    + +

    API CHANGE HISTORY

    + +

    The underlying change log documents the API changes. Please read this carefully. The following notation is used:

    + +
      +
    • Added parts are expressed in bold type face.
    • +
    • Removed parts are expressed in italic type face.
    • +
    + +

    Hereby the change log:

    + +

    2017-03-09: Initial class and API.

    + +
    + +

    AUTHORS and CONTRIBUTIONS

    + +

    Contributions:

    + +

    Authors:

    + +
      +
    • FlightControl: Concept, Design & Programming.
    • +
    + + +

    Global(s)

    + + + + + +
    TASK_A2G_DISPATCHER + +
    +

    Type TASK_A2G_DISPATCHER

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    TASK_A2G_DISPATCHER.ClassName + +
    TASK_A2G_DISPATCHER.CommandCenter + +
    TASK_A2G_DISPATCHER.Detection +

    The DETECTION_BASE object that is used to report the detected objects.

    +
    TASK_A2G_DISPATCHER:EvaluateBAI(DetectedArea, FriendlyCoalition) +

    Creates a BAI task when there are targets for it.

    +
    TASK_A2G_DISPATCHER:EvaluateCAS(DetectedArea) +

    Creates a CAS task when there are targets for it.

    +
    TASK_A2G_DISPATCHER:EvaluateRemoveTask(Mission, Task, DetectedItem) +

    Evaluates the removal of the Task from the Mission.

    +
    TASK_A2G_DISPATCHER:EvaluateSEAD(DetectedItem) +

    Creates a SEAD task when there are targets for it.

    +
    TASK_A2G_DISPATCHER.Mission + +
    TASK_A2G_DISPATCHER:New(SetGroup, Detection, Mission, CommandCenter) +

    TASKA2GDISPATCHER constructor.

    +
    TASK_A2G_DISPATCHER:ProcessDetected(Detection) +

    Assigns tasks in relation to the detected items to the Set#SET_GROUP.

    +
    TASK_A2G_DISPATCHER.SetGroup +

    The groups to which the FAC will report to.

    +
    + +

    Global(s)

    +
    +
    + + #TASK_A2G_DISPATCHER + +TASK_A2G_DISPATCHER + +
    +
    + + + +
    +
    +

    Type Task_A2G_Dispatcher

    + +

    Type TASK_A2G_DISPATCHER

    + +

    TASKA2GDISPATCHER class.

    + +

    Field(s)

    +
    +
    + + #string + +TASK_A2G_DISPATCHER.ClassName + +
    +
    + + + +
    +
    +
    +
    + + Wrapper.Group#GROUP + +TASK_A2G_DISPATCHER.CommandCenter + +
    +
    + + + +
    +
    +
    +
    + + Functional.Detection#DETECTION_BASE + +TASK_A2G_DISPATCHER.Detection + +
    +
    + +

    The DETECTION_BASE object that is used to report the detected objects.

    + +
    +
    +
    +
    + + +TASK_A2G_DISPATCHER:EvaluateBAI(DetectedArea, FriendlyCoalition) + +
    +
    + +

    Creates a BAI task when there are targets for it.

    + +

    Parameters

    + +

    Return value

    + +

    Tasking.Task#TASK:

    + + +
    +
    +
    +
    + + +TASK_A2G_DISPATCHER:EvaluateCAS(DetectedArea) + +
    +
    + +

    Creates a CAS task when there are targets for it.

    + +

    Parameter

    + +

    Return value

    + +

    Tasking.Task#TASK:

    + + +
    +
    +
    +
    + + +TASK_A2G_DISPATCHER:EvaluateRemoveTask(Mission, Task, DetectedItem) + +
    +
    + +

    Evaluates the removal of the Task from the Mission.

    + + +

    Can only occur when the DetectedArea is Changed AND the state of the Task is "Planned".

    + +

    Parameters

    + +

    Return value

    + +

    Tasking.Task#TASK:

    + + +
    +
    +
    +
    + + +TASK_A2G_DISPATCHER:EvaluateSEAD(DetectedItem) + +
    +
    + +

    Creates a SEAD task when there are targets for it.

    + +

    Parameter

    + +

    Return values

    +
      +
    1. + +

      Set#SET_UNIT: +TargetSetUnit: The target set of units.

      + +
    2. +
    3. + +

      #nil: +If there are no targets to be set.

      + +
    4. +
    +
    +
    +
    +
    + + Tasking.Mission#MISSION + +TASK_A2G_DISPATCHER.Mission + +
    +
    + + + +
    +
    +
    +
    + + +TASK_A2G_DISPATCHER:New(SetGroup, Detection, Mission, CommandCenter) + +
    +
    + +

    TASKA2GDISPATCHER constructor.

    + +

    Parameters

    + +

    Return value

    + +

    #TASKA2GDISPATCHER: +self

    + +
    +
    +
    +
    + + +TASK_A2G_DISPATCHER:ProcessDetected(Detection) + +
    +
    + +

    Assigns tasks in relation to the detected items to the Set#SET_GROUP.

    + +

    Parameter

    + +

    Return value

    + +

    #boolean: +Return true if you want the task assigning to continue... false will cancel the loop.

    + +
    +
    +
    +
    + + Set#SET_GROUP + +TASK_A2G_DISPATCHER.SetGroup + +
    +
    + +

    The groups to which the FAC will report to.

    + +
    +
    + +
    + +
    + + diff --git a/docs/Documentation/Task_PICKUP.html b/docs/Documentation/Task_PICKUP.html index 16565d8d4..3cd5f394a 100644 --- a/docs/Documentation/Task_PICKUP.html +++ b/docs/Documentation/Task_PICKUP.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Unit.html b/docs/Documentation/Unit.html index 27a770ddb..10e57e762 100644 --- a/docs/Documentation/Unit.html +++ b/docs/Documentation/Unit.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Utils.html b/docs/Documentation/Utils.html index 86500945d..ca23f3aa4 100644 --- a/docs/Documentation/Utils.html +++ b/docs/Documentation/Utils.html @@ -61,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • diff --git a/docs/Documentation/Zone.html b/docs/Documentation/Zone.html index aa6a657fb..7931424c8 100644 --- a/docs/Documentation/Zone.html +++ b/docs/Documentation/Zone.html @@ -50,6 +50,7 @@
  • Process_JTAC
  • Process_Pickup
  • Route
  • +
  • Scenery
  • ScheduleDispatcher
  • Scheduler
  • Scoring
  • @@ -60,8 +61,8 @@
  • Static
  • Task
  • Task_A2G
  • +
  • Task_A2G_Dispatcher
  • Task_PICKUP
  • -
  • Task_SEAD
  • Unit
  • Utils
  • Zone
  • @@ -71,18 +72,14 @@

    Module Zone

    -<<<<<<< HEAD -

    This module contains the ZONE classes, inherited from Zone#ZONE_BASE.

    - - -=======

    Core - ZONE classes define zones within your mission of various forms, with various capabilities.

    +

    Banner Image

    +
    ->>>>>>> refs/remotes/origin/master

    There are essentially two core functions that zones accomodate: