CTRE_Phoenix 5.20.2
Animation.h
1#pragma once
2
3#include <cstddef>
4
5namespace ctre{ namespace phoenix{ namespace led{
6
7class BaseStandardAnimation;
8class BaseTwoSizeAnimation;
9
13class Animation {
14 int _animationIdx, _numLed;
15 double _speed;
16public:
23 Animation(int idx, double speed, int numLed);
24 virtual ~Animation();
29 void SetSpeed(double speed);
34 void SetNumLed(int numLed);
35
36 virtual BaseStandardAnimation *GetBaseStandardAnimation() = 0;
37 virtual BaseTwoSizeAnimation *GetBaseTwoSizeAnimation() = 0;
38
39 int GetAnimationIdx();
40 double GetSpeed();
41 int GetNumLed();
42};
43
44} // namespace led
45} // namespace phoenix
46} // namespace ctre
Definition: Animation.h:13
void SetSpeed(double speed)
Animation(int idx, double speed, int numLed)
Definition: BaseStandardAnimation.h:11
Definition: BaseTwoSizeAnimation.h:11
Definition: ErrorCode.h:5