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

ProfileManager Class Reference

#include <ProfileManager.h>

Collaboration diagram for ProfileManager:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProfileManager ()
 ~ProfileManager ()
void Init ()
bool CreateLocalProfile (CString sName)
bool RenameLocalProfile (CString sProfileID, CString sNewName)
bool DeleteLocalProfile (CString sProfileID)
void GetLocalProfileIDs (vector< CString > &asProfileIDsOut) const
void GetLocalProfileNames (vector< CString > &asNamesOut) const
bool LoadFirstAvailableProfile (PlayerNumber pn)
bool LoadLocalProfileFromMachine (PlayerNumber pn)
bool LoadProfileFromMemoryCard (PlayerNumber pn)
void SaveAllProfiles () const
bool SaveProfile (PlayerNumber pn) const
void UnloadProfile (PlayerNumber pn)
void IncrementToastiesCount (PlayerNumber pn)
void AddStepTotals (PlayerNumber pn, int iNumTapsAndHolds, int iNumJumps, int iNumHolds, int iNumMines, int iNumHands)
void LoadMachineProfile ()
void SaveMachineProfile () const
bool IsUsingProfile (PlayerNumber pn) const
bool IsUsingProfile (ProfileSlot slot) const
const ProfileGetProfile (PlayerNumber pn) const
ProfileGetProfile (PlayerNumber pn)
const ProfileGetProfile (ProfileSlot slot) const
ProfileGetProfile (ProfileSlot slot)
CString GetProfileDir (ProfileSlot slot) const
ProfileGetMachineProfile ()
CString GetPlayerName (PlayerNumber pn) const
bool ProfileWasLoadedFromMemoryCard (PlayerNumber pn) const
bool LastLoadWasTamperedOrCorrupt (PlayerNumber pn) const
bool LastLoadWasFromLastGood (PlayerNumber pn) const
int GetSongNumTimesPlayed (const Song *pSong, ProfileSlot card) const
bool IsSongNew (const Song *pSong) const
void AddStepsScore (const Song *pSong, const Steps *pSteps, PlayerNumber pn, HighScore hs, int &iPersonalIndexOut, int &iMachineIndexOut)
void IncrementStepsPlayCount (const Song *pSong, const Steps *pSteps, PlayerNumber pn)
HighScore GetHighScoreForDifficulty (const Song *s, const Style *st, ProfileSlot slot, Difficulty dc) const
void AddCourseScore (const Course *pCourse, const Trail *pTrail, PlayerNumber pn, HighScore hs, int &iPersonalIndexOut, int &iMachineIndexOut)
void IncrementCoursePlayCount (const Course *pCourse, const Trail *pTrail, PlayerNumber pn)
void AddCategoryScore (StepsType st, RankingCategory rc, PlayerNumber pn, HighScore hs, int &iPersonalIndexOut, int &iMachineIndexOut)
void IncrementCategoryPlayCount (StepsType st, RankingCategory rc, PlayerNumber pn)

Private Member Functions

bool LoadProfile (PlayerNumber pn, CString sProfileDir, bool bIsMemCard)

Private Attributes

CString m_sProfileDir [NUM_PLAYERS]
bool m_bWasLoadedFromMemoryCard [NUM_PLAYERS]
bool m_bLastLoadWasTamperedOrCorrupt [NUM_PLAYERS]
bool m_bLastLoadWasFromLastGood [NUM_PLAYERS]
Profile m_Profile [NUM_PLAYERS]
Profile m_MachineProfile

Constructor & Destructor Documentation

ProfileManager::ProfileManager  ) 
 

ProfileManager::~ProfileManager  ) 
 


Member Function Documentation

void ProfileManager::AddCategoryScore StepsType  st,
RankingCategory  rc,
PlayerNumber  pn,
HighScore  hs,
int iPersonalIndexOut,
int iMachineIndexOut
 

void ProfileManager::AddCourseScore const Course pCourse,
const Trail pTrail,
PlayerNumber  pn,
HighScore  hs,
int iPersonalIndexOut,
int iMachineIndexOut
 

void ProfileManager::AddStepsScore const Song pSong,
const Steps pSteps,
PlayerNumber  pn,
HighScore  hs,
int iPersonalIndexOut,
int iMachineIndexOut
 

void ProfileManager::AddStepTotals PlayerNumber  pn,
int  iNumTapsAndHolds,
int  iNumJumps,
int  iNumHolds,
int  iNumMines,
int  iNumHands
 

bool ProfileManager::CreateLocalProfile CString  sName  ) 
 

bool ProfileManager::DeleteLocalProfile CString  sProfileID  ) 
 

HighScore ProfileManager::GetHighScoreForDifficulty const Song s,
const Style st,
ProfileSlot  slot,
Difficulty  dc
const
 

void ProfileManager::GetLocalProfileIDs vector< CString > &  asProfileIDsOut  )  const
 

void ProfileManager::GetLocalProfileNames vector< CString > &  asNamesOut  )  const
 

Profile* ProfileManager::GetMachineProfile  )  [inline]
 

CString ProfileManager::GetPlayerName PlayerNumber  pn  )  const
 

Profile* ProfileManager::GetProfile ProfileSlot  slot  )  [inline]
 

const Profile * ProfileManager::GetProfile ProfileSlot  slot  )  const
 

Profile* ProfileManager::GetProfile PlayerNumber  pn  )  [inline]
 

const Profile * ProfileManager::GetProfile PlayerNumber  pn  )  const
 

CString ProfileManager::GetProfileDir ProfileSlot  slot  )  const
 

int ProfileManager::GetSongNumTimesPlayed const Song pSong,
ProfileSlot  card
const
 

void ProfileManager::IncrementCategoryPlayCount StepsType  st,
RankingCategory  rc,
PlayerNumber  pn
 

void ProfileManager::IncrementCoursePlayCount const Course pCourse,
const Trail pTrail,
PlayerNumber  pn
 

void ProfileManager::IncrementStepsPlayCount const Song pSong,
const Steps pSteps,
PlayerNumber  pn
 

void ProfileManager::IncrementToastiesCount PlayerNumber  pn  ) 
 

void ProfileManager::Init  ) 
 

bool ProfileManager::IsSongNew const Song pSong  )  const [inline]
 

bool ProfileManager::IsUsingProfile ProfileSlot  slot  )  const
 

bool ProfileManager::IsUsingProfile PlayerNumber  pn  )  const [inline]
 

bool ProfileManager::LastLoadWasFromLastGood PlayerNumber  pn  )  const
 

bool ProfileManager::LastLoadWasTamperedOrCorrupt PlayerNumber  pn  )  const
 

bool ProfileManager::LoadFirstAvailableProfile PlayerNumber  pn  ) 
 

bool ProfileManager::LoadLocalProfileFromMachine PlayerNumber  pn  ) 
 

void ProfileManager::LoadMachineProfile  ) 
 

bool ProfileManager::LoadProfile PlayerNumber  pn,
CString  sProfileDir,
bool  bIsMemCard
[private]
 

bool ProfileManager::LoadProfileFromMemoryCard PlayerNumber  pn  ) 
 

bool ProfileManager::ProfileWasLoadedFromMemoryCard PlayerNumber  pn  )  const
 

bool ProfileManager::RenameLocalProfile CString  sProfileID,
CString  sNewName
 

void ProfileManager::SaveAllProfiles  )  const
 

void ProfileManager::SaveMachineProfile  )  const
 

bool ProfileManager::SaveProfile PlayerNumber  pn  )  const
 

void ProfileManager::UnloadProfile PlayerNumber  pn  ) 
 


Member Data Documentation

bool ProfileManager::m_bLastLoadWasFromLastGood[NUM_PLAYERS] [private]
 

bool ProfileManager::m_bLastLoadWasTamperedOrCorrupt[NUM_PLAYERS] [private]
 

bool ProfileManager::m_bWasLoadedFromMemoryCard[NUM_PLAYERS] [private]
 

Profile ProfileManager::m_MachineProfile [private]
 

Profile ProfileManager::m_Profile[NUM_PLAYERS] [private]
 

CString ProfileManager::m_sProfileDir[NUM_PLAYERS] [private]
 


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