JBWOPR
|
Display effect for showing the WOPR movie code solve. More...
#include <jbwopreffects.h>
Public Member Functions | |
JBWoprMissileCodeSolveEffect (JBWoprDevice *woprBoard, CodeSolveVariant solveVariant=CodeSolveVariant::MOVIE, uint32_t duration=-1, const std::string &name=JBWOPR_EFFECT_NAME_CODE_SOLVE) | |
Constructor. | |
void | start () override |
Start effect. | |
void | loop () override |
Run loop. | |
void | setCodeSolveVariant (CodeSolveVariant solveVariant) |
Set code solve variant. | |
![]() | |
JBWoprEffectBase (JBWoprDevice *woprDevice, uint32_t duration=-1, std::string name=JBWOPR_EFFECT_NAME_BASE) | |
Constructor. | |
virtual std::string | getName () |
Get name of effect. | |
virtual void | stop () |
Stop effect. | |
bool | isRunning () const |
Check if effect is running. | |
uint32_t | getDuration () const |
Set duration of effect. | |
Additional Inherited Members | |
![]() | |
void | _displayText (const std::string &text, JBTextAlignment alignment=JBTextAlignment::LEFT) |
Display text on raw display. | |
![]() | |
JBWoprDevice * | _woprDevice |
JBWoprDevice instance. | |
std::string | _name |
Name of effect. | |
bool | _isRunning = false |
True if effect is running. | |
bool | _done = true |
True if effect is done, waiting for duration to end. | |
uint32_t | _duration = -1 |
Duration of effect in milliseconds. | |
uint32_t | _startTime = 0 |
Start time of effect in milliseconds. | |
uint32_t | _nextTick = 0 |
Next tick time in milliseconds. | |
Display effect for showing the WOPR movie code solve.
|
explicit |
Constructor.
woprBoard | JBWoprDevice instance |
solveVariant | Code solve variant, default is MOVIE |
duration | Duration of effect (after it is done) in milliseconds, default is -1 (infinite) |
name | Name of effect, default is JBWOPR_EFFECT_NAME_WOPR_MOVIE |
|
overridevirtual |
Run loop.
Reimplemented from JBWoprEffectBase.
void JBWoprMissileCodeSolveEffect::setCodeSolveVariant | ( | CodeSolveVariant | solveVariant | ) |
Set code solve variant.
solveVariant | Code solve variant |
|
overridevirtual |
Start effect.
duration | Duration of effect (after it is done) in milliseconds |
Reimplemented from JBWoprEffectBase.