|
Public Types |
enum | LoadResult { success,
failed_no_profile,
failed_tampered
} |
Public Member Functions |
| Profile () |
CString | GetDisplayName () const |
CString | GetDisplayTotalCaloriesBurned () const |
CString | GetDisplayTotalCaloriesBurnedToday () const |
int | GetTotalNumSongsPlayed () const |
int | GetTotalNumSongsPassed () const |
float | GetSongsPossible (StepsType st, Difficulty dc) const |
float | GetCoursesPossible (StepsType st, CourseDifficulty cd) const |
float | GetSongsActual (StepsType st, Difficulty dc) const |
float | GetCoursesActual (StepsType st, CourseDifficulty cd) const |
float | GetSongsPercentComplete (StepsType st, Difficulty dc) const |
float | GetCoursesPercentComplete (StepsType st, CourseDifficulty cd) const |
int | GetSongNumTimesPlayed (const Song *pSong) const |
int | GetSongNumTimesPlayed (const SongID &songID) const |
bool | GetDefaultModifiers (const Game *pGameType, CString &sModifiersOut) const |
void | SetDefaultModifiers (const Game *pGameType, const CString &sModifiers) |
void | AddStepTotals (int iNumTapsAndHolds, int iNumJumps, int iNumHolds, int iNumMines, int iNumHands) |
bool | IsMachine () const |
void | AddStepsHighScore (const Song *pSong, const Steps *pSteps, HighScore hs, int &iIndexOut) |
const HighScoreList & | GetStepsHighScoreList (const Song *pSong, const Steps *pSteps) const |
HighScoreList & | GetStepsHighScoreList (const Song *pSong, const Steps *pSteps) |
int | GetStepsNumTimesPlayed (const Song *pSong, const Steps *pSteps) const |
void | IncrementStepsPlayCount (const Song *pSong, const Steps *pSteps) |
void | GetGrades (const Song *pSong, StepsType st, int iCounts[NUM_GRADES]) const |
void | AddCourseHighScore (const Course *pCourse, const Trail *pTrail, HighScore hs, int &iIndexOut) |
HighScoreList & | GetCourseHighScoreList (const Course *pCourse, const Trail *pTrail) |
const HighScoreList & | GetCourseHighScoreList (const Course *pCourse, const Trail *pTrail) const |
int | GetCourseNumTimesPlayed (const Course *pCourse) const |
int | GetCourseNumTimesPlayed (const CourseID &courseID) const |
void | IncrementCoursePlayCount (const Course *pCourse, const Trail *pTrail) |
void | AddCategoryHighScore (StepsType st, RankingCategory rc, HighScore hs, int &iIndexOut) |
HighScoreList & | GetCategoryHighScoreList (StepsType st, RankingCategory rc) |
const HighScoreList & | GetCategoryHighScoreList (StepsType st, RankingCategory rc) const |
int | GetCategoryNumTimesPlayed (StepsType st) const |
void | IncrementCategoryPlayCount (StepsType st, RankingCategory rc) |
void | AddScreenshot (const Screenshot &screenshot) |
int | GetNextScreenshotIndex () |
float | GetCaloriesBurnedForDay (DateTime day) const |
void | AddStepsRecentScore (const Song *pSong, const Steps *pSteps, HighScore hs) |
void | AddCourseRecentScore (const Course *pCourse, const Trail *pTrail, HighScore hs) |
void | InitAll () |
void | InitEditableData () |
void | InitGeneralData () |
void | InitSongScores () |
void | InitCourseScores () |
void | InitCategoryScores () |
void | InitScreenshotData () |
void | InitCalorieData () |
void | InitRecentSongScores () |
void | InitRecentCourseScores () |
LoadResult | LoadAllFromDir (CString sDir, bool bRequireSignature) |
bool | SaveAllToDir (CString sDir, bool bSignData) const |
void | LoadEditableDataFromDir (CString sDir) |
LoadResult | LoadStatsXmlFromNode (const XNode *pNode) |
void | LoadGeneralDataFromNode (const XNode *pNode) |
void | LoadSongScoresFromNode (const XNode *pNode) |
void | LoadCourseScoresFromNode (const XNode *pNode) |
void | LoadCategoryScoresFromNode (const XNode *pNode) |
void | LoadScreenshotDataFromNode (const XNode *pNode) |
void | LoadCalorieDataFromNode (const XNode *pNode) |
void | LoadRecentSongScoresFromNode (const XNode *pNode) |
void | LoadRecentCourseScoresFromNode (const XNode *pNode) |
void | SaveEditableDataToDir (CString sDir) const |
bool | SaveStatsXmlToDir (CString sDir, bool bSignData) const |
XNode * | SaveStatsXmlCreateNode () const |
XNode * | SaveGeneralDataCreateNode () const |
XNode * | SaveSongScoresCreateNode () const |
XNode * | SaveCourseScoresCreateNode () const |
XNode * | SaveCategoryScoresCreateNode () const |
XNode * | SaveScreenshotDataCreateNode () const |
XNode * | SaveCalorieDataCreateNode () const |
XNode * | SaveRecentSongScoresCreateNode () const |
XNode * | SaveRecentCourseScoresCreateNode () const |
XNode * | SaveCoinDataCreateNode () const |
void | SaveStatsWebPageToDir (CString sDir) const |
void | SaveMachinePublicKeyToDir (CString sDir) const |
Static Public Member Functions |
CString | GetProfileDisplayNameFromDir (CString sDir) |
bool | CreateNewProfile (CString sProfileDir, CString sName) |
void | BackupToDir (CString sFromDir, CString sToDir) |
Public Attributes |
CString | m_sDisplayName |
CString | m_sLastUsedHighScoreName |
int | m_iWeightPounds |
CString | m_sGuid |
map< CString, CString > | m_sDefaultModifiers |
SortOrder | m_SortOrder |
Difficulty | m_LastDifficulty |
CourseDifficulty | m_LastCourseDifficulty |
SongID | m_lastSong |
CourseID | m_lastCourse |
int | m_iTotalPlays |
int | m_iTotalPlaySeconds |
int | m_iTotalGameplaySeconds |
int | m_iCurrentCombo |
float | m_fTotalCaloriesBurned |
int | m_iTotalDancePoints |
int | m_iNumExtraStagesPassed |
int | m_iNumExtraStagesFailed |
int | m_iNumToasties |
int | m_iTotalTapsAndHolds |
int | m_iTotalJumps |
int | m_iTotalHolds |
int | m_iTotalMines |
int | m_iTotalHands |
set< int > | m_UnlockedSongs |
CString | m_sLastPlayedMachineGuid |
DateTime | m_LastPlayedDate |
int | m_iNumSongsPlayedByPlayMode [NUM_PLAY_MODES] |
map< StyleID, int > | m_iNumSongsPlayedByStyle |
int | m_iNumSongsPlayedByDifficulty [NUM_DIFFICULTIES] |
int | m_iNumSongsPlayedByMeter [MAX_METER+1] |
int | m_iNumStagesPassedByPlayMode [NUM_PLAY_MODES] |
int | m_iNumStagesPassedByGrade [NUM_GRADES] |
std::map< SongID, HighScoresForASong > | m_SongHighScores |
std::map< CourseID, HighScoresForACourse > | m_CourseHighScores |
HighScoreList | m_CategoryHighScores [NUM_STEPS_TYPES][NUM_RANKING_CATEGORIES] |
vector< Screenshot > | m_vScreenshots |
map< DateTime, float > | m_mapDayToCaloriesBurned |
vector< HighScoreForASongAndSteps > | m_vRecentStepsScores |
vector< HighScoreForACourseAndTrail > | m_vRecentCourseScores |
Private Member Functions |
const HighScoresForASong * | GetHighScoresForASong (const SongID &songID) const |
const HighScoresForACourse * | GetHighScoresForACourse (const CourseID &courseID) const |