1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#ifndef BEAM_PIERCING_EFFECT_H
#define BEAM_PIERCING_EFFECT_H
#pragma once
#include "globalincs/pstypes.h"
#include "particle/ParticleEffect.h"
namespace particle {
namespace effects {
/**
* @ingroup particleEffects
*/
class BeamPiercingEffect: public ParticleEffect {
private:
float m_radius = -1.f;
float m_velocity = -1.f;
float m_backVelocity = -1.f;
float m_variance = -1.f;
int m_effectBitmap = -1;
public:
BeamPiercingEffect() : ParticleEffect("") {}
bool processSource(ParticleSource* source) override;
void parseValues(bool nocreate) override;
void pageIn() override;
void setValues(int bitmapIndex, float radius, float velocity, float back_velocity, float variance);
};
}
}
#endif // BEAM_PIERCING_EFFECT_H
|