2004-01-07 00:13:32 +00:00
|
|
|
#ifndef FOREGROUND_H
|
|
|
|
|
#define FOREGROUND_H
|
|
|
|
|
|
|
|
|
|
#include "ActorFrame.h"
|
|
|
|
|
#include "song.h"
|
|
|
|
|
class BGAnimation;
|
|
|
|
|
|
|
|
|
|
class Foreground: public ActorFrame
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
~Foreground();
|
|
|
|
|
|
|
|
|
|
void Unload();
|
|
|
|
|
|
|
|
|
|
void LoadFromSong( const Song *pSong );
|
|
|
|
|
|
|
|
|
|
virtual void Update( float fDeltaTime );
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
void LoadFromAniDir( CString sAniDir );
|
|
|
|
|
struct LoadedBGA
|
|
|
|
|
{
|
|
|
|
|
BGAnimation *m_bga;
|
|
|
|
|
float m_fStartBeat;
|
|
|
|
|
float m_fStopBeat;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
vector<LoadedBGA> m_BGAnimations;
|
2004-01-23 07:21:00 +00:00
|
|
|
float m_fLastMusicSeconds;
|
|
|
|
|
const Song *m_pSong;
|
2004-01-07 00:13:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|