Files
itgmania212121/stepmania/src/Notes.h
T

69 lines
1.8 KiB
C++
Raw Normal View History

2002-05-20 08:59:37 +00:00
#pragma once
/*
-----------------------------------------------------------------------------
Class: Notes
Desc: Holds note information for a Song. A Song may have one or more Notess.
A Notes can be played by one or more Styles. See StyleDef.h for more info on
Styles.
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
Chris Danford
-----------------------------------------------------------------------------
*/
#include "GameConstantsAndTypes.h"
#include "Grade.h"
2002-07-03 03:13:13 +00:00
class NoteData;
2002-05-20 08:59:37 +00:00
2002-10-06 16:56:58 +00:00
enum NotesDisplayType
{
NOTES_DISPLAY_EASY,
NOTES_DISPLAY_MEDIUM,
NOTES_DISPLAY_HARD,
NOTES_DISPLAY_S_HARD,
NOTES_DISPLAY_CHALLENGE,
NOTES_DISPLAY_BATTLE
};
2002-05-20 08:59:37 +00:00
struct Notes
{
public:
Notes();
~Notes();
// Loading
bool LoadFromNotesFile( const CString &sPath );
2002-06-30 23:19:33 +00:00
void WriteSMNotesTag( FILE* fp );
2002-05-27 08:23:27 +00:00
2002-05-20 08:59:37 +00:00
public:
2002-05-27 08:23:27 +00:00
NotesType m_NotesType;
2002-10-06 16:56:58 +00:00
CString m_sDescription; // This text is displayed next to thte number of feet when a song is selected
bool m_bAutoGen; // Was created by autogen?
2002-10-06 16:56:58 +00:00
Difficulty m_Difficulty; // difficulty classification
int m_iMeter; // difficulty rating from 1-10
2002-06-30 23:19:33 +00:00
float m_fRadarValues[NUM_RADAR_VALUES]; // between 0.0-1.2 starting from 12-o'clock rotating clockwise
2002-05-27 08:23:27 +00:00
2002-07-03 03:13:13 +00:00
CString m_sSMNoteData;
void GetNoteData( NoteData* pNoteDataOut ) const;
2002-07-03 03:13:13 +00:00
void SetNoteData( NoteData* pNewNoteData );
2002-10-06 16:56:58 +00:00
NotesDisplayType GetNotesDisplayType() const;
RageColor GetColor() const;
2002-05-20 08:59:37 +00:00
// Statistics
Grade m_TopGrade;
int m_iTopScore;
int m_iMaxCombo;
int m_iNumTimesPlayed;
2002-09-29 05:06:18 +00:00
static Difficulty DifficultyFromDescriptionAndMeter( CString sDescription, int iMeter );
2002-07-04 21:05:18 +00:00
2002-07-03 03:13:13 +00:00
void TidyUpData();
2002-09-06 23:36:04 +00:00
protected:
2002-05-20 08:59:37 +00:00
};
2002-10-24 08:17:09 +00:00
bool CompareNotesPointersByDifficulty(const Notes *pNotes1, const Notes *pNotes2);
2002-08-01 13:42:56 +00:00
void SortNotesArrayByDifficulty( CArray<Notes*,Notes*> &arrayNotess );