Files
itgmania212121/stepmania/src/BPMDisplay.h
T

48 lines
981 B
C++
Raw Normal View History

#ifndef _BPMDisplay_H_
#define _BPMDisplay_H_
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.
Chris Danford
2001-12-28 10:15:59 +00:00
-----------------------------------------------------------------------------
*/
#include "Sprite.h"
2003-02-16 04:28:17 +00:00
#include "song.h"
2001-12-28 10:15:59 +00:00
#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 );
2003-03-30 19:30:54 +00:00
void CycleRandomly();
void NoBPM();
2001-12-28 10:15:59 +00:00
protected:
2002-01-16 10:01:32 +00:00
BitmapText m_textBPM;
Sprite m_sprLabel;
2001-12-28 10:15:59 +00:00
float m_fCurrentBPM;
float m_fLowBPM, m_fHighBPM;
2003-03-30 19:30:54 +00:00
enum CountingState {
counting_up,
holding_up,
counting_down,
holding_down,
cycle_randomly,
no_bpm // show dashes
} m_CountingState;
2001-12-28 10:15:59 +00:00
float m_fTimeLeftInState;
};
2002-11-16 08:55:46 +00:00
#endif