Files
itgmania212121/stepmania/src/GradeDisplay.h
T

51 lines
1.1 KiB
C++
Raw Normal View History

#ifndef GRADEDISPLAY_H
#define GRADEDISPLAY_H
2002-01-16 10:01:32 +00:00
/*
-----------------------------------------------------------------------------
2002-06-24 22:04:31 +00:00
Class: GradeDisplay
2002-01-16 10:01:32 +00:00
2002-06-24 22:04:31 +00:00
Desc: The grade shows on ScreenEvaluation
2002-01-16 10:01:32 +00:00
2002-05-19 01:59:48 +00:00
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
2002-06-24 22:04:31 +00:00
Chris Danford
2002-01-16 10:01:32 +00:00
-----------------------------------------------------------------------------
*/
#include "Sprite.h"
2002-07-23 01:41:40 +00:00
#include "PrefsManager.h"
2002-01-16 10:01:32 +00:00
#include "Grade.h"
#include "PlayerNumber.h"
2002-01-16 10:01:32 +00:00
class GradeDisplay : public Sprite
{
public:
2002-05-01 19:14:55 +00:00
GradeDisplay();
2003-03-31 03:11:31 +00:00
virtual bool Load( RageTextureID ID );
2002-05-01 19:14:55 +00:00
virtual void Update( float fDeltaTime );
2002-05-19 01:59:48 +00:00
virtual void DrawPrimitives();
2002-01-16 10:01:32 +00:00
void SetGrade( PlayerNumber pn, Grade g );
2003-03-31 03:11:31 +00:00
void Spin();
2002-08-20 08:30:30 +00:00
void SettleImmediately();
2002-12-21 10:04:25 +00:00
void SettleQuickly();
2002-01-16 10:01:32 +00:00
Grade GetGrade () const {return m_Grade;}
2002-05-01 19:14:55 +00:00
protected:
2003-03-31 03:11:31 +00:00
int GetFrameNo( PlayerNumber pn, Grade g );
PlayerNumber m_PlayerNumber;
2002-05-19 01:59:48 +00:00
Grade m_Grade;
2002-12-21 10:04:25 +00:00
// for scrolling; 0 = no, 1 = normal, 2 = quick
int m_bDoScrolling;
2002-10-31 06:00:30 +00:00
RectF m_frectStartTexCoords;
RectF m_frectDestTexCoords;
2002-12-21 10:04:25 +00:00
RectF m_frectCurTexCoords;
2002-05-01 19:14:55 +00:00
float m_fTimeLeftInScroll;
2002-01-16 10:01:32 +00:00
};
#endif