Namespace cc.pool
- Defined in: CCPool.js
Method Summary
Method Detail
-
drainAllPools()remove all objs in pool and reset the pool
-
{*} getFromPool(args)Get the obj from pool
- Parameters:
- args
- Returns:
- {*} call the reuse function an return the obj
-
{boolean} hasObj(objClass)Check if this kind of obj has already in pool
- Parameters:
- objClass
- Returns:
- {boolean} if this kind of obj is already in pool return true,else return false;
-
putInPool(obj)Put the obj in pool
- Parameters:
- obj
-
removeObj(obj)Remove the obj if you want to delete it;
- Parameters:
- obj