Files
itgmania212121/stepmania/src/BPMDisplay.h
T

42 lines
914 B
C++
Raw Normal View History

2001-12-28 10:15:59 +00:00
/*
-----------------------------------------------------------------------------
File: BPMDisplay.h
Desc: A graphic displayed in the BPMDisplay during Dancing.
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2001-12-28 10:15:59 +00:00
-----------------------------------------------------------------------------
*/
#ifndef _BPMDisplay_H_
#define _BPMDisplay_H_
#include "Sprite.h"
#include "Song.h"
#include "ActorFrame.h"
#include "BitmapText.h"
2002-05-19 01:59:48 +00:00
#include "Quad.h"
2001-12-28 10:15:59 +00:00
class BPMDisplay : public ActorFrame
{
public:
BPMDisplay();
2002-02-24 01:43:11 +00:00
virtual void Update( float fDeltaTime );
2001-12-28 10:15:59 +00:00
void SetBPMRange( float fLowBPM, float fHighBPM );
protected:
2002-01-16 10:01:32 +00:00
BitmapText m_textBPM;
2001-12-28 10:15:59 +00:00
BitmapText m_textLabel;
2002-05-19 01:59:48 +00:00
Quad m_rectFrame;
2001-12-28 10:15:59 +00:00
float m_fCurrentBPM;
float m_fLowBPM, m_fHighBPM;
enum CountingState{ counting_up, holding_up, counting_down, holding_down };
CountingState m_CountingState;
float m_fTimeLeftInState;
};
#endif