| Package | org.goasap.interfaces |
| Interface | public interface IManageable extends IUpdatable |
The Go system decouples manager classes so they remain compile- optional for the end user, who must explicitly register an instance of each desired manager for use with GoEngine. To uphold this system it is extremely important that item classes do not import or make direct reference to specific manager classes. If you need to make a reference to a manager from any item class, datatype to manager interfaces like IManager, not manager classes like OverlapMonitor.
See also
| Method | Defined by | ||
|---|---|---|---|
|
getActiveProperties():Array
IManageable requirement.
| IManageable | ||
|
getActiveTargets():Array
IManageable requirement.
| IManageable | ||
|
isHandling(properties:Array):Boolean
IManageable requirement:
Return true if any of the property strings passed in overlap with any
properties being actively handled.
| IManageable | ||
|
releaseHandling(... params):void
IManageable requirement: Normally this method should stop the instance.
| IManageable | ||
![]() |
update(currentTime:Number):void
Perform updates on a pulse.
| IUpdatable | |
| getActiveProperties | () | method |
public function getActiveProperties():ArrayIManageable requirement.
This list is often passed to the isHandling method of other active
IManageable items. DO NOT return all properties the item handles in general,
only ones the instance is currently tweening or setting. The list can include
any custom property names the item defines.
Array — All property-strings currently being handled.
|
| getActiveTargets | () | method |
public function getActiveTargets():ArrayIManageable requirement.
ReturnsArray — All animation targets currently being handled.
|
| isHandling | () | method |
public function isHandling(properties:Array):BooleanIManageable requirement: Return true if any of the property strings passed in overlap with any properties being actively handled.
Direct matching:
First and foremost, test for a direct match with al properties the item
is currently handling on all targets. For example, if the item is actively
setting a 'width' property on any of its animation targets:
if (properties.indexOf("width")>-1) return true;
Indirect matching:
You must be sure to check for indirect, as well as direct matches. This is very important and can at times require some creative thought on your part. Try to keep isHandling code effiecient to reduce processing and filesize across batches of items.
properties:Array — A list of properties to test for active overlap.
|
Boolean — Whether any active overlap occurred with any property passed in.
|
| releaseHandling | () | method |
public function releaseHandling(... params):voidIManageable requirement: Normally this method should stop the instance.
Parameters... params — Gives more complex managers leeway to send additional information
like specific targets or properties to release, etc.
|