Files
itgmania212121/stepmania/src/MusicWheelItem.h
T

83 lines
2.5 KiB
C++
Raw Normal View History

2004-06-07 21:14:03 +00:00
/* MusicWheelItem - An item on the music wheel. */
#ifndef MUSICWHEELITEM_H
#define MUSICWHEELITEM_H
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"
2004-12-02 06:29:20 +00:00
#include "GameCommand.h"
#include "WheelItemBase.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;
class MusicWheelItem : public WheelItemBase
{
public:
2005-05-03 21:49:51 +00:00
MusicWheelItem(CString sType = "MusicWheelItem");
virtual void LoadFromWheelItemData( WheelItemData* pWID, bool bExpanded );
void RefreshGrades();
WheelItemData *data;
Sprite m_sprSongBar;
2005-04-28 10:57:57 +00:00
Sprite m_sprSectionBar;
2005-04-28 11:39:31 +00:00
Sprite m_sprExpandedBar;
2005-05-01 23:38:40 +00:00
Sprite m_sprModeBar;
Sprite m_sprSortBar;
2003-03-31 03:11:31 +00:00
WheelNotifyIcon m_WheelNotifyIcon;
TextBanner m_TextBanner;
BitmapText m_textSection;
2005-04-28 10:57:57 +00:00
BitmapText m_textRoulette;
BitmapText m_textCourse;
2003-06-16 17:28:58 +00:00
BitmapText m_textSort;
2005-04-28 10:57:57 +00:00
GradeDisplay m_GradeDisplay[NUM_PLAYERS];
};
struct WheelItemData : public WheelItemBaseData
2003-03-31 23:06:15 +00:00
{
WheelItemData() {}
WheelItemData( WheelItemType wit, Song* pSong, CString sSectionName, Course* pCourse, RageColor color );
2003-03-31 23:06:15 +00:00
Course* m_pCourse;
Song* m_pSong;
// for TYPE_SORT
CString m_sLabel;
2004-12-02 06:29:20 +00:00
GameCommand m_Action;
2003-03-31 23:06:15 +00:00
};
#endif
2004-06-07 21:14:03 +00:00
/*
* (c) 2001-2004 Chris Danford, Chris Gomez, Glenn Maynard
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/