5#include "MovingAnimation.h"
6#include "FlashAnimation.h"
12 std::map<std::string, Animation> animations;
13 std::map<std::string, MovingAnimation> moving_animations;
14 std::map<std::string, FlashAnimation> flash_animations;
25 void InitializeAnimators()
29 animations.emplace(
"Default", defaultAnimation);
34 moving_animations.emplace(
"Default", defaultMoveAnimation);
35 moving_animations.emplace(
"StepMove", testMoveAnimation);
37 FlashAnimation defaultFlashAnimation =
FlashAnimation(3, 0.0f,
"looped", { 0.2f, 1.0f, 0.2f, 1.0f }, { 0,0,0,255 });
38 FlashAnimation lineTransferFlashAnimation =
FlashAnimation(3, 0.01f,
"play_n_times", { 0.01f, 0.01f, 0.00f, 0.01f }, { 255,255,255,255 }, 1);
39 FlashAnimation rectangleInterpolationFlashAnimation =
FlashAnimation(3, 0.01f,
"play_n_times", { 0.5f, 0.01f, 1.00f, 0.01f }, { 255,0,0,255 }, 1);
41 flash_animations.emplace(
"Default", defaultFlashAnimation);
42 flash_animations.emplace(
"LineTransfer", lineTransferFlashAnimation);
43 flash_animations.emplace(
"RectInterpolation", rectangleInterpolationFlashAnimation);
Definition MovingAnimation.h:9
Definition AnimatorManager.h:10
Definition FlashAnimation.h:10