#include <fxBatch.h>
Enum data | |
| enum | eType { kFXNone = 0, kFXHole = 1, kFXSpark1, kFXSpark2, kFXSmoke, kFXBeam, kFXTracer, kFXMuzzleFlash1, kFXMuzzleFlash2, kFXBrassEject1, kFXBrassEject2 } |
| FX type enums. More... | |
| static eType | string_to_eType (const char *str) |
| Get CFxBatch eType from a string value. | |
Play methods | |
| bool | play (const CVector3D &vPos, const CVector3D &vVel) const |
| Play all the effects stored in this batch. | |
Public Member Functions | |
Create methods | |
| CFxBatch () | |
| CFxBatch (eType type, int num=-1) | |
Add methods | |
| bool | add (eType type, int num=-1) |
| Add an FX. | |
Misc methods | |
| bool | is_empty () const |
| |
| int | size () const |
| |
Preform one or more effects when played.
(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.
| enum CFxBatch::eType |
FX type enums.
| CFxBatch::eType CFxBatch::string_to_eType | ( | const char * | str | ) | [static] |
Get CFxBatch eType from a string value.
| str | String containing eType name. |
| bool CFxBatch::add | ( | eType | type, | |
| int | num = -1 | |||
| ) |
Add an FX.
| type | Type of effect. | |
| num | Number of particles (-1 to use default). |
Play all the effects stored in this batch.
| vPos | Postion vector. | |
| vVel | Velocity vector (or length, orientation, color, etc.) |
1.5.4