| Package | org.goasap.managers |
| Class | public class OverlapMonitor |
| Implements | IManager |
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
| Property | Defined by | ||
|---|---|---|---|
| counts : Dictionary
Tracks subdictionary lengths.
| OverlapMonitor | ||
| handlers : Dictionary
A set of Dictionaries by target object.
| OverlapMonitor | ||
| Method | Defined 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 | ||
| counts | property |
protected var counts:DictionaryTracks subdictionary lengths.
| handlers | property |
protected var handlers:DictionaryA set of Dictionaries by target object. Targets are indexed because they are the primary point of overlap to check first.
| release | () | method |
public function release(handler:IManageable):voidReleases 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.
Parametershandler:IManageable — The IManageable to remove from internal lists.
|
| reserve | () | method |
public function reserve(handler:IManageable):voidSets an IManageable as reserving its target/property combinations.
Parametershandler:IManageable — IManageable to reserve
|