Files
itgmania212121/stepmania/src/NotesLoader.h
T

60 lines
1.2 KiB
C++
Raw Normal View History

2002-09-06 23:24:40 +00:00
#ifndef NOTES_LOADER_H
#define NOTES_LOADER_H
2003-02-16 04:28:17 +00:00
#include "song.h"
#include "RageUtil.h"
2003-07-28 08:21:12 +00:00
#include <set>
2002-09-11 05:15:46 +00:00
2002-09-06 23:24:40 +00:00
typedef int DanceNote;
// MD 10/26/03 - this structure is only correct for DDR - use the lower enum instead
2002-09-06 23:24:40 +00:00
enum {
DANCE_NOTE_NONE = 0,
DANCE_NOTE_PAD1_LEFT,
DANCE_NOTE_PAD1_UPLEFT,
DANCE_NOTE_PAD1_DOWN,
DANCE_NOTE_PAD1_UP,
DANCE_NOTE_PAD1_UPRIGHT,
DANCE_NOTE_PAD1_RIGHT,
DANCE_NOTE_PAD2_LEFT,
DANCE_NOTE_PAD2_UPLEFT,
DANCE_NOTE_PAD2_DOWN,
DANCE_NOTE_PAD2_UP,
DANCE_NOTE_PAD2_UPRIGHT,
DANCE_NOTE_PAD2_RIGHT
};
enum {
BMS_NULL_COLUMN = 0,
BMS_P1_KEY1,
BMS_P1_KEY2,
BMS_P1_KEY3,
BMS_P1_KEY4,
BMS_P1_KEY5,
BMS_P1_TURN,
BMS_P1_KEY6,
BMS_P1_KEY7,
BMS_P2_KEY1,
BMS_P2_KEY2,
BMS_P2_KEY3,
BMS_P2_KEY4,
BMS_P2_KEY5,
BMS_P2_TURN,
BMS_P2_KEY6,
BMS_P2_KEY7,
};
2002-09-06 23:24:40 +00:00
2002-09-11 05:15:46 +00:00
class NotesLoader {
protected:
virtual void GetApplicableFiles( CString sPath, CStringArray &out )=0;
set<istring> BlacklistedImages;
2003-07-28 08:21:12 +00:00
2002-09-11 05:15:46 +00:00
public:
2003-07-28 09:56:14 +00:00
virtual ~NotesLoader() { }
const set<istring> &GetBlacklistedImages() const { return BlacklistedImages; }
static void GetMainAndSubTitlesFromFullTitle( const CString sFullTitle, CString &sMainTitleOut, CString &sSubTitleOut );
2002-09-11 05:15:46 +00:00
virtual bool LoadFromDir( CString sPath, Song &out ) = 0;
bool Loadable( CString sPath );
};
2002-11-16 09:12:55 +00:00
#endif