Beispiel #1
0
float getRemainingRatio(const Particle& particle)
{
	return getRemainingLifetime(particle) / getTotalLifetime(particle);
}
Beispiel #2
0
float getElapsedRatio(const Particle& particle)
{
	return getElapsedLifetime(particle) / getTotalLifetime(particle);
}
Beispiel #3
0
 float getRemainingRatio(const Particle& particle)
 {
     return (getRemainingLifetime(particle).asSeconds() / getTotalLifetime(particle).asSeconds());
 }
Beispiel #4
0
sf::Time getRemainingLifetime(const Particle& particle)
{
	return getTotalLifetime(particle) - getElapsedLifetime(particle);
}
Beispiel #5
0
 float getElapsedRatio(const Particle& particle)
 {
     return (getElapsedLifetime(particle).asSeconds() / getTotalLifetime(particle).asSeconds());
 }