wavelength 1.0.0
Loading...
Searching...
No Matches
waitinteractiveremixtask.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/gamecallback.h"
5#include "os/task.h"
6#include "script/dataarray.h"
7
16public:
23 ~WaitInteractiveRemixTask() override = default;
24
34
41 void OnPitch() override;
42
49 void OnLoop() override;
50
58 void OnSectionChange(int nSection) override;
59
66 void OnBurnPattern() override;
67
74 void OnErase() override;
75
82 void OnEraseSection() override;
83
92 void OnRotate(bool bRight) override;
93
100 void OnPatternMenuOpen() override;
101
102protected:
109 void OnStart() override;
110
117 void OnStop() override;
118
125 void OnPoll() override;
126
127private:
134 void EvaluateConditions();
135
143 void EvaluateCondition(DataArray *pCondition);
144
153 void RunActions(DataArray *pCondition, int nFirst);
154
155 RemixTutorial *mTutorial;
156 DataArray *mStep;
157 int mPitchCount;
158 float mIdleTime;
159 float mIdle2Time;
160 int mLoopOn;
161 int mForwardSection;
162 int mBurnPattern;
163 int mEraseCount;
164 int mRotation;
165 int mEraseSection;
166 int mPatternMenuOpen;
167};
Reference-counted array of script data nodes.
Definition dataarray.h:20
Listener the gameplay code tells about the player's actions.
Definition gamecallback.h:10
Scripted lesson that runs on top of a remix session.
Definition remixtutorial.h:19
Task()
Construct an idle task.
Definition task.h:24
void OnStart() override
Install the task as TheGameCallback, and restart the idle times.
void OnPoll() override
Run the actions of the idle conditions whose time has passed.
~WaitInteractiveRemixTask() override=default
Destroy the object.
void OnEraseSection() override
Record an erased section, and evaluate the conditions.
void OnLoop() override
Record that looping was switched on, and evaluate the conditions.
void OnStop() override
Stop reporting to the task.
void OnSectionChange(int nSection) override
Record a section change, restart the idle times, and evaluate the conditions.
void OnPitch() override
Count a pitch change, restart the idle times, and evaluate the conditions.
void OnRotate(bool bRight) override
Count a rotation, and evaluate the conditions.
WaitInteractiveRemixTask(DataArray *pStep, RemixTutorial *pTutorial)
Construct a task for one tutorial step.
void OnErase() override
Count an erased pattern, and evaluate the conditions.
void OnPatternMenuOpen() override
Record that the pattern menu was opened, and evaluate the conditions.
void OnBurnPattern() override
Record a burned pattern, and evaluate the conditions.