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