Files
itgmania212121/stepmania/src/TransitionBGAnimation.h
T

50 lines
991 B
C++
Raw Normal View History

2003-03-05 08:48:35 +00:00
#ifndef TransitionBGAnimation_H
#define TransitionBGAnimation_H
/*
-----------------------------------------------------------------------------
Class: TransitionBGAnimation
Desc: TransitionBGAnimation that draws BGAnimation.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Actor.h"
#include "BGAnimation.h"
#include "ScreenMessage.h"
class TransitionBGAnimation : public Actor
{
public:
TransitionBGAnimation();
void Load( CString sBGAniDir );
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
virtual void StartTransitioning( ScreenMessage send_when_done );
bool IsTransitioning() { return m_State == transitioning; };
protected:
enum State {
waiting,
transitioning,
finished
} m_State;
float m_fSecsIntoTransition;
BGAnimation m_BGAnimation;
ScreenMessage m_MessageToSendWhenDone;
};
#endif