2003-02-10 05:30:12 +00:00
|
|
|
#ifndef MUSICWHEELITEM_H
|
|
|
|
|
#define MUSICWHEELITEM_H
|
|
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: MusicWheelItem
|
|
|
|
|
|
|
|
|
|
Desc: An item on the music wheel
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
2003-03-31 23:06:15 +00:00
|
|
|
#include "ActorFrame.h"
|
2003-03-31 03:11:31 +00:00
|
|
|
#include "GradeDisplay.h"
|
2003-03-31 23:06:15 +00:00
|
|
|
#include "BitmapText.h"
|
|
|
|
|
#include "WheelNotifyIcon.h"
|
|
|
|
|
#include "TextBanner.h"
|
2003-06-16 17:28:58 +00:00
|
|
|
#include "GameConstantsAndTypes.h"
|
2003-07-20 08:54:31 +00:00
|
|
|
#include "ModeChoice.h"
|
2003-03-31 23:06:15 +00:00
|
|
|
class Course;
|
|
|
|
|
class Song;
|
2003-03-31 03:11:31 +00:00
|
|
|
|
2003-03-31 23:06:15 +00:00
|
|
|
struct WheelItemData;
|
2003-02-10 05:30:12 +00:00
|
|
|
|
2003-03-31 23:06:15 +00:00
|
|
|
class MusicWheelItem : public ActorFrame
|
2003-02-10 05:30:12 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2003-03-31 23:06:15 +00:00
|
|
|
MusicWheelItem();
|
2003-02-10 05:30:12 +00:00
|
|
|
|
|
|
|
|
virtual void Update( float fDeltaTime );
|
|
|
|
|
virtual void DrawPrimitives();
|
2004-05-15 18:35:03 +00:00
|
|
|
virtual void SetZTestMode( ZTestMode mode );
|
2003-11-18 21:46:28 +00:00
|
|
|
virtual void SetZWrite( bool b );
|
2003-02-10 05:30:12 +00:00
|
|
|
|
|
|
|
|
void LoadFromWheelItemData( WheelItemData* pWID );
|
|
|
|
|
void RefreshGrades();
|
|
|
|
|
|
|
|
|
|
WheelItemData *data;
|
|
|
|
|
float m_fPercentGray;
|
|
|
|
|
|
|
|
|
|
// for TYPE_SECTION and TYPE_ROULETTE
|
|
|
|
|
Sprite m_sprSectionBar;
|
|
|
|
|
// for TYPE_SECTION
|
|
|
|
|
BitmapText m_textSectionName;
|
|
|
|
|
// for TYPE_ROULETTE
|
|
|
|
|
BitmapText m_textRoulette;
|
|
|
|
|
|
|
|
|
|
// for a TYPE_MUSIC
|
|
|
|
|
Sprite m_sprSongBar;
|
2003-03-31 03:11:31 +00:00
|
|
|
WheelNotifyIcon m_WheelNotifyIcon;
|
2003-02-10 05:30:12 +00:00
|
|
|
TextBanner m_TextBanner;
|
2003-03-31 03:11:31 +00:00
|
|
|
GradeDisplay m_GradeDisplay[NUM_PLAYERS];
|
2003-02-10 05:30:12 +00:00
|
|
|
|
|
|
|
|
// for TYPE_COURSE
|
|
|
|
|
BitmapText m_textCourse;
|
2003-06-16 17:28:58 +00:00
|
|
|
|
|
|
|
|
// for TYPE_SORT
|
|
|
|
|
BitmapText m_textSort;
|
2003-11-18 21:46:28 +00:00
|
|
|
ActorFrame m_All;
|
2003-02-10 05:30:12 +00:00
|
|
|
};
|
|
|
|
|
|
2004-04-26 06:47:03 +00:00
|
|
|
enum WheelItemType { TYPE_SECTION, TYPE_SONG, TYPE_ROULETTE, TYPE_RANDOM, TYPE_LEAP, TYPE_COURSE, TYPE_SORT };
|
2003-03-31 23:06:15 +00:00
|
|
|
|
|
|
|
|
struct WheelItemData
|
|
|
|
|
{
|
|
|
|
|
WheelItemData() {}
|
2004-03-12 08:31:40 +00:00
|
|
|
WheelItemData( WheelItemType wit, Song* pSong, CString sSectionName, Course* pCourse, RageColor color, SortOrder so );
|
2003-03-31 23:06:15 +00:00
|
|
|
|
2003-04-19 22:53:50 +00:00
|
|
|
bool HasBanner() const;
|
|
|
|
|
CString GetBanner() const;
|
|
|
|
|
|
2003-03-31 23:06:15 +00:00
|
|
|
WheelItemType m_Type;
|
|
|
|
|
CString m_sSectionName;
|
|
|
|
|
Course* m_pCourse;
|
|
|
|
|
Song* m_pSong;
|
|
|
|
|
RageColor m_color; // either text color or section background color
|
|
|
|
|
WheelNotifyIcon::Flags m_Flags;
|
2003-07-20 08:54:31 +00:00
|
|
|
|
|
|
|
|
// for TYPE_SORT
|
|
|
|
|
CString m_sLabel;
|
|
|
|
|
ModeChoice m_Action;
|
2004-03-12 08:31:40 +00:00
|
|
|
SortOrder m_SortOrder;
|
2003-03-31 23:06:15 +00:00
|
|
|
};
|
|
|
|
|
|
2003-02-10 05:30:12 +00:00
|
|
|
#endif
|