Files
itgmania212121/stepmania/src/BGAnimation.h
T

59 lines
1.3 KiB
C++
Raw Normal View History

#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 "ActorFrame.h"
class BGAnimationLayer;
class BGAnimation : public ActorFrame
{
public:
BGAnimation( bool Generic=false );
2002-09-29 05:06:18 +00:00
virtual ~BGAnimation();
void Unload();
void LoadFromStaticGraphic( CString sPath );
void LoadFromAniDir( CString sAniDir );
void LoadFromMovie( CString sMoviePath );
void LoadFromVisualization( CString sMoviePath );
2002-09-29 05:06:18 +00:00
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
virtual void SetDiffuse( const RageColor &c );
void GainingFocus( float fRate, bool bRewindMovie, bool bLoop );
2002-09-29 05:06:18 +00:00
void LosingFocus();
2003-11-07 20:43:03 +00:00
float GetLengthSeconds() const { return m_fLengthSeconds; }
2003-03-05 08:48:35 +00:00
virtual void HandleCommand( const ParsedCommand &command );
2003-10-31 01:55:17 +00:00
void PlayOffCommand() { PlayCommand("Off"); }
void PlayCommand( const CString &cmd );
float GetTweenTimeLeft() const;
2003-11-05 02:23:21 +00:00
void FinishTweening();
2003-07-10 03:37:13 +00:00
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;
bool m_bGeneric;
2002-09-29 05:06:18 +00:00
};
#endif