2003-03-09 00:55:49 +00:00
|
|
|
#ifndef DifficultyMeter_H
|
|
|
|
|
#define DifficultyMeter_H
|
2002-01-16 10:01:32 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
2003-03-09 00:55:49 +00:00
|
|
|
Class: DifficultyMeter
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2003-08-03 00:13:55 +00:00
|
|
|
Desc: A meter represention of how hard Steps is.
|
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.
|
|
|
|
|
Chris Danford
|
2002-01-16 10:01:32 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "BitmapText.h"
|
2003-07-21 22:38:41 +00:00
|
|
|
#include "PlayerNumber.h"
|
2003-11-14 23:05:03 +00:00
|
|
|
#include "ActorFrame.h"
|
2003-11-15 00:26:30 +00:00
|
|
|
#include "GameConstantsAndTypes.h"
|
|
|
|
|
#include "ActorUtil.h"
|
2003-11-13 23:50:52 +00:00
|
|
|
|
2003-08-03 00:13:55 +00:00
|
|
|
class Steps;
|
2003-07-21 22:38:41 +00:00
|
|
|
class Course;
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
|
2003-11-14 23:05:03 +00:00
|
|
|
class DifficultyMeter: public ActorFrame
|
2002-01-16 10:01:32 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2003-03-09 00:55:49 +00:00
|
|
|
DifficultyMeter();
|
2002-01-16 10:01:32 +00:00
|
|
|
|
2003-11-14 23:05:03 +00:00
|
|
|
void Load();
|
2003-07-21 22:38:41 +00:00
|
|
|
void SetFromGameState( PlayerNumber pn );
|
2004-05-14 06:49:46 +00:00
|
|
|
void SetFromDifficulty( Difficulty dc );
|
|
|
|
|
void SetFromCourseDifficulty( CourseDifficulty cd );
|
2004-05-24 03:41:39 +00:00
|
|
|
void SetFromNotes( const Steps* pSteps );
|
2004-01-21 01:35:54 +00:00
|
|
|
void SetFromCourse( const Course* pCourse, PlayerNumber pn );
|
2003-07-21 22:38:41 +00:00
|
|
|
void Unset();
|
2004-05-07 02:53:07 +00:00
|
|
|
void SetMeter( int iMeter, Difficulty dc );
|
2002-01-16 10:01:32 +00:00
|
|
|
|
|
|
|
|
private:
|
2003-11-15 00:26:30 +00:00
|
|
|
void SetDifficulty( CString diff );
|
|
|
|
|
BitmapText m_textFeet;
|
|
|
|
|
|
|
|
|
|
CString m_CurDifficulty;
|
|
|
|
|
AutoActor m_Difficulty;
|
|
|
|
|
|
|
|
|
|
BitmapText m_textMeter;
|
2002-01-16 10:01:32 +00:00
|
|
|
};
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|