First Commit

This commit is contained in:
svenvandevelde
2015-10-25 10:40:52 +01:00
parent c5577d7d05
commit 10341b7045
31 changed files with 8201 additions and 0 deletions

28
NoTask.lua Normal file
View File

@@ -0,0 +1,28 @@
--- A NOTASK is a dummy activity... But it will show a Mission Briefing...
-- @classmod NOTASK
Include.File("Task")
--- Modeling a sequence of STAGEs to do nothing, but wait for the mission goal.
NOTASK = {
ClassName = "NOTASK",
}
--- Creates a new NOTASK.
function NOTASK:New()
trace.f(self.ClassName)
-- Child holds the inherited instance of the PICKUPTASK Class to the BASE class.
local Child = BASE:Inherit( self, TASK:New() )
local Valid = true
if Valid then
Child.Name = 'Nothing'
Child.TaskBriefing = "Task: Execute your mission."
Child.Stages = { STAGEBRIEF:New(), STAGESTART:New(), STAGEDONE:New() }
Child.SetStage( Child, 1 )
end
return Child
end