Files
itgmania212121/stepmania/src/GradeDisplay.h
T

68 lines
2.1 KiB
C++
Raw Normal View History

2004-06-07 21:14:03 +00:00
/* GradeDisplay - Grade shown on ScreenEvaluation. */
2002-01-16 10:01:32 +00:00
2004-06-07 21:14:03 +00:00
#ifndef GRADE_DISPLAY_H
#define GRADE_DISPLAY_H
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
2004-06-07 21:14:03 +00:00
/*
* (c) 2001-2002 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/