AnimationController: added missing declaration

This commit is contained in:
Thomas Kolb 2019-12-14 23:55:30 +01:00
parent af3adf99db
commit bdd8ebd123

View file

@ -2,6 +2,11 @@
#include "Animation/AllAnimations.h" #include "Animation/AllAnimations.h"
const constexpr
std::array<const char*, AnimationController::NUM_DEFAULT_ANIMATIONS>
AnimationController::AnimationNames;
AnimationController::AnimationController(Fader *fader) AnimationController::AnimationController(Fader *fader)
: m_fader(fader), m_animation(nullptr), m_frame(0) : m_fader(fader), m_animation(nullptr), m_frame(0)
{ {
@ -38,6 +43,10 @@ void AnimationController::changeAnimation(AnimationController::DefaultAnimation
changeAnimation(std::unique_ptr<Animation>(new FireAnimation(m_fader, true)), transition); changeAnimation(std::unique_ptr<Animation>(new FireAnimation(m_fader, true)), transition);
break; break;
case SNOWFALL:
changeAnimation(std::unique_ptr<Animation>(new SnowfallAnimation(m_fader)), transition);
break;
default: default:
return; // unknown id, do nothing return; // unknown id, do nothing
} }