Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

GradeDisplay.h

Go to the documentation of this file.
00001 /* GradeDisplay - Grade shown on ScreenEvaluation. */ 00002 00003 #ifndef GRADE_DISPLAY_H 00004 #define GRADE_DISPLAY_H 00005 00006 #include "Sprite.h" 00007 #include "PrefsManager.h" 00008 #include "Grade.h" 00009 #include "PlayerNumber.h" 00010 00011 00012 class GradeDisplay : public Sprite 00013 { 00014 public: 00015 GradeDisplay(); 00016 virtual bool Load( RageTextureID ID ); 00017 00018 virtual void Update( float fDeltaTime ); 00019 virtual void DrawPrimitives(); 00020 00021 void SetGrade( PlayerNumber pn, Grade g ); 00022 void Spin(); 00023 void SettleImmediately(); 00024 void SettleQuickly(); 00025 00026 Grade GetGrade () const {return m_Grade;} 00027 protected: 00028 00029 int GetFrameNo( PlayerNumber pn, Grade g ); 00030 00031 PlayerNumber m_PlayerNumber; 00032 Grade m_Grade; 00033 00034 // for scrolling; 0 = no, 1 = normal, 2 = quick 00035 int m_bDoScrolling; 00036 RectF m_frectStartTexCoords; 00037 RectF m_frectDestTexCoords; 00038 RectF m_frectCurTexCoords; 00039 float m_fTimeLeftInScroll; 00040 }; 00041 00042 #endif 00043 00044 /* 00045 * (c) 2001-2002 Chris Danford 00046 * All rights reserved. 00047 * 00048 * Permission is hereby granted, free of charge, to any person obtaining a 00049 * copy of this software and associated documentation files (the 00050 * "Software"), to deal in the Software without restriction, including 00051 * without limitation the rights to use, copy, modify, merge, publish, 00052 * distribute, and/or sell copies of the Software, and to permit persons to 00053 * whom the Software is furnished to do so, provided that the above 00054 * copyright notice(s) and this permission notice appear in all copies of 00055 * the Software and that both the above copyright notice(s) and this 00056 * permission notice appear in supporting documentation. 00057 * 00058 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00059 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00060 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF 00061 * THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS 00062 * INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT 00063 * OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 00064 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 00065 * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 00066 * PERFORMANCE OF THIS SOFTWARE. 00067 */

Generated on Thu Jan 27 20:57:21 2005 for StepMania by doxygen 1.3.7