Etterna 0.74.4
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(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 LifeMeter* GetLifeMeter(PlayerNumber pn);
20 PlayerInfo* GetPlayerInfo(PlayerNumber pn);
21
22 void FailFadeRemovePlayer(PlayerInfo* pi);
23 void FailFadeRemovePlayer(PlayerNumber pn);
24 // void BeginBackingOutFromGameplay();
25
26 // Set the playback rate in the middle of gameplay
27 float SetRate(float newRate);
28 // Add to the playback rate in the middle of gameplay
29 float AddToRate(float amountAdded);
30 // Move the current position of the song in the middle of gameplay
31 void SetSongPosition(float newSongPositionSeconds,
32 float noteDelay = 0.f,
33 bool hardSeek = false,
34 bool unpause = false);
35 // Toggle pause
36 void TogglePause();
37
38 // Practice Looper
39 void SetLoopRegion(float start, float end);
40 void ResetLoopRegion();
41
42 protected:
43 void SetupNoteDataFromRow(Steps* pSteps,
44 int minRow = 0,
45 int maxrow = MAX_NOTE_ROW) override;
46
47 private:
48 float loopStart = ARBITRARY_MIN_GAMEPLAY_NUMBER;
49 float loopEnd = ARBITRARY_MIN_GAMEPLAY_NUMBER;
50 float lastReportedSeconds = ARBITRARY_MIN_GAMEPLAY_NUMBER;
51};
52
53#endif
Holds a device input plus Game/Menu translations.
Definition InputEventPlus.h:9
The player's life.
Definition LifeMeter.h:13
Definition PlayerInfo.h:19
Definition ScreenGameplayPractice.h:7
void Init() override
This is called immediately after construction, to allow initializing after all derived classes exist.
Definition ScreenGameplayPractice.cpp:49
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