Re-adding these; they were (incorrectly) added as binary files for some

reason.
This commit is contained in:
Glenn Maynard
2003-07-07 22:19:03 +00:00
parent 897caf4cee
commit 0011ca5654
6 changed files with 0 additions and 1276 deletions
-74
View File
@@ -1,74 +0,0 @@
#ifndef UNLOCK_SYSTEM_H
#define UNLOCK_SYSTEM_H
#include "Grade.h"
#include <map>
using namespace std;
/*
-----------------------------------------------------------------------------
Class: UnlockSystem
Desc: See header.
Copyright (c) 2001-2003 by the person(s) listed below. All rights reserved.
Kevin Slaughter
-----------------------------------------------------------------------------
*/
enum UnlockTypes { UNLOCK_AP, UNLOCK_DP, UNLOCK_SP,
UNLOCK_EC, UNLOCK_EF, UNLOCK_SC,
UNLOCK_TT, UNLOCK_RO};
struct SongEntry
{
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.*/
float m_fDancePointsRequired; // Amount of Dance Points needed to unlock this song
float m_fArcadePointsRequired;
float m_fSongPointsRequired;
float m_fExtraStagesCleared;
float m_fExtraStagesFailed;
float m_fStagesCleared;
float m_fToastysSeen;
int m_iRouletteSeed;
bool isLocked;
SongEntry();
bool SelectableWheel();
bool SelectableRoulette();
bool updateLocked();
};
class UnlockSystem
{
public:
UnlockSystem();
float NumPointsUntilNextUnlock();
bool SongIsLocked( CString sSongName );
bool SongIsRoulette( 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
float UnlockAddAP(Grade credit);
float UnlockAddDP(float credit);
float UnlockAddSP(Grade credit);
float UnlockClearExtraStage();
float UnlockFailExtraStage();
float UnlockClearStage();
float UnlockToasty();
bool UnlockRouletteSeed(int seed);
private:
void SortSongEntriesArray();
bool ParseRow(CString text, CString &type, float &qty,
CString &songname);
};
#endif