#include <fxPool.h>
Creation methods | |
| Since this is a singlton, we use an instance for all our calls. | |
| CFxPool () | |
| Do not call directly, use instance. | |
| static CFxPool * | instance () |
| Get a pointer to singleton. | |
| ~CFxPool () | |
Public Member Functions | |
| int | update () |
| Update one frame. | |
Add methods | |
| bool | add (CFx *pFx) |
| Add an FX. | |
Setting methods | |
| int | size () |
| Get the size. | |
| int | count () |
| Get the ENTITY* count. | |
| void | clear () |
| Clear out array. | |
Static Public Attributes | |
| static const int | kDefaultSize = 50 |
| Default starting size of pool. | |
Used to manage semi-static effects (bullet holes, gun brass, etc.) and ...
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
| bool CFxPool::add | ( | CFx * | pFx | ) |
Add an FX.
| pFx | Pointer to the FX to add. |
| int CFxPool::size | ( | ) |
Get the size.
| int CFxPool::count | ( | ) |
Get the ENTITY* count.
| int CFxPool::update | ( | ) |
Update one frame.
1.5.4