Colisiones básicas completadas
This commit is contained in:
@@ -90,13 +90,13 @@ void AnimatedSprite::setAnimationLoop(std::string name, bool loop)
|
||||
}
|
||||
|
||||
// Establece el valor de la variable
|
||||
void AnimatedSprite::setCompleted(std::string name, bool value)
|
||||
void AnimatedSprite::setAnimationCompleted(std::string name, bool value)
|
||||
{
|
||||
animation[getIndex(name)].completed = value;
|
||||
}
|
||||
|
||||
// Comprueba si ha terminado la animación
|
||||
bool AnimatedSprite::isCompleted(std::string name)
|
||||
bool AnimatedSprite::animationIsCompleted(std::string name)
|
||||
{
|
||||
return animation[getIndex(name)].completed;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user