2002-11-16 08:07:38 +00:00
|
|
|
#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"
|
2002-11-11 04:53:31 +00:00
|
|
|
#include "GameConstantsAndTypes.h"
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class GradeDisplay : public Sprite
|
|
|
|
|
{
|
|
|
|
|
public:
|
2002-05-01 19:14:55 +00:00
|
|
|
GradeDisplay();
|
|
|
|
|
|
|
|
|
|
virtual void Update( float fDeltaTime );
|
2002-05-19 01:59:48 +00:00
|
|
|
virtual void DrawPrimitives();
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2002-09-04 03:49:08 +00:00
|
|
|
void SetGrade( PlayerNumber pn, Grade g );
|
2002-05-01 19:14:55 +00:00
|
|
|
void SpinAndSettleOn( Grade g );
|
2002-08-20 08:30:30 +00:00
|
|
|
void SettleImmediately();
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2002-05-01 19:14:55 +00:00
|
|
|
protected:
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Grade m_Grade;
|
|
|
|
|
|
2002-05-01 19:14:55 +00:00
|
|
|
// for scrolling
|
2002-06-14 22:25:22 +00:00
|
|
|
bool m_bDoScrolling;
|
2002-10-31 06:00:30 +00:00
|
|
|
RectF m_frectStartTexCoords;
|
|
|
|
|
RectF m_frectDestTexCoords;
|
2002-05-01 19:14:55 +00:00
|
|
|
float m_fTimeLeftInScroll;
|
2002-01-16 10:01:32 +00:00
|
|
|
};
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|