Etterna 0.74.4
Loading...
Searching...
No Matches
PlayerPractice.h
1#ifndef PlayerPractice_H
2#define PlayerPractice_H
3
4#include "Player.h"
5
6// Player derivative meant to ignore useless stuff
7class PlayerPractice : public Player
8{
9 public:
10 PlayerPractice(NoteData& nd, bool bVisibleParts = true);
11 ~PlayerPractice() override;
12
13 void Init(const std::string& sType,
14 PlayerState* pPlayerState,
15 PlayerStageStats* pPlayerStageStats,
16 LifeMeter* pLM,
17 ScoreKeeper* pPrimaryScoreKeeper) override;
18 void Update(float fDeltaTime) override;
19
20 void Step(int col,
21 int row,
22 const std::chrono::steady_clock::time_point& tm,
23 bool bHeld,
24 bool bRelease,
25 float padStickSeconds = 0.0f) override;
26
27 // When called, resets stage stats and necessary things
28 // Also sets countStats to false.
29 void PositionReset();
30
31 private:
32 // Becomes true immediately on first button press.
33 // Allows notes to pass without counting for anything.
34 bool countStats = false;
35};
36
37#endif
The player's life.
Definition LifeMeter.h:13
Holds data about the notes that the player is supposed to hit.
Definition NoteData.h:43
Definition PlayerPractice.h:8
Contains statistics for one stage of play - either one song, or a whole course.
Definition PlayerStageStats.h:19
The player's indivdual state.
Definition PlayerState.h:30
Accepts input, knocks down TapNotes that were stepped on, and keeps score for the player.
Definition Player.h:42
Abstract class to handle scorekeeping, stat-taking, etc.
Definition ScoreKeeper.h:20