Etterna 0.74.4
Loading...
Searching...
No Matches
ReceptorArrow.h
1#ifndef RECEPTOR_ARROW_H
2#define RECEPTOR_ARROW_H
3
4#include "Etterna/Actor/Base/ActorFrame.h"
5#include "Etterna/Actor/Base/AutoActor.h"
6#include "Etterna/Models/Misc/GameConstantsAndTypes.h"
7
8class PlayerState;
11{
12 public:
14 void Load(const PlayerState* pPlayerState,
15 int iColNo,
16 const std::string& Type);
17
18 void DrawPrimitives() override;
19 void Update(float fDeltaTime) override;
20 void Step(TapNoteScore score);
21 void SetPressed() { m_bIsPressed = true; };
22
23 private:
24 const PlayerState* m_pPlayerState;
25 int m_iColNo;
26
27 AutoActor m_pReceptor;
28
29 bool m_bIsPressed;
30 bool m_bWasPressed; // set in Update
31 bool m_bWasReverse;
32};
33
34#endif
A container for other Actors.
Definition ActorFrame.h:8
A smart pointer for Actor.
Definition AutoActor.h:13
The player's indivdual state.
Definition PlayerState.h:30
A gray arrow that "receives" the note arrows.
Definition ReceptorArrow.h:11
void DrawPrimitives() override
Draw the primitives of the Actor.
Definition ReceptorArrow.cpp:62