#include <particles.h>
◆ ParticleSpawner()
◆ decrActive()
void ParticleSpawner::decrActive |
( |
| ) |
|
|
inline |
◆ getExpired()
bool ParticleSpawner::getExpired |
( |
| ) |
const |
|
inline |
◆ hasActive()
bool ParticleSpawner::hasActive |
( |
| ) |
const |
|
inline |
◆ spawnParticle()
void ParticleSpawner::spawnParticle |
( |
ClientEnvironment * | env, |
|
|
float | radius, |
|
|
const core::matrix4 * | attached_absolute_pos_rot_matrix ) |
|
private |
References ParticleParameters::acc, ParticleSpawnerParameters::acc, ParticleManager::addParticle(), ParticleTexture::animated, CommonParticleParams::animation, ParticleTexture::animation, ParticleSpawnerParameters::attract, ParticleSpawnerParameters::attractor_attachment, ParticleSpawnerParameters::attractor_direction, ParticleSpawnerParameters::attractor_direction_attachment, ParticleSpawnerParameters::attractor_kill, ParticleSpawnerParameters::attractor_kind, ParticleSpawnerParameters::attractor_origin, ParticleParamTypes::TweenedParameter< T >::blend(), ParticleParameters::bounce, ParticleSpawnerParameters::bounce, BS, CONTENT_IGNORE, CommonParticleParams::copyCommon(), dir(), ParticleParameters::drag, ParticleSpawnerParameters::drag, ParticleParamTypes::TweenedParameter< T >::end, ParticleParameters::expirationtime, ParticleSpawnerParameters::exptime, TileAnimationParams::frame_length, TileAnimationParams::frames_w, NodeDefManager::get(), ClientEnvironment::getCameraOffset(), MapNode::getContent(), ClientEnvironment::getGameDef(), ParticleManager::getNodeParticleParams(), LocalPlayer::getPosition(), ParticleParameters::jitter, ParticleSpawnerParameters::jitter, TileAnimationParams::length, ParticleParamTypes::line, m_active, ParticleManager::m_env, m_particlemanager, m_player, m_texpool, m_time, myrand_range(), IGameDef::ndef(), CommonParticleParams::node, CommonParticleParams::node_tile, ParticleParamTypes::none, numericAbsolute(), numericSign(), p, ParticleParamTypes::plane, ParticleParamTypes::point, ParticleParameters::pos, ParticleSpawnerParameters::pos, ParticleSpawnerParameters::radius, ClientParticleTexRef::ref, TileAnimationParams::sheet_2d, ParticleParameters::size, ParticleSpawnerParameters::size, ParticleParamTypes::TweenedParameter< T >::start, TAT_NONE, TAT_SHEET_2D, TAT_VERTICAL_FRAMES, ClientParticleTexRef::tex, ParticleSpawnerParameters::time, TileAnimationParams::type, ParticleParameters::vel, ParticleSpawnerParameters::vel, and TileAnimationParams::vertical_frames.
Referenced by step().
◆ step()
References ParticleSpawnerParameters::amount, g_settings, ClientEnvironment::getGenericCAO(), Settings::getS16(), m_attached_id, m_spawntimes, m_time, MAP_BLOCKSIZE, myrand_float(), p, spawnParticle(), and ParticleSpawnerParameters::time.
◆ m_active
size_t ParticleSpawner::m_active |
|
private |
◆ m_attached_id
u16 ParticleSpawner::m_attached_id |
|
private |
◆ m_particlemanager
◆ m_player
◆ m_spawntimes
std::vector<float> ParticleSpawner::m_spawntimes |
|
private |
◆ m_texpool
◆ m_time
float ParticleSpawner::m_time |
|
private |
The documentation for this class was generated from the following files: