Class BASE
+BASE The base class for all the classes defined within MOOSE.
++ +
+Info:
+-
+
- Author: Flightcontrol +
Methods
+| BASE:New () | +The base constructor. | +
| BASE:Inherit (Child, Parent) | +This is the worker method to inherit from a parent class. | +
| BASE:Inherited (Child) | +This is the worker method to retrieve the Parent class. | +
+
+ + +
Methods
+ +-
+
- + + BASE:New () + +
-
+ The base constructor. This is the top top class of all classed defined within the MOOSE.
+ Any new class needs to be derived from this class for proper inheritance.
+
+
+
+
Returns:
+-
+
+ BASE
+
+
+
+
Usage:
+-
+
+ function TASK:New() + trace.f(self.ClassName) + + local self = BASE:Inherit( self, BASE:New() ) + + -- assign Task default values during construction + self.TaskBriefing = "Task: No Task." + self.Time = timer.getTime() + self.ExecuteStage = _TransportExecuteStage.NONE + + return self + end
+ + +
+ - + + BASE:Inherit (Child, Parent) + +
-
+ This is the worker method to inherit from a parent class.
+
+
+
Parameters:
+-
+
- Child + is the Child class that inherits. + +
- Parent + is the Parent class that the Child inherits from. + +
Returns:
+-
+
+ Child
+
+ - + + BASE:Inherited (Child) + +
-
+ This is the worker method to retrieve the Parent class.
+
+
+
Parameters:
+-
+
- Child + BASE + is the Child class from which the Parent class needs to be retrieved. + +
Returns:
+-
+
+ Parent
+
+
+
+
+