Packagecom.divillysausages.gameobjeditor.component
Classpublic class ComponentFactory
InheritanceComponentFactory Inheritance Object

The ComponentFactory will give us a component based on the type of variable we're looking at



Public Methods
 MethodDefined By
  
getComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0):GOEComponent
[static] Creates a new GOEComponent based on the type of variable that's passed in
ComponentFactory
Method Detail
getComponent()method
public static function getComponent(obj:*, variable:EditableVar, parent:DisplayObjectContainer = null, x:Number = 0.0, y:Number = 0.0):GOEComponent

Creates a new GOEComponent based on the type of variable that's passed in

Parameters

obj:* — The object that we're dealing with
 
variable:EditableVar — The EditableVar object that holds our variable info
 
parent:DisplayObjectContainer (default = null) — The DisplayObjectContainer to add this component to
 
x:Number (default = 0.0) — The component x position
 
y:Number (default = 0.0) — The component y position

Returns
GOEComponent — The GOEComponent that was created for this variable, or null if we couldn't find a component for the type