CFxPool Class Reference

Effects Pool. More...

#include <fxPool.h>

List of all members.

Creation methods

Since this is a singlton, we use an instance for all our calls.

 CFxPool ()
 Do not call directly, use instance.
static CFxPoolinstance ()
 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.


Detailed Description

Effects 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.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Member Function Documentation

bool CFxPool::add ( CFx pFx  ) 

Add an FX.

Parameters:
pFx Pointer to the FX to add.
Returns:
false if FX could not be added.

int CFxPool::size (  ) 

Get the size.

Returns:
Size of pool

int CFxPool::count (  ) 

Get the ENTITY* count.

Returns:
Number of valid ENTITY*

int CFxPool::update (  ) 

Update one frame.

Returns:
Number of items updated.


The documentation for this class was generated from the following files:
Generated on Fri Dec 28 12:55:07 2007 for template7 by  doxygen 1.5.4