Etterna 0.74.4
Loading...
Searching...
No Matches
Foreground.h
1#ifndef FOREGROUND_H
2#define FOREGROUND_H
3
4#include "Etterna/Actor/Base/ActorFrame.h"
5
6class Song;
7
9class Foreground : public ActorFrame
10{
11 public:
12 ~Foreground() override;
13 void Unload();
14 void LoadFromSong(const Song* pSong);
15
16 void Update(float fDeltaTime) override;
17 void HandleMessage(const Message& msg) override;
18
19 protected:
20 struct LoadedBGA
21 {
22 Actor* m_bga;
23 float m_fStartBeat;
24 float m_fStopBeat;
25 bool m_bFinished;
26 };
27
28 std::vector<LoadedBGA> m_BGAnimations;
29 float m_fLastMusicSeconds = 0.F;
30 const Song* m_pSong;
31};
32
33#endif
A container for other Actors.
Definition ActorFrame.h:8
Base class for all objects that appear on the screen.
Definition Actor.h:77
Foreground in front of notes while playing.
Definition Foreground.h:10
Holds all music metadata and steps for one song.
Definition Song.h:65
Definition Foreground.h:21
Definition MessageManager.h:96