2002-11-16 08:07:38 +00:00
|
|
|
#ifndef BGANIMATION_H
|
|
|
|
|
#define BGANIMATION_H
|
2002-09-29 05:06:18 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: BGAnimation
|
|
|
|
|
|
|
|
|
|
Desc: Particles that play in the background of ScreenGameplay
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Ben Nordstrom
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "GameConstantsAndTypes.h"
|
|
|
|
|
#include "ActorFrame.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BGAnimationLayer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class BGAnimation : public ActorFrame
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
BGAnimation();
|
|
|
|
|
virtual ~BGAnimation();
|
|
|
|
|
|
|
|
|
|
void Unload();
|
|
|
|
|
|
|
|
|
|
void LoadFromStaticGraphic( CString sPath );
|
2003-03-10 02:46:01 +00:00
|
|
|
void LoadFromAniDir( CString sAniDir );
|
2003-04-14 04:10:01 +00:00
|
|
|
void LoadFromMovie( CString sMoviePath );
|
2003-03-10 02:46:01 +00:00
|
|
|
void LoadFromVisualization( CString sMoviePath );
|
2002-09-29 05:06:18 +00:00
|
|
|
|
|
|
|
|
virtual void Update( float fDeltaTime );
|
|
|
|
|
virtual void DrawPrimitives();
|
|
|
|
|
|
2002-10-28 05:30:45 +00:00
|
|
|
virtual void SetDiffuse( const RageColor &c );
|
2002-10-10 04:11:30 +00:00
|
|
|
|
2003-04-14 04:10:01 +00:00
|
|
|
void GainingFocus( float fRate, bool bRewindMovie, bool bLoop );
|
2002-09-29 05:06:18 +00:00
|
|
|
void LosingFocus();
|
|
|
|
|
|
2003-03-05 08:48:35 +00:00
|
|
|
float GetLengthSeconds() { return m_fLengthSeconds; }
|
|
|
|
|
|
2003-07-10 03:37:13 +00:00
|
|
|
void PlayOffCommand();
|
|
|
|
|
|
2002-09-29 05:06:18 +00:00
|
|
|
protected:
|
2003-01-03 05:56:28 +00:00
|
|
|
vector<BGAnimationLayer*> m_Layers;
|
2003-03-05 02:52:40 +00:00
|
|
|
float m_fLengthSeconds;
|
2002-09-29 05:06:18 +00:00
|
|
|
};
|
|
|
|
|
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|