Etterna 0.75.1
Loading...
Searching...
No Matches
ScreenGameplayPractice.h
1#ifndef ScreenGameplayPractice_H
2#define ScreenGameplayPractice_H
3
4#include "ScreenGameplay.h"
5
7{
8 public:
9 void FillPlayerInfo(std::vector<PlayerInfo>& playerInfoOut) override;
11 void Init() override;
12 ~ScreenGameplayPractice() override;
13
14 void Update(float fDeltaTime) override;
15 bool Input(const InputEventPlus& input) override;
16
17 // Lua
18 void PushSelf(lua_State* L) override;
19
20 // Set the playback rate in the middle of gameplay
21 float SetRate(float newRate);
22 // Add to the playback rate in the middle of gameplay
23 float AddToRate(float amountAdded);
24 // Move the current position of the song in the middle of gameplay
25 void SetSongPosition(float newSongPositionSeconds,
26 float noteDelay = 0.f,
27 bool hardSeek = false,
28 bool unpause = false);
29 // Toggle pause
30 void TogglePause();
31
32 // Practice Looper
33 void SetLoopRegion(float start, float end);
34 void ResetLoopRegion();
35
36 protected:
37 void SetupNoteDataFromRow(Steps* pSteps,
38 int minRow = 0,
39 int maxrow = MAX_NOTE_ROW) override;
40
41 private:
42 float loopStart = ARBITRARY_MIN_GAMEPLAY_NUMBER;
43 float loopEnd = ARBITRARY_MIN_GAMEPLAY_NUMBER;
44 float lastReportedSeconds = ARBITRARY_MIN_GAMEPLAY_NUMBER;
45};
46
47#endif
Holds a device input plus Game/Menu translations.
Definition InputEventPlus.h:9
Definition ScreenGameplayPractice.h:7
void Init() override
This is called immediately after construction, to allow initializing after all derived classes exist.
Definition ScreenGameplayPractice.cpp:52
The music plays, the notes scroll, and the Player is pressing buttons.
Definition ScreenGameplay.h:27
Holds note information for a Song.
Definition Steps.h:42