Files
itgmania212121/stepmania/src/BPMDisplay.h
T

48 lines
1.0 KiB
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"
class Song;
2003-07-20 04:22:25 +00:00
class Course;
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 );
virtual void DrawPrimitives();
void SetBPM( const Song* pSong );
2003-07-20 04:22:25 +00:00
void SetBPM( const Course* pCourse );
2003-03-30 19:30:54 +00:00
void CycleRandomly();
void NoBPM();
2001-12-28 10:15:59 +00:00
protected:
2003-07-20 04:22:25 +00:00
float GetActiveBPM() const;
void SetBPMRange( const vector<float> &m_BPMS );
2002-01-16 10:01:32 +00:00
BitmapText m_textBPM;
Sprite m_sprLabel;
2001-12-28 10:15:59 +00:00
2003-07-20 04:22:25 +00:00
float m_fBPMFrom, m_fBPMTo;
int m_iCurrentBPM;
vector<float> m_BPMS;
float m_fPercentInState;
float m_fCycleTime;
2001-12-28 10:15:59 +00:00
};
2002-11-16 08:55:46 +00:00
#endif