mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Introduction of Zone goal classes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
--- **Core** -- Base class that models processes to achieve goals.
|
||||
--- **Core (WIP)** -- Base class to allow the modeling of processes to achieve Goals.
|
||||
--
|
||||
-- ====
|
||||
--
|
||||
@@ -30,15 +30,12 @@ do -- Goal
|
||||
--
|
||||
-- ### 2.1 GOAL States
|
||||
--
|
||||
-- * **Off**: The goal is not timely measured.
|
||||
-- * **On**: The goal is timely being measured.
|
||||
-- * **Achieved**: The objective is achieved.
|
||||
-- * **Pending**: The goal object is in progress.
|
||||
-- * **Achieved**: The goal objective is Achieved.
|
||||
--
|
||||
-- ### 2.2 GOAL Events
|
||||
--
|
||||
-- * **@{#GOAL.Start}()**: Start Measuring the Goal.
|
||||
-- * **@{#GOAL.Stop}()**: Stop Measuring the Goal.
|
||||
-- * **@{#GOAL.IsAchieved}()**: Check if the Goal is Achieved.
|
||||
-- * **Achieved**: Set the goal objective to Achieved.
|
||||
--
|
||||
-- @field #GOAL
|
||||
GOAL = {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--- **Functional** -- Base class that models processes to capture a Zone for a Coalition, guarded by another Coalition.
|
||||
--- **Functional (wIP)** -- Base class that models processes to capture a Zone for a Coalition, guarded by another Coalition.
|
||||
--
|
||||
-- ====
|
||||
--
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
--- **Functional** -- Base class that models processes to achieve goals involving a Zone.
|
||||
--- **Functional (WIP)** -- Base class that models processes to achieve goals involving a Zone.
|
||||
--
|
||||
-- ====
|
||||
--
|
||||
-- ZONE_GOAL models processes that have an objective with a defined achievement involving a Zone. Derived classes implement the ways how the achievements can be realized.
|
||||
-- ZONE_GOAL models processes that have a Goal with a defined achievement involving a Zone.
|
||||
-- Derived classes implement the ways how the achievements can be realized.
|
||||
--
|
||||
-- ====
|
||||
--
|
||||
@@ -20,7 +21,8 @@ do -- Zone
|
||||
|
||||
--- # ZONE_GOAL class, extends @{Fsm#FSM}
|
||||
--
|
||||
-- ZONE_GOAL models processes that have an objective with a defined achievement involving a Zone. Derived classes implement the ways how the achievements can be realized.
|
||||
-- ZONE_GOAL models processes that have a Goal with a defined achievement involving a Zone.
|
||||
-- Derived classes implement the ways how the achievements can be realized.
|
||||
--
|
||||
-- ## 1. ZONE_GOAL constructor
|
||||
--
|
||||
@@ -30,13 +32,11 @@ do -- Zone
|
||||
--
|
||||
-- ### 2.1 ZONE_GOAL States
|
||||
--
|
||||
-- * **Empty**: The Zone is Empty.
|
||||
-- * **Guarded**: The Zone is Guarded.
|
||||
-- * None: Initial State
|
||||
--
|
||||
-- ### 2.2 ZONE_GOAL Events
|
||||
--
|
||||
-- * **@{#ZONE_GOAL.Guard}()**: Set the Zone to Guarded.
|
||||
-- * **@{#ZONE_GOAL.Empty}()**: Set the Zone to Empty.
|
||||
-- * DestroyedUnit: A @{Unit} is destroyed in the Zone. The event will only get triggered if the method @{#ZONE_GOAL.MonitorDestroyedUnits}() is used.
|
||||
--
|
||||
-- @field #ZONE_GOAL
|
||||
ZONE_GOAL = {
|
||||
@@ -57,7 +57,6 @@ do -- Zone
|
||||
|
||||
self.SmokeTime = nil
|
||||
|
||||
|
||||
self:AddTransition( "*", "DestroyedUnit", "*" )
|
||||
|
||||
--- DestroyedUnit Handler OnAfter for ZONE_GOAL
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--- **Functional** -- Base class that models processes to achieve goals involving a Zone for a Coalition.
|
||||
--- **Functional (WIP)** -- Base class that models processes to achieve goals involving a Zone for a Coalition.
|
||||
--
|
||||
-- ====
|
||||
--
|
||||
@@ -46,12 +46,6 @@ do -- ZoneGoal
|
||||
--
|
||||
-- ### 2.3 ZONE_GOAL_COALITION State Machine
|
||||
--
|
||||
--
|
||||
--
|
||||
-- Hello | World
|
||||
-- ------|------
|
||||
-- Test|Test2
|
||||
--
|
||||
-- @field #ZONE_GOAL_COALITION
|
||||
ZONE_GOAL_COALITION = {
|
||||
ClassName = "ZONE_GOAL_COALITION",
|
||||
|
||||
Reference in New Issue
Block a user