Packageorg.goasap.managers
Classpublic class OverlapMonitor
ImplementsIManager

Calls releaseHandling() on currently-active items when property-handling overlap is detected (like two tweens trying to set the same sprite's x property), as new items are added to GoEngine.

To activate this manager call the following line one time:

GoEngine.addManager( new OverlapMonitor() );
{In the game of Go, a superko is a rule that prevents a potentially infinite competition - ko - over the same space.}

See also

IManager
IManageable
GoEngine


Protected Properties
 PropertyDefined by
  counts : Dictionary
Tracks subdictionary lengths.
OverlapMonitor
  handlers : Dictionary
A set of Dictionaries by target object.
OverlapMonitor
Public Methods
 MethodDefined by
  
release(handler:IManageable):void
Releases an IManageable from being monitored.
OverlapMonitor
  
reserve(handler:IManageable):void
Sets an IManageable as reserving its target/property combinations.
OverlapMonitor
Property detail
countsproperty
protected var counts:Dictionary

Tracks subdictionary lengths.

handlersproperty 
protected var handlers:Dictionary

A set of Dictionaries by target object. Targets are indexed because they are the primary point of overlap to check first.

Method detail
release()method
public function release(handler:IManageable):void

Releases an IManageable from being monitored. Does not call releaseHandling() on instances, since this method is called after an instance has already removed itself from the engine.

Parameters
handler:IManageable — The IManageable to remove from internal lists.
reserve()method 
public function reserve(handler:IManageable):void

Sets an IManageable as reserving its target/property combinations.

Parameters
handler:IManageable — IManageable to reserve