19#ifndef HEADER_PARTICLE_KIND_HPP
20#define HEADER_PARTICLE_KIND_HPP
22#include "utils/no_copy.hpp"
69 video::SColor m_min_start_color;
70 video::SColor m_max_start_color;
78 int m_emission_decay_rate;
84 std::string m_material_file;
86 bool m_has_scale_affector;
87 float m_scale_affector_factor_x;
88 float m_scale_affector_factor_y;
108 float getMaxSize ()
const {
return m_max_size; }
109 float getMinSize ()
const {
return m_min_size; }
111 int getMinRate ()
const {
return m_min_rate; }
112 int getMaxRate ()
const {
return m_max_rate; }
114 EmitterShape getShape ()
const {
return m_shape; }
118 int getMaxLifetime ()
const {
return m_lifetime_max; }
119 int getMinLifetime ()
const {
return m_lifetime_min; }
121 int getFadeoutTime ()
const {
return m_fadeout_time; }
123 video::SColor getMinColor()
const {
return m_min_start_color; }
124 video::SColor getMaxColor()
const {
return m_max_start_color; }
126 float getBoxSizeX ()
const {
return m_box_x; }
127 float getBoxSizeY ()
const {
return m_box_y; }
128 float getBoxSizeZ ()
const {
return m_box_z; }
132 int getAngleSpread ()
const {
return m_angle_spread; }
134 float getVelocityX ()
const {
return m_velocity_x; }
135 float getVelocityY ()
const {
return m_velocity_y; }
136 float getVelocityZ ()
const {
return m_velocity_z; }
138 void setBoxSizeXZ (
float x,
float z) {
m_box_x = x; m_box_z = z; }
140 int getEmissionDecayRate()
const {
return m_emission_decay_rate; }
142 bool hasScaleAffector()
const {
return m_has_scale_affector; }
143 float getScaleAffectorFactorX()
const {
return m_scale_affector_factor_x; }
144 float getScaleAffectorFactorY()
const {
return m_scale_affector_factor_y; };
146 bool getFlips()
const {
return m_flips; }
152 const std::string& getName()
const {
return m_name; }
Definition: material.hpp:48
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
type of particles
Definition: particle_kind.hpp:42
float m_max_size
Size of the particles.
Definition: particle_kind.hpp:47
int m_max_rate
Maximal emission rate in particles per second.
Definition: particle_kind.hpp:62
int m_min_rate
Minimal emission rate in particles per second.
Definition: particle_kind.hpp:59
bool m_vertical_particles
The particle's billboards should face the player by rotating around the Y axis only.
Definition: particle_kind.hpp:92
bool m_randomize_initial_y
Used mainly for weather, like snow.
Definition: particle_kind.hpp:95
float m_sphere_radius
For sphere emitters only.
Definition: particle_kind.hpp:76
float m_box_x
For box emitters only.
Definition: particle_kind.hpp:73