Added new unlock system, disabled by default

This commit is contained in:
Kevin Slaughter
2003-05-09 05:56:05 +00:00
parent 6150d3f2c2
commit fd02bce784
16 changed files with 258 additions and 7 deletions
+37
View File
@@ -0,0 +1,37 @@
#ifndef UNLOCK_SYSTEM_H
#define UNLOCK_SYSTEM_H
/*
-----------------------------------------------------------------------------
Class: UnlockSystem
Desc: See header.
Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved.
Kevin Slaughter
-----------------------------------------------------------------------------
*/
struct SongEntry
{
float m_fDancePointsRequired; // Ammount of Dance Points needed to unlock this song
CString m_sSongName; /* Name of the song in the DWI/SM file itself.. This allows
for a lot easier compatibility since a lot of people's
song folders are named differantly, song names tend to
be the same in the file.*/
};
class UnlockSystem
{
public:
UnlockSystem();
float NumPointsUntilNextUnlock();
bool SongIsLocked( CString sSongName );
bool LoadFromDATFile( CString sPath );
bool m_bAllSongsAreUnlocked; // Quick way to check if all songs are unlocked
vector<SongEntry> m_SongEntries; // All locked songs are stored here
private:
void SortSongEntriesArray();
};
#endif