summaryrefslogtreecommitdiff
path: root/src/particle/particle.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-16 19:53:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-16 19:53:15 +0300
commitb6826c63e304e17e852c8d7367bea420d709a0d9 (patch)
treef39e234826673aef8d16085252332825d9b1eeec /src/particle/particle.cpp
parentea31dc2bd04362265449afa9e54398f4cf628e74 (diff)
downloadplus-b6826c63e304e17e852c8d7367bea420d709a0d9.tar.gz
plus-b6826c63e304e17e852c8d7367bea420d709a0d9.tar.bz2
plus-b6826c63e304e17e852c8d7367bea420d709a0d9.tar.xz
plus-b6826c63e304e17e852c8d7367bea420d709a0d9.zip
Remove unused functions from particle.
Diffstat (limited to 'src/particle/particle.cpp')
-rw-r--r--src/particle/particle.cpp62
1 files changed, 0 insertions, 62 deletions
diff --git a/src/particle/particle.cpp b/src/particle/particle.cpp
index 8f0cb1e41..0cc97eb53 100644
--- a/src/particle/particle.cpp
+++ b/src/particle/particle.cpp
@@ -293,14 +293,6 @@ void Particle::moveTo(const float x, const float y) restrict2
moveTo(Vector(x, y, mPos.z));
}
-Particle *Particle::createChild() restrict2
-{
- Particle *const newParticle = new Particle();
- newParticle->setMap(mMap);
- mChildParticles.push_back(newParticle);
- return newParticle;
-}
-
Particle *Particle::addEffect(const std::string &restrict particleEffectFile,
const int pixelX, const int pixelY,
const int rotation) restrict2
@@ -440,60 +432,6 @@ Particle *Particle::addEffect(const std::string &restrict particleEffectFile,
return newParticle;
}
-Particle *Particle::addTextSplashEffect(const std::string &restrict text,
- const int x, const int y,
- const Color *restrict const color,
- Font *restrict const font,
- const bool outline) restrict2
-{
- Particle *const newParticle = new TextParticle(
- text,
- color,
- font,
- outline);
- newParticle->setMap(mMap);
- newParticle->moveTo(static_cast<float>(x),
- static_cast<float>(y));
- newParticle->setVelocity(
- static_cast<float>((rand() % 100) - 50) / 200.0F, // X
- static_cast<float>((rand() % 100) - 50) / 200.0F, // Y
- (static_cast<float>((rand() % 100)) / 200.0F) + 4.0F); // Z
-
- newParticle->setGravity(0.1F);
- newParticle->setBounce(0.5F);
- newParticle->setLifetime(200);
- newParticle->setFadeOut(100);
-
- mChildParticles.push_back(newParticle);
-
- return newParticle;
-}
-
-Particle *Particle::addTextRiseFadeOutEffect(const std::string &restrict text,
- const int x, const int y,
- const Color *restrict const color,
- Font *restrict const font,
- const bool outline) restrict2
-{
- Particle *const newParticle = new TextParticle(
- text,
- color,
- font,
- outline);
- newParticle->setMap(mMap);
- newParticle->moveTo(static_cast<float>(x),
- static_cast<float>(y));
- newParticle->setVelocity(0.0F, 0.0F, 0.5F);
- newParticle->setGravity(0.0015F);
- newParticle->setLifetime(300);
- newParticle->setFadeOut(100);
- newParticle->setFadeIn(0);
-
- mChildParticles.push_back(newParticle);
-
- return newParticle;
-}
-
void Particle::adjustEmitterSize(const int w, const int h) restrict2
{
if (mAllowSizeAdjust)