Packagecom.godpaper.as3.model.pools
Classpublic class RedChessPiecesPool
InheritanceRedChessPiecesPool Inheritance Object

Reusing objects reduces the need to instantiate objects, which can be expensive. It also reduces the chances of the garbage collector running, which can slow down your application. The following code illustrates the object pooling technique:

See also

http://help.adobe.com/en_US/as3/mobile/WS948100b6829bd5a6-19cd3c2412513c24bce-8000.html
http://en.wikipedia.org/wiki/Object_pool_pattern


Public Properties
 PropertyDefined By
  initialized : Boolean
[static] [read-only]
RedChessPiecesPool
Public Methods
 MethodDefined By
  
dispose(disposed:ChessPiece):void
[static]
RedChessPiecesPool
  
[static]
RedChessPiecesPool
  
initialize(maxPoolSize:uint, growthValue:uint):void
[static]
RedChessPiecesPool
Property Detail
initializedproperty
initialized:Boolean  [read-only]


Implementation
    public static function get initialized():Boolean
Method Detail
dispose()method
public static function dispose(disposed:ChessPiece):void

Parameters

disposed:ChessPiece

get()method 
public static function get():ChessPiece

Returns
ChessPiece
initialize()method 
public static function initialize(maxPoolSize:uint, growthValue:uint):void

Parameters

maxPoolSize:uint
 
growthValue:uint