73271fa3d2
(Note that in general, actors should never SetHidden(false) on themselves, since that will cause themed "hidden,1" commands to be overridden.)
36 lines
877 B
C++
36 lines
877 B
C++
#ifndef DIFFICULTYICON_H
|
|
#define DIFFICULTYICON_H
|
|
/*
|
|
-----------------------------------------------------------------------------
|
|
Class: DifficultyIcon
|
|
|
|
Desc: Graphical representation of the difficulty class.
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
Chris Danford
|
|
-----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include "Sprite.h"
|
|
#include "PlayerNumber.h"
|
|
#include "GameConstantsAndTypes.h"
|
|
class Steps;
|
|
|
|
|
|
class DifficultyIcon : public Sprite
|
|
{
|
|
bool m_bBlank;
|
|
|
|
public:
|
|
DifficultyIcon();
|
|
virtual bool EarlyAbortDraw() { return m_bBlank || Sprite::EarlyAbortDraw(); }
|
|
|
|
bool Load( CString sFilePath );
|
|
|
|
void SetFromNotes( PlayerNumber pn, Steps* pNotes );
|
|
void SetFromDifficulty( PlayerNumber pn, Difficulty dc );
|
|
void SetFromCourseDifficulty( PlayerNumber pn, CourseDifficulty cd );
|
|
};
|
|
|
|
#endif
|