Files
itgmania212121/stepmania/src/Transition.h
T

55 lines
1.1 KiB
C++
Raw Normal View History

2003-04-13 02:33:11 +00:00
#ifndef Transition_H
#define Transition_H
2003-03-05 08:48:35 +00:00
/*
-----------------------------------------------------------------------------
2003-04-13 02:33:11 +00:00
Class: Transition
2003-03-05 08:48:35 +00:00
2003-04-13 02:33:11 +00:00
Desc: Transition that draws BGAnimation.
2003-03-05 08:48:35 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "Actor.h"
#include "BGAnimation.h"
#include "ScreenMessage.h"
2003-03-09 00:55:49 +00:00
#include "RandomSample.h"
2003-03-05 08:48:35 +00:00
2003-04-13 02:33:11 +00:00
class Transition : public Actor
2003-03-05 08:48:35 +00:00
{
public:
2003-04-13 02:33:11 +00:00
Transition();
2003-03-05 08:48:35 +00:00
void Load( CString sBGAniDir );
virtual void Update( float fDeltaTime );
virtual void DrawPrimitives();
2003-03-09 00:55:49 +00:00
virtual void StartTransitioning( ScreenMessage send_when_done = SM_None );
2004-02-16 07:23:28 +00:00
virtual bool EarlyAbortDraw();
2003-03-05 08:48:35 +00:00
2003-11-07 20:54:18 +00:00
bool IsTransitioning() const { return m_State == transitioning; };
bool IsFinished() const { return m_State == finished; };
float GetLengthSeconds() const;
2003-03-05 08:48:35 +00:00
protected:
enum State {
waiting,
transitioning,
finished
} m_State;
float m_fSecsIntoTransition;
BGAnimation m_BGAnimation;
2003-03-09 00:55:49 +00:00
RandomSample m_sound;
2003-03-05 08:48:35 +00:00
ScreenMessage m_MessageToSendWhenDone;
};
#endif