Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Profile Class Reference

#include <Profile.h>

Collaboration diagram for Profile:

Collaboration graph
[legend]
List of all members.

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 HighScoreListGetStepsHighScoreList (const Song *pSong, const Steps *pSteps) const
HighScoreListGetStepsHighScoreList (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)
HighScoreListGetCourseHighScoreList (const Course *pCourse, const Trail *pTrail)
const HighScoreListGetCourseHighScoreList (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)
HighScoreListGetCategoryHighScoreList (StepsType st, RankingCategory rc)
const HighScoreListGetCategoryHighScoreList (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
XNodeSaveStatsXmlCreateNode () const
XNodeSaveGeneralDataCreateNode () const
XNodeSaveSongScoresCreateNode () const
XNodeSaveCourseScoresCreateNode () const
XNodeSaveCategoryScoresCreateNode () const
XNodeSaveScreenshotDataCreateNode () const
XNodeSaveCalorieDataCreateNode () const
XNodeSaveRecentSongScoresCreateNode () const
XNodeSaveRecentCourseScoresCreateNode () const
XNodeSaveCoinDataCreateNode () 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< intm_UnlockedSongs
CString m_sLastPlayedMachineGuid
DateTime m_LastPlayedDate
int m_iNumSongsPlayedByPlayMode [NUM_PLAY_MODES]
map< StyleID, intm_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, HighScoresForASongm_SongHighScores
std::map< CourseID, HighScoresForACoursem_CourseHighScores
HighScoreList m_CategoryHighScores [NUM_STEPS_TYPES][NUM_RANKING_CATEGORIES]
vector< Screenshotm_vScreenshots
map< DateTime, float > m_mapDayToCaloriesBurned
vector< HighScoreForASongAndStepsm_vRecentStepsScores
vector< HighScoreForACourseAndTrailm_vRecentCourseScores

Private Member Functions

const HighScoresForASongGetHighScoresForASong (const SongID &songID) const
const HighScoresForACourseGetHighScoresForACourse (const CourseID &courseID) const

Member Enumeration Documentation

enum Profile::LoadResult
 

Enumeration values:
success 
failed_no_profile 
failed_tampered 


Constructor & Destructor Documentation

Profile::Profile  )  [inline]
 


Member Function Documentation

void Profile::AddCategoryHighScore StepsType  st,
RankingCategory  rc,
HighScore  hs,
int iIndexOut
 

void Profile::AddCourseHighScore const Course pCourse,
const Trail pTrail,
HighScore  hs,
int iIndexOut
 

void Profile::AddCourseRecentScore const Course pCourse,
const Trail pTrail,
HighScore  hs
 

void Profile::AddScreenshot const Screenshot screenshot  ) 
 

void Profile::AddStepsHighScore const Song pSong,
const Steps pSteps,
HighScore  hs,
int iIndexOut
 

void Profile::AddStepsRecentScore const Song pSong,
const Steps pSteps,
HighScore  hs
 

void Profile::AddStepTotals int  iNumTapsAndHolds,
int  iNumJumps,
int  iNumHolds,
int  iNumMines,
int  iNumHands
 

void Profile::BackupToDir CString  sFromDir,
CString  sToDir
[static]
 

bool Profile::CreateNewProfile CString  sProfileDir,
CString  sName
[static]
 

float Profile::GetCaloriesBurnedForDay DateTime  day  )  const
 

const HighScoreList & Profile::GetCategoryHighScoreList StepsType  st,
RankingCategory  rc
const
 

HighScoreList & Profile::GetCategoryHighScoreList StepsType  st,
RankingCategory  rc
 

int Profile::GetCategoryNumTimesPlayed StepsType  st  )  const
 

const HighScoreList & Profile::GetCourseHighScoreList const Course pCourse,
const Trail pTrail
const
 

HighScoreList & Profile::GetCourseHighScoreList const Course pCourse,
const Trail pTrail
 

int Profile::GetCourseNumTimesPlayed const CourseID courseID  )  const
 

int Profile::GetCourseNumTimesPlayed const Course pCourse  )  const
 

float Profile::GetCoursesActual StepsType  st,
CourseDifficulty  cd
const
 

float Profile::GetCoursesPercentComplete StepsType  st,
CourseDifficulty  cd
const
 

float Profile::GetCoursesPossible StepsType  st,
CourseDifficulty  cd
const
 

bool Profile::GetDefaultModifiers const Game pGameType,
CString &  sModifiersOut
const
 

CString Profile::GetDisplayName  )  const
 

CString Profile::GetDisplayTotalCaloriesBurned  )  const
 

CString Profile::GetDisplayTotalCaloriesBurnedToday  )  const
 

void Profile::GetGrades const Song pSong,
StepsType  st,
int  iCounts[NUM_GRADES]
const
 

const Profile::HighScoresForACourse * Profile::GetHighScoresForACourse const CourseID courseID  )  const [private]
 

const Profile::HighScoresForASong * Profile::GetHighScoresForASong const SongID songID  )  const [private]
 

int Profile::GetNextScreenshotIndex  )  [inline]
 

CString Profile::GetProfileDisplayNameFromDir CString  sDir  )  [static]
 

int Profile::GetSongNumTimesPlayed const SongID songID  )  const
 

int Profile::GetSongNumTimesPlayed const Song pSong  )  const
 

float Profile::GetSongsActual StepsType  st,
Difficulty  dc
const
 

float Profile::GetSongsPercentComplete StepsType  st,
Difficulty  dc
const
 

float Profile::GetSongsPossible StepsType  st,
Difficulty  dc
const
 

HighScoreList & Profile::GetStepsHighScoreList const Song pSong,
const Steps pSteps
 

const HighScoreList & Profile::GetStepsHighScoreList const Song pSong,
const Steps pSteps
const
 

int Profile::GetStepsNumTimesPlayed const Song pSong,
const Steps pSteps
const
 

int Profile::GetTotalNumSongsPassed  )  const
 

int Profile::GetTotalNumSongsPlayed  )  const
 

void Profile::IncrementCategoryPlayCount StepsType  st,
RankingCategory  rc
 

void Profile::IncrementCoursePlayCount const Course pCourse,
const Trail pTrail
 

void Profile::IncrementStepsPlayCount const Song pSong,
const Steps pSteps
 

void Profile::InitAll  )  [inline]
 

void Profile::InitCalorieData  ) 
 

void Profile::InitCategoryScores  ) 
 

void Profile::InitCourseScores  ) 
 

void Profile::InitEditableData  ) 
 

void Profile::InitGeneralData  ) 
 

void Profile::InitRecentCourseScores  ) 
 

void Profile::InitRecentSongScores  ) 
 

void Profile::InitScreenshotData  ) 
 

void Profile::InitSongScores  ) 
 

bool Profile::IsMachine  )  const
 

Profile::LoadResult Profile::LoadAllFromDir CString  sDir,
bool  bRequireSignature
 

void Profile::LoadCalorieDataFromNode const XNode pNode  ) 
 

void Profile::LoadCategoryScoresFromNode const XNode pNode  ) 
 

void Profile::LoadCourseScoresFromNode const XNode pNode  ) 
 

void Profile::LoadEditableDataFromDir CString  sDir  ) 
 

void Profile::LoadGeneralDataFromNode const XNode pNode  ) 
 

void Profile::LoadRecentCourseScoresFromNode const XNode pNode  ) 
 

void Profile::LoadRecentSongScoresFromNode const XNode pNode  ) 
 

void Profile::LoadScreenshotDataFromNode const XNode pNode  ) 
 

void Profile::LoadSongScoresFromNode const XNode pNode  ) 
 

Profile::LoadResult Profile::LoadStatsXmlFromNode const XNode pNode  ) 
 

bool Profile::SaveAllToDir CString  sDir,
bool  bSignData
const
 

XNode * Profile::SaveCalorieDataCreateNode  )  const
 

XNode * Profile::SaveCategoryScoresCreateNode  )  const
 

XNode * Profile::SaveCoinDataCreateNode  )  const
 

XNode * Profile::SaveCourseScoresCreateNode  )  const
 

void Profile::SaveEditableDataToDir CString  sDir  )  const
 

XNode * Profile::SaveGeneralDataCreateNode  )  const
 

void Profile::SaveMachinePublicKeyToDir CString  sDir  )  const
 

XNode * Profile::SaveRecentCourseScoresCreateNode  )  const
 

XNode * Profile::SaveRecentSongScoresCreateNode  )  const
 

XNode * Profile::SaveScreenshotDataCreateNode  )  const
 

XNode * Profile::SaveSongScoresCreateNode  )  const
 

void Profile::SaveStatsWebPageToDir CString  sDir  )  const
 

XNode * Profile::SaveStatsXmlCreateNode  )  const
 

bool Profile::SaveStatsXmlToDir CString  sDir,
bool  bSignData
const
 

void Profile::SetDefaultModifiers const Game pGameType,
const CString &  sModifiers
 


Member Data Documentation

HighScoreList Profile::m_CategoryHighScores[NUM_STEPS_TYPES][NUM_RANKING_CATEGORIES]
 

std::map<CourseID,HighScoresForACourse> Profile::m_CourseHighScores
 

float Profile::m_fTotalCaloriesBurned
 

int Profile::m_iCurrentCombo
 

int Profile::m_iNumExtraStagesFailed
 

int Profile::m_iNumExtraStagesPassed
 

int Profile::m_iNumSongsPlayedByDifficulty[NUM_DIFFICULTIES]
 

int Profile::m_iNumSongsPlayedByMeter[MAX_METER+1]
 

int Profile::m_iNumSongsPlayedByPlayMode[NUM_PLAY_MODES]
 

map<StyleID,int> Profile::m_iNumSongsPlayedByStyle
 

int Profile::m_iNumStagesPassedByGrade[NUM_GRADES]
 

int Profile::m_iNumStagesPassedByPlayMode[NUM_PLAY_MODES]
 

int Profile::m_iNumToasties
 

int Profile::m_iTotalDancePoints
 

int Profile::m_iTotalGameplaySeconds
 

int Profile::m_iTotalHands
 

int Profile::m_iTotalHolds
 

int Profile::m_iTotalJumps
 

int Profile::m_iTotalMines
 

int Profile::m_iTotalPlays
 

int Profile::m_iTotalPlaySeconds
 

int Profile::m_iTotalTapsAndHolds
 

int Profile::m_iWeightPounds
 

CourseID Profile::m_lastCourse
 

CourseDifficulty Profile::m_LastCourseDifficulty
 

Difficulty Profile::m_LastDifficulty
 

DateTime Profile::m_LastPlayedDate [mutable]
 

SongID Profile::m_lastSong
 

map<DateTime,float> Profile::m_mapDayToCaloriesBurned
 

map<CString,CString> Profile::m_sDefaultModifiers
 

CString Profile::m_sDisplayName
 

CString Profile::m_sGuid
 

CString Profile::m_sLastPlayedMachineGuid [mutable]
 

CString Profile::m_sLastUsedHighScoreName
 

std::map<SongID,HighScoresForASong> Profile::m_SongHighScores
 

SortOrder Profile::m_SortOrder
 

set<int> Profile::m_UnlockedSongs
 

vector<HighScoreForACourseAndTrail> Profile::m_vRecentCourseScores
 

vector<HighScoreForASongAndSteps> Profile::m_vRecentStepsScores
 

vector<Screenshot> Profile::m_vScreenshots
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 27 21:00:49 2005 for StepMania by doxygen 1.3.7