public class ParticleEffectPool extends Pool<ParticleEffectPool.PooledEffect>
| Modifier and Type | Class and Description |
|---|---|
class |
ParticleEffectPool.PooledEffect |
Pool.Poolable| Constructor and Description |
|---|
ParticleEffectPool(ParticleEffect effect,
int initialCapacity,
int max) |
| Modifier and Type | Method and Description |
|---|---|
void |
free(ParticleEffectPool.PooledEffect effect)
Puts the specified object in the pool, making it eligible to be returned by
Pool.obtain(). |
public ParticleEffectPool(ParticleEffect effect, int initialCapacity, int max)
public void free(ParticleEffectPool.PooledEffect effect)
PoolPool.obtain(). If the pool already contains
Pool.max free objects, the specified object is discarded and not added to the pool.
The pool does not check if an object is already freed, so the same object must not be freed multiple times.
free in class Pool<ParticleEffectPool.PooledEffect>Copyright © 2021. All rights reserved.