SuperTuxKart
|
type of particles More...
#include <particle_kind.hpp>
Public Member Functions | |
ParticleKind (const std::string &file) | |
Load a XML file describing a type of particles. | |
float | getMaxSize () const |
float | getMinSize () const |
int | getMinRate () const |
int | getMaxRate () const |
EmitterShape | getShape () const |
Material * | getMaterial () const |
int | getMaxLifetime () const |
int | getMinLifetime () const |
int | getFadeoutTime () const |
video::SColor | getMinColor () const |
video::SColor | getMaxColor () const |
float | getBoxSizeX () const |
float | getBoxSizeY () const |
float | getBoxSizeZ () const |
float | getSphereRadius () const |
int | getAngleSpread () const |
float | getVelocityX () const |
float | getVelocityY () const |
float | getVelocityZ () const |
void | setBoxSizeXZ (float x, float z) |
int | getEmissionDecayRate () const |
bool | hasScaleAffector () const |
float | getScaleAffectorFactorX () const |
float | getScaleAffectorFactorY () const |
bool | getFlips () const |
bool | isVerticalParticles () const |
bool | randomizeInitialY () const |
const std::string & | getName () const |
type of particles
ParticleKind::ParticleKind | ( | const std::string & | file | ) |
Load a XML file describing a type of particles.
file | Name of the file to load (no full path) |
std::runtime_error | If the file cannot be found or is heavily malformed |