Package | com.fileitup.fisixengine.primitives |
Class | public class FisixContainer |
Implements | EngineObject |
Subclasses | CircleContainer, WheelContainer |
//create the engine var myEngine:FisixEngine = new FisixEngine() var myContainer:CircleContainer = myEngine.newCircleContainer(200,200,100) myContainer.objects.newCircleParticle(100,150,10)
See also
Property | Defined by | ||
---|---|---|---|
collisionObject : CollisionObject
The Primitive used as the container
| FisixContainer | ||
innerDynamics : Boolean = true
A value specifying whether or not the movement of the objects inside the container affect the container's movement.
| FisixContainer | ||
objects : FisixObject
A FisixObject which holds all the objects within the container.
| FisixContainer | ||
parent : FisixObject
The FisixObject to which the Container belongs
| FisixContainer |
Method | Defined by | ||
---|---|---|---|
FisixContainer(obj:CollisionObject, innerDyn:Boolean = true)
Creates a FisixContainer.
| FisixContainer | ||
dispose():void
Cleans the object so that it may be picked up by the garbage collector.
| FisixContainer | ||
integrate(dt:Number = 1):void
Integrates all the objects within the container.
| FisixContainer | ||
render(g:Graphics):void
Renders all the objects within the container to the given Graphics object
| FisixContainer | ||
solveContainment(noDynamics:Boolean = false):void
Solves collisions between the inner objects and the container.
| FisixContainer | ||
unload():void
Removes the container from the FisixObject it belongs to, and disposes of it.
| FisixContainer |
collisionObject | property |
public var collisionObject:CollisionObject
The Primitive used as the container
innerDynamics | property |
public var innerDynamics:Boolean = true
A value specifying whether or not the movement of the objects inside the container affect the container's movement.
objects | property |
public var objects:FisixObject
A FisixObject which holds all the objects within the container. To add objects to the container, use this property.
parent | property |
public var parent:FisixObject
The FisixObject to which the Container belongs
FisixContainer | () | constructor |
public function FisixContainer(obj:CollisionObject, innerDyn:Boolean = true)
Creates a FisixContainer. This class should never be instanciated and added to the engine. It is only extended by other containers.
Parametersobj:CollisionObject |
|
innerDyn:Boolean (default = true )
|
See also
dispose | () | method |
public function dispose():void
Cleans the object so that it may be picked up by the garbage collector. To avoid errors, do not call this method before removing the object from the engine, or simply use unload()
See also
integrate | () | method |
public function integrate(dt:Number = 1):void
Integrates all the objects within the container. This method is called by the engine at the appropriate time, and should not be called manually.
Parametersdt:Number (default = 1 )
|
render | () | method |
public function render(g:Graphics):void
Renders all the objects within the container to the given Graphics object
Parametersg:Graphics |
solveContainment | () | method |
public function solveContainment(noDynamics:Boolean = false):void
Solves collisions between the inner objects and the container. This method is called by the engine at the appropriate time, and should not be called manually.
ParametersnoDynamics:Boolean (default = false )
|
unload | () | method |
public function unload():void
Removes the container from the FisixObject it belongs to, and disposes of it. This is the method that should be used when you are done with the container.