Class TASK
The TASK Classes define major end-to-end activities within a MISSION.
The TASK Class is the Master Class to orchestrate these activities. From this class, many concrete TASK classes are inherited.
Methods
| TASK:New () | Instantiates a new TASK Base. |
| TASK:GetGoalProgress () | Get progress of a TASK. |
| TASK:ShowGoalProgress (Mission, Client) | Show progress of a TASK. |
| TASK:Done () | Sets a TASK to status Done. |
| TASK:IsDone () | Returns if a TASK is done. |
| TASK:Failed () | Sets a TASK to status failed. |
| TASK:IsFailed () | Returns if a TASk has failed. |
| TASK:GetGoals () | Returns the Goals of a TASK |
| TASK:Goal (GoalVerb) | Returns if a TASK has Goal(s). |
| TASK:SetGoalTotal (GoalTotal, GoalVerb) | Sets the total Goals to be achieved of the Goal Name |
| TASK:GetGoalTotal (GoalVerb) | Gets the total of Goals to be achieved within the TASK of the GoalVerb. |
| TASK:SetGoalCount (GoalCount, GoalVerb) | Sets the total of Goals currently achieved within the TASK of the GoalVerb. |
| TASK:IncreaseGoalCount (GoalCountIncrease, GoalVerb) | Increments the total of Goals currently achieved within the TASK of the GoalVerb, with the given GoalCountIncrease. |
| TASK:GetGoalCount (GoalVerb) | Gets the total of Goals currently achieved within the TASK of the GoalVerb. |
| TASK:GetGoalPercentage (GoalVerb) | Gets the percentage of Goals currently achieved within the TASK of the GoalVerb. |
| TASK:IsGoalReached () | Returns if all the Goals of the TASK were achieved. |
| TASK:AddGoalCompletion (GoalVerb, GoalTask, GoalIncrease) | Adds an Additional Goal for the TASK to be achieved. |
| TASK:GetGoalCompletion (GoalVerb) | Returns if the additional Goal for the TASK was completed. |
| TASK:AddSignal (SignalUnitNames, SignalType, SignalColor, SignalHeight) | Work function to set signal events within a TASK. |
| TASK:AddSmokeRed (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a RED SMOKE will be fired by an optional SignalUnitNames. |
| TASK:AddSmokeGreen (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a GREEN SMOKE will be fired by an optional SignalUnitNames. |
| TASK:AddSmokeBlue (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a BLUE SMOKE will be fired by an optional SignalUnitNames. |
| TASK:AddSmokeWhite (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a WHITE SMOKE will be fired by an optional SignalUnitNames. |
| TASK:AddSmokeOrange (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, an ORANGE SMOKE will be fired by an optional SignalUnitNames. |
| TASK:AddFlareRed (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a RED FLARE will be fired by an optional SignalUnitNames. |
| TASK:AddFlareGreen (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a GREEN FLARE will be fired by an optional SignalUnitNames. |
| TASK:AddFlareBlue (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a BLUE FLARE will be fired by an optional SignalUnitNames. |
| TASK:AddFlareWhite (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, a WHITE FLARE will be fired by an optional SignalUnitNames. |
| TASK:AddFlareOrange (SignalUnitNames, SignalHeight) | When the CLIENT is approaching the landing zone, an ORANGE FLARE will be fired by an optional SignalUnitNames. |
Methods
- TASK:New ()
-
Instantiates a new TASK Base. Should never be used. Interface Class.
Returns:
- TASK:GetGoalProgress ()
-
Get progress of a TASK.
Returns:
-
string
GoalsText
- TASK:ShowGoalProgress (Mission, Client)
-
Show progress of a TASK.
Parameters:
- TASK:Done ()
- Sets a TASK to status Done.
- TASK:IsDone ()
-
Returns if a TASK is done.
Returns:
-
bool
- TASK:Failed ()
- Sets a TASK to status failed.
- TASK:IsFailed ()
-
Returns if a TASk has failed.
Returns:
-
bool
- TASK:GetGoals ()
-
Returns the Goals of a TASK
Returns:
-
Goals
- TASK:Goal (GoalVerb)
-
Returns if a TASK has Goal(s).
Parameters:
- GoalVerb optional string is the name of the Goal of the TASK.
Returns:
-
bool
- TASK:SetGoalTotal (GoalTotal, GoalVerb)
-
Sets the total Goals to be achieved of the Goal Name
Parameters:
- GoalTotal number is the number of times the GoalVerb needs to be achieved.
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
- TASK:GetGoalTotal (GoalVerb)
-
Gets the total of Goals to be achieved within the TASK of the GoalVerb.
Parameters:
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
- TASK:SetGoalCount (GoalCount, GoalVerb)
-
Sets the total of Goals currently achieved within the TASK of the GoalVerb.
Parameters:
- GoalCount number is the total number of Goals achieved within the TASK.
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
Returns:
- TASK:IncreaseGoalCount (GoalCountIncrease, GoalVerb)
-
Increments the total of Goals currently achieved within the TASK of the GoalVerb, with the given GoalCountIncrease.
Parameters:
- GoalCountIncrease number is the number of new Goals achieved within the TASK.
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
Returns:
- TASK:GetGoalCount (GoalVerb)
-
Gets the total of Goals currently achieved within the TASK of the GoalVerb.
Parameters:
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
Returns:
- TASK:GetGoalPercentage (GoalVerb)
-
Gets the percentage of Goals currently achieved within the TASK of the GoalVerb.
Parameters:
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
Returns:
- TASK:IsGoalReached ()
-
Returns if all the Goals of the TASK were achieved.
Returns:
-
bool
- TASK:AddGoalCompletion (GoalVerb, GoalTask, GoalIncrease)
-
Adds an Additional Goal for the TASK to be achieved.
Parameters:
- TASK:GetGoalCompletion (GoalVerb)
-
Returns if the additional Goal for the TASK was completed.
Parameters:
- GoalVerb optional string is the name of the Goal of the TASK. If the GoalVerb is not given, then the default TASK Goals will be used.
Returns:
-
string
Goals
- TASK:AddSignal (SignalUnitNames, SignalType, SignalColor, SignalHeight)
-
Work function to set signal events within a TASK.
Parameters:
- SignalUnitNames
- SignalType
- SignalColor
- SignalHeight
- TASK:AddSmokeRed (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a RED SMOKE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddSmokeGreen (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a GREEN SMOKE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddSmokeBlue (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a BLUE SMOKE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddSmokeWhite (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a WHITE SMOKE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddSmokeOrange (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, an ORANGE SMOKE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddFlareRed (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a RED FLARE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddFlareGreen (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a GREEN FLARE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddFlareBlue (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a BLUE FLARE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddFlareWhite (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, a WHITE FLARE will be fired by an optional SignalUnitNames.
Parameters:
- TASK:AddFlareOrange (SignalUnitNames, SignalHeight)
-
When the CLIENT is approaching the landing zone, an ORANGE FLARE will be fired by an optional SignalUnitNames.
Parameters: